diff --git a/api/fairyring/pep/genesis.pulsar.go b/api/fairyring/pep/genesis.pulsar.go index 29f2c499..3fe557b4 100644 --- a/api/fairyring/pep/genesis.pulsar.go +++ b/api/fairyring/pep/genesis.pulsar.go @@ -168,6 +168,57 @@ func (x *_GenesisState_6_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_GenesisState_10_list)(nil) + +type _GenesisState_10_list struct { + list *[]*RequestId +} + +func (x *_GenesisState_10_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_10_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_10_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RequestId) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_10_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RequestId) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_10_list) AppendMutable() protoreflect.Value { + v := new(RequestId) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_10_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_10_list) NewElement() protoreflect.Value { + v := new(RequestId) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_10_list) IsValid() bool { + return x.list != nil +} + var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor @@ -178,6 +229,7 @@ var ( fd_GenesisState_activePubKey protoreflect.FieldDescriptor fd_GenesisState_queuedPubKey protoreflect.FieldDescriptor fd_GenesisState_request_count protoreflect.FieldDescriptor + fd_GenesisState_requestIdList protoreflect.FieldDescriptor ) func init() { @@ -191,6 +243,7 @@ func init() { fd_GenesisState_activePubKey = md_GenesisState.Fields().ByName("activePubKey") fd_GenesisState_queuedPubKey = md_GenesisState.Fields().ByName("queuedPubKey") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") + fd_GenesisState_requestIdList = md_GenesisState.Fields().ByName("requestIdList") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -306,6 +359,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.RequestIdList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.RequestIdList}) + if !f(fd_GenesisState_requestIdList, value) { + return + } + } } // Has reports whether a field is populated. @@ -337,6 +396,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.QueuedPubKey != nil case "fairyring.pep.GenesisState.request_count": return x.RequestCount != uint64(0) + case "fairyring.pep.GenesisState.requestIdList": + return len(x.RequestIdList) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenesisState")) @@ -369,6 +430,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.QueuedPubKey = nil case "fairyring.pep.GenesisState.request_count": x.RequestCount = uint64(0) + case "fairyring.pep.GenesisState.requestIdList": + x.RequestIdList = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenesisState")) @@ -418,6 +481,12 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "fairyring.pep.GenesisState.request_count": value := x.RequestCount return protoreflect.ValueOfUint64(value) + case "fairyring.pep.GenesisState.requestIdList": + if len(x.RequestIdList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_10_list{}) + } + listValue := &_GenesisState_10_list{list: &x.RequestIdList} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenesisState")) @@ -460,6 +529,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value x.QueuedPubKey = value.Message().Interface().(*common.QueuedPublicKey) case "fairyring.pep.GenesisState.request_count": x.RequestCount = value.Uint() + case "fairyring.pep.GenesisState.requestIdList": + lv := value.List() + clv := lv.(*_GenesisState_10_list) + x.RequestIdList = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenesisState")) @@ -513,6 +586,12 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p x.QueuedPubKey = new(common.QueuedPublicKey) } return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) + case "fairyring.pep.GenesisState.requestIdList": + if x.RequestIdList == nil { + x.RequestIdList = []*RequestId{} + } + value := &_GenesisState_10_list{list: &x.RequestIdList} + return protoreflect.ValueOfList(value) case "fairyring.pep.GenesisState.port_id": panic(fmt.Errorf("field port_id of message fairyring.pep.GenesisState is not mutable")) case "fairyring.pep.GenesisState.request_count": @@ -552,6 +631,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.pep.GenesisState.request_count": return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.pep.GenesisState.requestIdList": + list := []*RequestId{} + return protoreflect.ValueOfList(&_GenesisState_10_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenesisState")) @@ -658,6 +740,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if x.RequestCount != 0 { n += 1 + runtime.Sov(uint64(x.RequestCount)) } + if len(x.RequestIdList) > 0 { + for _, e := range x.RequestIdList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -687,6 +775,22 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.RequestIdList) > 0 { + for iNdEx := len(x.RequestIdList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.RequestIdList[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + } if x.RequestCount != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.RequestCount)) i-- @@ -1099,6 +1203,40 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { break } } + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestIdList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.RequestIdList = append(x.RequestIdList, &RequestId{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestIdList[len(x.RequestIdList)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1163,6 +1301,7 @@ type GenesisState struct { ActivePubKey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + RequestIdList []*RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList,omitempty"` } func (x *GenesisState) Reset() { @@ -1241,6 +1380,13 @@ func (x *GenesisState) GetRequestCount() uint64 { return 0 } +func (x *GenesisState) GetRequestIdList() []*RequestId { + if x != nil { + return x.RequestIdList + } + return nil +} + var File_fairyring_pep_genesis_proto protoreflect.FileDescriptor var file_fairyring_pep_genesis_proto_rawDesc = []byte{ @@ -1260,7 +1406,9 @@ var file_fairyring_pep_genesis_proto_rawDesc = []byte{ 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x97, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, + 0x6f, 0x1a, 0x1e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, + 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xdd, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, @@ -1293,17 +1441,22 @@ var file_fairyring_pep_genesis_proto_rawDesc = []byte{ 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x96, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, - 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, - 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, + 0x74, 0x42, 0x96, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -1327,6 +1480,7 @@ var file_fairyring_pep_genesis_proto_goTypes = []interface{}{ (*AggregatedKeyShare)(nil), // 4: fairyring.pep.AggregatedKeyShare (*common.ActivePublicKey)(nil), // 5: fairyring.common.ActivePublicKey (*common.QueuedPublicKey)(nil), // 6: fairyring.common.QueuedPublicKey + (*RequestId)(nil), // 7: fairyring.pep.RequestId } var file_fairyring_pep_genesis_proto_depIdxs = []int32{ 1, // 0: fairyring.pep.GenesisState.params:type_name -> fairyring.pep.Params @@ -1335,11 +1489,12 @@ var file_fairyring_pep_genesis_proto_depIdxs = []int32{ 4, // 3: fairyring.pep.GenesisState.aggregatedKeyShareList:type_name -> fairyring.pep.AggregatedKeyShare 5, // 4: fairyring.pep.GenesisState.activePubKey:type_name -> fairyring.common.ActivePublicKey 6, // 5: fairyring.pep.GenesisState.queuedPubKey:type_name -> fairyring.common.QueuedPublicKey - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 7, // 6: fairyring.pep.GenesisState.requestIdList:type_name -> fairyring.pep.RequestId + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_fairyring_pep_genesis_proto_init() } @@ -1351,6 +1506,7 @@ func file_fairyring_pep_genesis_proto_init() { file_fairyring_pep_encrypted_tx_proto_init() file_fairyring_pep_pep_nonce_proto_init() file_fairyring_pep_aggregated_key_share_proto_init() + file_fairyring_pep_request_id_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_pep_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { diff --git a/api/fairyring/pep/request_id.pulsar.go b/api/fairyring/pep/request_id.pulsar.go new file mode 100644 index 00000000..5c553fd3 --- /dev/null +++ b/api/fairyring/pep/request_id.pulsar.go @@ -0,0 +1,638 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package pep + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_RequestId protoreflect.MessageDescriptor + fd_RequestId_creator protoreflect.FieldDescriptor + fd_RequestId_reqId protoreflect.FieldDescriptor +) + +func init() { + file_fairyring_pep_request_id_proto_init() + md_RequestId = File_fairyring_pep_request_id_proto.Messages().ByName("RequestId") + fd_RequestId_creator = md_RequestId.Fields().ByName("creator") + fd_RequestId_reqId = md_RequestId.Fields().ByName("reqId") +} + +var _ protoreflect.Message = (*fastReflection_RequestId)(nil) + +type fastReflection_RequestId RequestId + +func (x *RequestId) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestId)(x) +} + +func (x *RequestId) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_pep_request_id_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_RequestId_messageType fastReflection_RequestId_messageType +var _ protoreflect.MessageType = fastReflection_RequestId_messageType{} + +type fastReflection_RequestId_messageType struct{} + +func (x fastReflection_RequestId_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestId)(nil) +} +func (x fastReflection_RequestId_messageType) New() protoreflect.Message { + return new(fastReflection_RequestId) +} +func (x fastReflection_RequestId_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestId +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RequestId) Descriptor() protoreflect.MessageDescriptor { + return md_RequestId +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_RequestId) Type() protoreflect.MessageType { + return _fastReflection_RequestId_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RequestId) New() protoreflect.Message { + return new(fastReflection_RequestId) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RequestId) Interface() protoreflect.ProtoMessage { + return (*RequestId)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_RequestId) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_RequestId_creator, value) { + return + } + } + if x.ReqId != "" { + value := protoreflect.ValueOfString(x.ReqId) + if !f(fd_RequestId_reqId, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_RequestId) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "fairyring.pep.RequestId.creator": + return x.Creator != "" + case "fairyring.pep.RequestId.reqId": + return x.ReqId != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_RequestId) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "fairyring.pep.RequestId.creator": + x.Creator = "" + case "fairyring.pep.RequestId.reqId": + x.ReqId = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_RequestId) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "fairyring.pep.RequestId.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "fairyring.pep.RequestId.reqId": + value := x.ReqId + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_RequestId) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "fairyring.pep.RequestId.creator": + x.Creator = value.Interface().(string) + case "fairyring.pep.RequestId.reqId": + x.ReqId = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_RequestId) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.pep.RequestId.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.RequestId is not mutable")) + case "fairyring.pep.RequestId.reqId": + panic(fmt.Errorf("field reqId of message fairyring.pep.RequestId is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_RequestId) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.pep.RequestId.creator": + return protoreflect.ValueOfString("") + case "fairyring.pep.RequestId.reqId": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) + } + panic(fmt.Errorf("message fairyring.pep.RequestId does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_RequestId) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.RequestId", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_RequestId) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_RequestId) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_RequestId) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_RequestId) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RequestId) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ReqId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*RequestId) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.ReqId) > 0 { + i -= len(x.ReqId) + copy(dAtA[i:], x.ReqId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReqId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*RequestId) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReqId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: fairyring/pep/request_id.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RequestId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` +} + +func (x *RequestId) Reset() { + *x = RequestId{} + if protoimpl.UnsafeEnabled { + mi := &file_fairyring_pep_request_id_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestId) ProtoMessage() {} + +// Deprecated: Use RequestId.ProtoReflect.Descriptor instead. +func (*RequestId) Descriptor() ([]byte, []int) { + return file_fairyring_pep_request_id_proto_rawDescGZIP(), []int{0} +} + +func (x *RequestId) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *RequestId) GetReqId() string { + if x != nil { + return x.ReqId + } + return "" +} + +var File_fairyring_pep_request_id_proto protoreflect.FileDescriptor + +var file_fairyring_pep_request_id_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x22, + 0x3b, 0x0a, 0x09, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x42, 0x98, 0x01, 0x0a, + 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x42, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_fairyring_pep_request_id_proto_rawDescOnce sync.Once + file_fairyring_pep_request_id_proto_rawDescData = file_fairyring_pep_request_id_proto_rawDesc +) + +func file_fairyring_pep_request_id_proto_rawDescGZIP() []byte { + file_fairyring_pep_request_id_proto_rawDescOnce.Do(func() { + file_fairyring_pep_request_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_pep_request_id_proto_rawDescData) + }) + return file_fairyring_pep_request_id_proto_rawDescData +} + +var file_fairyring_pep_request_id_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_fairyring_pep_request_id_proto_goTypes = []interface{}{ + (*RequestId)(nil), // 0: fairyring.pep.RequestId +} +var file_fairyring_pep_request_id_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_fairyring_pep_request_id_proto_init() } +func file_fairyring_pep_request_id_proto_init() { + if File_fairyring_pep_request_id_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_fairyring_pep_request_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fairyring_pep_request_id_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fairyring_pep_request_id_proto_goTypes, + DependencyIndexes: file_fairyring_pep_request_id_proto_depIdxs, + MessageInfos: file_fairyring_pep_request_id_proto_msgTypes, + }.Build() + File_fairyring_pep_request_id_proto = out.File + file_fairyring_pep_request_id_proto_rawDesc = nil + file_fairyring_pep_request_id_proto_goTypes = nil + file_fairyring_pep_request_id_proto_depIdxs = nil +} diff --git a/api/fairyring/pep/tx.pulsar.go b/api/fairyring/pep/tx.pulsar.go index db895a4e..af77ca66 100644 --- a/api/fairyring/pep/tx.pulsar.go +++ b/api/fairyring/pep/tx.pulsar.go @@ -3200,6 +3200,7 @@ var ( md_MsgRequestGeneralKeyshare protoreflect.MessageDescriptor fd_MsgRequestGeneralKeyshare_creator protoreflect.FieldDescriptor fd_MsgRequestGeneralKeyshare_estimated_delay protoreflect.FieldDescriptor + fd_MsgRequestGeneralKeyshare_req_id protoreflect.FieldDescriptor ) func init() { @@ -3207,6 +3208,7 @@ func init() { md_MsgRequestGeneralKeyshare = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralKeyshare") fd_MsgRequestGeneralKeyshare_creator = md_MsgRequestGeneralKeyshare.Fields().ByName("creator") fd_MsgRequestGeneralKeyshare_estimated_delay = md_MsgRequestGeneralKeyshare.Fields().ByName("estimated_delay") + fd_MsgRequestGeneralKeyshare_req_id = md_MsgRequestGeneralKeyshare.Fields().ByName("req_id") } var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralKeyshare)(nil) @@ -3286,6 +3288,12 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Range(f func(protoreflect.Fie return } } + if x.ReqId != "" { + value := protoreflect.ValueOfString(x.ReqId) + if !f(fd_MsgRequestGeneralKeyshare_req_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -3305,6 +3313,8 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Has(fd protoreflect.FieldDesc return x.Creator != "" case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": return x.EstimatedDelay != nil + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + return x.ReqId != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3325,6 +3335,8 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Clear(fd protoreflect.FieldDe x.Creator = "" case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": x.EstimatedDelay = nil + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + x.ReqId = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3347,6 +3359,9 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Get(descriptor protoreflect.F case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": value := x.EstimatedDelay return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + value := x.ReqId + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3371,6 +3386,8 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Set(fd protoreflect.FieldDesc x.Creator = value.Interface().(string) case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": x.EstimatedDelay = value.Message().Interface().(*durationpb.Duration) + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + x.ReqId = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3398,6 +3415,8 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Mutable(fd protoreflect.Field return protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) case "fairyring.pep.MsgRequestGeneralKeyshare.creator": panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestGeneralKeyshare is not mutable")) + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralKeyshare is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3416,6 +3435,8 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) NewField(fd protoreflect.Fiel case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) @@ -3493,6 +3514,10 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me l = options.Size(x.EstimatedDelay) n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.ReqId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -3522,6 +3547,13 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.ReqId) > 0 { + i -= len(x.ReqId) + copy(dAtA[i:], x.ReqId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReqId))) + i-- + dAtA[i] = 0x1a + } if x.EstimatedDelay != nil { encoded, err := options.Marshal(x.EstimatedDelay) if err != nil { @@ -3660,6 +3692,38 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReqId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4976,8 +5040,6 @@ type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the module parameters to update. - // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` } @@ -5257,6 +5319,7 @@ type MsgRequestGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EstimatedDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=estimated_delay,json=estimatedDelay,proto3" json:"estimated_delay,omitempty"` + ReqId string `protobuf:"bytes,3,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (x *MsgRequestGeneralKeyshare) Reset() { @@ -5293,6 +5356,13 @@ func (x *MsgRequestGeneralKeyshare) GetEstimatedDelay() *durationpb.Duration { return nil } +func (x *MsgRequestGeneralKeyshare) GetReqId() string { + if x != nil { + return x.ReqId + } + return "" +} + type MsgRequestGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5456,7 +5526,7 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0f, 0x65, @@ -5464,71 +5534,72 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, - 0x44, 0x65, 0x6c, 0x61, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, - 0x56, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x47, 0x65, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9c, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, - 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x73, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, - 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x32, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, - 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, 0x54, - 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, - 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, - 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, - 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, + 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0x9c, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, + 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x30, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x91, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, + 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, + 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/app/app.go b/app/app.go index 0f96a576..b79b4d83 100644 --- a/app/app.go +++ b/app/app.go @@ -2,6 +2,7 @@ package app import ( "context" + upgradetypes "cosmossdk.io/x/upgrade/types" "fmt" "io" "os" @@ -471,25 +472,8 @@ func New( app.sm.RegisterStoreDecoders() app.UpgradeKeeper.SetUpgradeHandler( - "v0.6.0-to-update-cosmos-sdk-v0.50.6", + "v0.8.2-to-custom-req-id", func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - upgradeStoreService := runtime.NewKVStoreService(app.GetKey("upgrade")) - consensusKeeper := consensuskeeper.NewKeeper( - app.appCodec, - upgradeStoreService, - app.AccountKeeper.GetAuthority(), - runtime.EventService{}, - ) - - params, err := consensusKeeper.ParamsStore.Get(ctx) - if err != nil { - return nil, err - } - - err = app.ConsensusParamsKeeper.ParamsStore.Set(ctx, params) - if err != nil { - return nil, err - } return app.ModuleManager.RunMigrations(ctx, app.Configurator(), fromVM) }, ) @@ -499,13 +483,9 @@ func New( panic(err) } - if upgradeInfo.Name == "v0.6.0-to-update-cosmos-sdk-v0.50.6" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + if upgradeInfo.Name == "v0.8.2-to-custom-req-id" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { storeUpgrades := storetypes.StoreUpgrades{ - Added: []string{ - nft.StoreKey, - circuittypes.StoreKey, - feetypes.StoreKey, - }, + Deleted: []string{"capability"}, } // configure store loader that checks if version == upgradeHeight and applies store upgrades diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 505eaf03..8bbc6cb9 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -3680,28 +3680,21 @@ paths: Grantee. tags: - Msg - /cosmos.mint.v1beta1.Msg/UpdateParams: - post: - summary: >- - UpdateParams defines a governance operation for updating the x/mint - module - - parameters. The authority is defaults to the x/gov module account. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosMintV1Beta1Msg_UpdateParams + /cosmos/gov/v1/constitution: + get: + summary: Constitution queries the chain's constitution. + operationId: CosmosGovV1Query_Constitution responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 + properties: + constitution: + type: string + title: >- + QueryConstitutionResponse is the response type for the + Query/Constitution RPC method default: description: An unexpected error response. schema: @@ -3719,136 +3712,409 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} - parameters: - - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Since: cosmos-sdk 0.47 - in: body - required: true + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /cosmos/gov/v1/params/{params_type}: + get: + summary: Params queries all parameters of the gov module. + operationId: CosmosGovV1Query_Params + responses: + '200': + description: A successful response. schema: type: object properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - params: + voting_params: description: |- - params defines the x/mint parameters to update. - - NOTE: All parameters must be supplied. + Deprecated: Prefer to use `params` instead. + voting_params defines the parameters related to voting. type: object properties: - mint_denom: + voting_period: type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: + description: Duration of the voting period. + deposit_params: + description: |- + Deprecated: Prefer to use `params` instead. + deposit_params defines the parameters related to deposit. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: type: string - title: maximum inflation rate - inflation_min: + description: >- + Maximum period for Atom holders to deposit on a proposal. + Initial value: 2 + + months. + tally_params: + description: |- + Deprecated: Prefer to use `params` instead. + tally_params defines the parameters related to tally. + type: object + properties: + quorum: type: string - title: minimum inflation rate - goal_bonded: + description: >- + Minimum percentage of total stake needed to vote for a + result to be + + considered valid. + threshold: type: string - title: goal of percent bonded atoms - blocks_per_year: + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.5. + veto_threshold: type: string - format: uint64 - title: expected blocks per year - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos.nft.v1beta1.Msg/Send: - post: - summary: Send defines a method to send a nft from one account to another account. - operationId: CosmosNftV1Beta1Msg_Send - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgSendResponse defines the Msg/Send response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - description: >- - MsgSend represents a message to send a nft from one account to - another account. - in: body - required: true - schema: - type: object - properties: - class_id: - type: string - title: >- - class_id defines the unique identifier of the nft - classification, similar to the contract address of ERC721 - id: - type: string - title: id defines the unique identification of nft - sender: - type: string - title: sender is the address of the owner of nft - receiver: - type: string - title: receiver is the receiver address of nft - description: >- - MsgSend represents a message to send a nft from one account to - another account. - tags: - - Msg - /cosmos/params/v1beta1/params: - get: - summary: |- - Params queries a specific parameter of a module, given its subspace and - key. - operationId: CosmosParamsV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - param: - description: param defines the queried parameter. + vetoed. Default value: 1/3. + params: + description: |- + params defines all the paramaters of x/gov module. + + Since: cosmos-sdk 0.47 type: object properties: - subspace: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: type: string - key: + description: >- + Maximum period for Atom holders to deposit on a proposal. + Initial value: 2 + + months. + voting_period: type: string - value: + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a + result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.5. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + that must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the + depositors when a proposal is cancelled. + + + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * + deposit) proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal + deposits will be burned. + + + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. + + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.67. + + + Since: cosmos-sdk 0.50 + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: >- + Minimum expedited deposit for a proposal to enter voting + period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + minimum that must be met when making a deposit. + + Default value: 0.01. Meaning that for a chain with a + min_deposit of 100stake, a deposit of 1stake would be + + required. + + + Since: cosmos-sdk 0.50 + max_tally_period: + type: string + description: Duration of the voting period. + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: type: string + is_source_chain: + type: boolean description: >- - QueryParamsResponse is response type for the Query/Params RPC + QueryParamsResponse is the response type for the Query/Params RPC method. default: description: An unexpected error response. @@ -3867,266 +4133,26 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: subspace - description: subspace defines the module to query the parameter for. - in: query - required: false - type: string - - name: key - description: key defines the key of the parameter in the subspace. - in: query - required: false - type: string - tags: - - Query - /cosmos/params/v1beta1/subspaces: - get: - summary: >- - Subspaces queries for all registered subspaces and all keys for a - subspace. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosParamsV1Beta1Query_Subspaces - responses: - '200': - description: A successful response. - schema: - type: object - properties: - subspaces: - type: array - items: - type: object - properties: - subspace: - type: string - keys: - type: array - items: - type: string - description: >- - Subspace defines a parameter subspace name and all the keys - that exist for + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - the subspace. + protocol buffer message. This string must contain at + least + one "/" character. The last segment of the URL's path + must represent - Since: cosmos-sdk 0.46 - description: >- - QuerySubspacesResponse defines the response types for querying for - all + the fully qualified name of the type (as in - registered subspaces and all keys for a subspace. + `path/google.protobuf.Duration`). The name should be in + a canonical form + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.46 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /cosmos.slashing.v1beta1.Msg/Unjail: - post: - summary: >- - Unjail defines a method for unjailing a jailed validator, thus returning - them into the bonded validator set, so they can begin receiving - provisions - - and rewards again. - operationId: CosmosSlashingV1Beta1Msg_Unjail - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUnjailResponse defines the Msg/Unjail response type - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - validator_addr: - type: string - title: MsgUnjail defines the Msg/Unjail request type - tags: - - Msg - /cosmos.slashing.v1beta1.Msg/UpdateParams: - post: - summary: >- - UpdateParams defines a governance operation for updating the x/slashing - module - - parameters. The authority defaults to the x/gov module account. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosSlashingV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - params: - description: |- - params defines the x/slashing parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - signed_blocks_window: - type: string - format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: - type: string - slash_fraction_double_sign: - type: string - format: byte - slash_fraction_downtime: - type: string - format: byte - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos.staking.v1beta1.Msg/BeginRedelegate: - post: - summary: >- - BeginRedelegate defines a method for performing a redelegation - - of coins from a delegator and source validator to a destination - validator. - operationId: CosmosStakingV1Beta1Msg_BeginRedelegate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - completion_time: - type: string - format: date-time - description: >- - MsgBeginRedelegateResponse defines the Msg/BeginRedelegate - response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the binary + all types that they expect it to use in the context of Any. However, for URLs which use the @@ -4282,306 +4308,376 @@ paths: "value": "1.212s" } parameters: - - name: body + - name: params_type description: >- - MsgBeginRedelegate defines a SDK message for performing a - redelegation + params_type defines which parameters to query for, can be one of + "voting", - of coins from a delegator and source validator to a destination - validator. - in: body + "tallying" or "deposit". + in: path required: true - schema: - type: object - properties: - delegator_address: - type: string - validator_src_address: - type: string - validator_dst_address: - type: string - amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - description: >- - MsgBeginRedelegate defines a SDK message for performing a - redelegation - - of coins from a delegator and source validator to a destination - validator. + type: string tags: - - Msg - /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation: - post: - summary: >- - CancelUnbondingDelegation defines a method for performing canceling the - unbonding delegation - - and delegate back to previous validator. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation + - Query + /cosmos/gov/v1/proposals: + get: + summary: Proposals queries all proposals based on given status. + operationId: CosmosGovV1Query_Proposals responses: '200': description: A successful response. - schema: - type: object - description: 'Since: cosmos-sdk 0.46' - title: MsgCancelUnbondingDelegationResponse - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: + proposals: type: array items: type: object properties: - '@type': + id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain + at least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's + path must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should + be in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the + binary all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, + for URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions + as follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently + available in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server + type.googleapis.com. As of May 2023, there are no + widely used type server - implementations and no plans to implement one. + implementations and no plans to implement one. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods + of the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL + and the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after + the last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: 'Since: cosmos-sdk 0.46' - in: body - required: true - schema: - type: object - properties: - delegator_address: - type: string - validator_address: - type: string - amount: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if + the proposal passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + + querying a proposal via gRPC, this field is not + populated until the + + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: >- + abstain_count is the number of abstain votes on a + proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto + votes on a proposal. + encrypted_count: + type: string + description: >- + encrypted_count is the number of encrypted votes on + a proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the + proposal. + + the recommended format of the metadata is to be found + here: + + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: proposer is the address of the proposal sumbitter + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited + failed_reason: + type: string + description: 'Since: cosmos-sdk 0.50' + title: failed_reason defines the reason why the proposal failed + has_encrypted_votes: + type: boolean + title: >- + flag to check if proposal has at least one encrypted + vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted + votes during the tally phase + description: >- + Proposal defines the core field members of a governance + proposal. + description: proposals defines all the requested governance proposals. + pagination: + description: pagination defines the pagination in the response. type: object properties: - denom: + next_key: type: string - amount: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - signatures required by gogoproto. - title: >- - amount is always less than or equal to unbonding delegation - entry balance - creation_height: - type: string - format: int64 - description: creation_height is the height which the unbonding took place. - description: 'Since: cosmos-sdk 0.46' - title: >- - MsgCancelUnbondingDelegation defines the SDK message for - performing a cancel unbonding delegation for delegator - tags: - - Msg - /cosmos.staking.v1beta1.Msg/CreateValidator: - post: - summary: CreateValidator defines a method for creating a new validator. - operationId: CosmosStakingV1Beta1Msg_CreateValidator - responses: - '200': - description: A successful response. - schema: - type: object + was set, its value is undefined otherwise description: >- - MsgCreateValidatorResponse defines the Msg/CreateValidator - response type. + QueryProposalsResponse is the response type for the + Query/Proposals RPC + + method. default: description: An unexpected error response. schema: @@ -4774,282 +4870,433 @@ paths: "value": "1.212s" } parameters: - - name: body + - name: proposal_status + description: |- + proposal_status defines the status of the proposals. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + - PROPOSAL_STATUS_TALLY_PERIOD: PROPOSAL_STATUS_TALLY_PERIOD defines a proposal status during the tally + period. + in: query + required: false + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + - name: voter + description: voter defines the voter address for the proposals. + in: query + required: false + type: string + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: query + required: false + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset description: >- - MsgCreateValidator defines a SDK message for creating a new - validator. - in: body - required: true - schema: - type: object - properties: - description: - type: object - properties: - moniker: - type: string - description: moniker defines a human-readable name for the validator. - identity: - type: string - description: >- - identity defines an optional identity signature (ex. UPort - or Keybase). - website: - type: string - description: website defines an optional website link. - security_contact: - type: string - description: >- - security_contact defines an optional email for security - contact. - details: - type: string - description: details define other optional details. - description: Description defines a validator description. - commission: - type: object - properties: - rate: - type: string - description: >- - rate is the commission rate charged to delegators, as a - fraction. - max_rate: - type: string - description: >- - max_rate defines the maximum commission rate which - validator can ever charge, as a fraction. - max_change_rate: - type: string - description: >- - max_change_rate defines the maximum daily increase of the - validator commission, as a fraction. - description: >- - CommissionRates defines the initial commission rates to be - used for creating + offset is a numeric offset that can be used when key is unavailable. - a validator. - min_self_delegation: - type: string - delegator_address: - type: string - description: >- - Deprecated: Use of Delegator Address in MsgCreateValidator is - deprecated. + It is less efficient than using key. Only one of offset or key + should - The validator address bytes and delegator address bytes refer - to the same account while creating validator (defer + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - only in bech32 notation). - validator_address: - type: string - pubkey: + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}: + get: + summary: Proposal queries proposal details based on ProposalID. + operationId: CosmosGovV1Query_Proposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal: + description: proposal is the requested governance proposal. type: object properties: - '@type': + id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - the fully qualified name of the type (as in + protocol buffer message. This string must contain at + least - `path/google.protobuf.Duration`). The name should be in a - canonical form + one "/" character. The last segment of the URL's + path must represent - (e.g., leading "." is not accepted). + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be + in a canonical form - In practice, teams usually precompile into the binary all - types that they + (e.g., leading "." is not accepted). - expect it to use in the context of Any. However, for URLs - which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + In practice, teams usually precompile into the + binary all types that they - server that maps type URLs to message definitions as - follows: + expect it to use in the context of Any. However, for + URLs which use the + scheme `http`, `https`, or no scheme, one can + optionally set up a type - * If no scheme is provided, `https` is assumed. + server that maps type URLs to message definitions as + follows: - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + * If no scheme is provided, `https` is assumed. - protobuf release, and it is not used for type URLs - beginning with + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - type.googleapis.com. As of May 2023, there are no widely - used type server + Note: this functionality is not currently available + in the official - implementations and no plans to implement one. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. As of May 2023, there are no + widely used type server - Schemes other than `http`, `https` (or the empty scheme) - might be + implementations and no plans to implement one. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - URL that describes the type of the serialized message. + Schemes other than `http`, `https` (or the empty + scheme) might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Protobuf library provides support to pack/unpack Any values in - the form + URL that describes the type of the serialized message. - of utility functions or additional generated methods of the - Any type. + Protobuf library provides support to pack/unpack Any + values in the form - Example 1: Pack and unpack a message in C++. + of utility functions or additional generated methods of + the Any type. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 3: Pack and unpack a message in Python. + Example 2: Pack and unpack a message in Java. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - value: - type: object - properties: - denom: - type: string - amount: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the + proposal passes. + status: + description: status defines the proposal status. type: string - description: >- - Coin defines a token with a denomination and an amount. + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + querying a proposal via gRPC, this field is not populated + until the - NOTE: The amount field is an Int which implements the custom - method + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: >- + abstain_count is the number of abstain votes on a + proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes + on a proposal. + encrypted_count: + type: string + description: >- + encrypted_count is the number of encrypted votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - signatures required by gogoproto. + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the + proposal. + + the recommended format of the metadata is to be found + here: + + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: proposer is the address of the proposal sumbitter + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited + failed_reason: + type: string + description: 'Since: cosmos-sdk 0.50' + title: failed_reason defines the reason why the proposal failed + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes + during the tally phase description: >- - MsgCreateValidator defines a SDK message for creating a new - validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/Delegate: - post: - summary: |- - Delegate defines a method for performing a delegation of coins - from a delegator to a validator. - operationId: CosmosStakingV1Beta1Msg_Delegate - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgDelegateResponse defines the Msg/Delegate response type. + QueryProposalResponse is the response type for the Query/Proposal + RPC method. default: description: An unexpected error response. schema: @@ -5242,55 +5489,85 @@ paths: "value": "1.212s" } parameters: - - name: body - description: >- - MsgDelegate defines a SDK message for performing a delegation of - coins - - from a delegator to a validator. - in: body + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/deposits: + get: + summary: Deposits queries all deposits of a single proposal. + operationId: CosmosGovV1Query_Deposits + responses: + '200': + description: A successful response. schema: type: object properties: - delegator_address: - type: string - validator_address: - type: string - amount: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: >- + depositor defines the deposit addresses from the + proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + Deposit defines an amount deposited by an account address to + an active + + proposal. + description: deposits defines the requested deposits. + pagination: + description: pagination defines the pagination in the response. type: object properties: - denom: + next_key: type: string - amount: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - description: >- - MsgDelegate defines a SDK message for performing a delegation of - coins + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - from a delegator to a validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/EditValidator: - post: - summary: EditValidator defines a method for editing an existing validator. - operationId: CosmosStakingV1Beta1Msg_EditValidator - responses: - '200': - description: A successful response. - schema: - type: object + was set, its value is undefined otherwise description: >- - MsgEditValidatorResponse defines the Msg/EditValidator response - type. + QueryDepositsResponse is the response type for the Query/Deposits + RPC method. default: description: An unexpected error response. schema: @@ -5483,91 +5760,116 @@ paths: "value": "1.212s" } parameters: - - name: body - description: >- - MsgEditValidator defines a SDK message for editing an existing - validator. - in: body + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path required: true + type: string + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}: + get: + summary: >- + Deposit queries single deposit information based on proposalID, + depositAddr. + operationId: CosmosGovV1Query_Deposit + responses: + '200': + description: A successful response. schema: type: object properties: - description: + deposit: + description: deposit defines the requested deposit. type: object properties: - moniker: - type: string - description: moniker defines a human-readable name for the validator. - identity: - type: string - description: >- - identity defines an optional identity signature (ex. UPort - or Keybase). - website: + proposal_id: type: string - description: website defines an optional website link. - security_contact: + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: type: string description: >- - security_contact defines an optional email for security - contact. - details: - type: string - description: details define other optional details. - description: Description defines a validator description. - validator_address: - type: string - commission_rate: - type: string - title: >- - We pass a reference to the new commission rate and min self - delegation as - - it's not mandatory to update. If not updated, the deserialized - rate will be - - zero with no way to distinguish if an update was intended. - - REF: #2373 - min_self_delegation: - type: string - description: >- - MsgEditValidator defines a SDK message for editing an existing - validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/Undelegate: - post: - summary: |- - Undelegate defines a method for performing an undelegation from a - delegate and a validator. - operationId: CosmosStakingV1Beta1Msg_Undelegate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - completion_time: - type: string - format: date-time - amount: - type: object - properties: - denom: - type: string + depositor defines the deposit addresses from the + proposals. amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the custom - method + NOTE: The amount field is an Int which implements the + custom method - signatures required by gogoproto. - title: amount returns the amount of undelegated coins - description: MsgUndelegateResponse defines the Msg/Undelegate response type. + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + QueryDepositResponse is the response type for the Query/Deposit + RPC method. default: description: An unexpected error response. schema: @@ -5760,63 +6062,57 @@ paths: "value": "1.212s" } parameters: - - name: body - description: >- - MsgUndelegate defines a SDK message for performing an undelegation - from a - - delegate and a validator. - in: body + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: path required: true + type: string + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/tally: + get: + summary: TallyResult queries the tally of a proposal vote. + operationId: CosmosGovV1Query_TallyResult + responses: + '200': + description: A successful response. schema: type: object properties: - delegator_address: - type: string - validator_address: - type: string - amount: + tally: + description: tally defines the requested tally. type: object properties: - denom: + yes_count: type: string - amount: + description: yes_count is the number of yes votes on a proposal. + abstain_count: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - description: >- - MsgUndelegate defines a SDK message for performing an undelegation - from a - - delegate and a validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/UpdateParams: - post: - summary: |- - UpdateParams defines an operation for updating the x/staking module - parameters. - Since: cosmos-sdk 0.47 - operationId: CosmosStakingV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object + description: >- + abstain_count is the number of abstain votes on a + proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on + a proposal. + encrypted_count: + type: string + description: >- + encrypted_count is the number of encrypted votes on a + proposal. description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 + QueryTallyResultResponse is the response type for the Query/Tally + RPC method. default: description: An unexpected error response. schema: @@ -6009,127 +6305,101 @@ paths: "value": "1.212s" } parameters: - - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - in: body + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - params: - description: |- - params defines the x/staking parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - unbonding_time: - type: string - description: unbonding_time is the time duration of unbonding. - max_validators: - type: integer - format: int64 - description: max_validators is the maximum number of validators. - max_entries: - type: integer - format: int64 - description: >- - max_entries is the max entries for either unbonding - delegation or redelegation (per pair/trio). - historical_entries: - type: integer - format: int64 - description: >- - historical_entries is the number of historical entries to - persist. - bond_denom: - type: string - description: bond_denom defines the bondable coin denomination. - min_commission_rate: - type: string - title: >- - min_commission_rate is the chain-wide minimum commission - rate that a validator can charge their delegators - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 + type: string + format: uint64 tags: - - Msg - /fairyring.keyshare.Msg/CreateAuthorizedAddress: - post: - operationId: FairyringKeyshareMsg_CreateAuthorizedAddress + - Query + /cosmos/gov/v1/proposals/{proposal_id}/votes: + get: + summary: Votes queries votes of a given proposal. + operationId: CosmosGovV1Query_Votes responses: '200': description: A successful response. - schema: - type: object - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: + votes: type: array items: type: object properties: - '@type': + proposal_id: type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - target: - type: string - creator: - type: string - tags: - - Msg - /fairyring.keyshare.Msg/CreateGeneralKeyShare: - post: - operationId: FairyringKeyshareMsg_CreateGeneralKeyShare - responses: - '200': - description: A successful response. - schema: - type: object - properties: - creator: - type: string - idType: - type: string - idValue: - type: string - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedBlockHeight: - type: string - format: uint64 - success: - type: boolean - errorMessage: - type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: >- + WeightedVoteOption defines a unit of vote for vote + split. + description: options is the weighted vote options. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 + encrypted_vote_data: + type: string + description: >- + Vote defines a vote on a governance proposal. + + A Vote consists of a proposal ID, the voter, and the vote + option. + description: votes defines the queried votes. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryVotesResponse is the response type for the Query/Votes RPC + method. default: description: An unexpected error response. schema: @@ -6147,42 +6417,8608 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}: + get: + summary: Vote queries voted information based on proposalID, voterAddr. + operationId: CosmosGovV1Query_Vote + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote: + description: vote defines the queried vote. + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: >- + WeightedVoteOption defines a unit of vote for vote + split. + description: options is the weighted vote options. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found + here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 + encrypted_vote_data: + type: string + description: >- + QueryVoteResponse is the response type for the Query/Vote RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: voter + description: voter defines the voter address for the proposals. + in: path + required: true + type: string + tags: + - Query + /cosmos.gov.v1.Msg/CancelProposal: + post: + summary: CancelProposal defines a method to cancel governance proposal + description: 'Since: cosmos-sdk 0.50' + operationId: CosmosGovV1Msg_CancelProposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + canceled_time: + type: string + format: date-time + description: canceled_time is the time when proposal is canceled. + canceled_height: + type: string + format: uint64 + description: >- + canceled_height defines the block height at which the proposal + is canceled. + description: >- + MsgCancelProposalResponse defines the response structure for + executing a + + MsgCancelProposal message. + + + Since: cosmos-sdk 0.50 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. + + Since: cosmos-sdk 0.50 + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + proposer: + type: string + description: proposer is the account address of the proposer. + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. + + Since: cosmos-sdk 0.50 + tags: + - Msg + /cosmos.gov.v1.Msg/Deposit: + post: + summary: Deposit defines a method to add deposit on a specific proposal. + operationId: CosmosGovV1Msg_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgDeposit defines a message to submit a deposit to an existing + proposal. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + MsgDeposit defines a message to submit a deposit to an existing + proposal. + tags: + - Msg + /cosmos.gov.v1.Msg/ExecLegacyContent: + post: + summary: |- + ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + to execute a legacy content-based proposal. + operationId: CosmosGovV1Msg_ExecLegacyContent + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent + response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgExecLegacyContent is used to wrap the legacy content field into a + message. + + This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + in: body + required: true + schema: + type: object + properties: + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + authority: + type: string + description: authority must be the gov module address. + description: >- + MsgExecLegacyContent is used to wrap the legacy content field into + a message. + + This ensures backwards compatibility with + v1beta1.MsgSubmitProposal. + tags: + - Msg + /cosmos.gov.v1.Msg/SubmitProposal: + post: + summary: >- + SubmitProposal defines a method to create new proposal given the + messages. + operationId: CosmosGovV1Msg_SubmitProposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: >- + MsgSubmitProposalResponse defines the Msg/SubmitProposal response + type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + in: body + required: true + schema: + type: object + properties: + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if proposal + passes. + initial_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + initial_deposit is the deposit value that must be paid at + proposal submission. + proposer: + type: string + description: proposer is the account address of the proposer. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: |- + title is the title of the proposal. + + Since: cosmos-sdk 0.47 + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is the summary of the proposal + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited or not + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + tags: + - Msg + /cosmos.gov.v1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/gov + module + + parameters. The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosGovV1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: |- + params defines the x/gov parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. + Initial value: 2 + + months. + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a + result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.5. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + that must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the + depositors when a proposal is cancelled. + + + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * + deposit) proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal + deposits will be burned. + + + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. + + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.67. + + + Since: cosmos-sdk 0.50 + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: >- + Minimum expedited deposit for a proposal to enter voting + period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + minimum that must be met when making a deposit. + + Default value: 0.01. Meaning that for a chain with a + min_deposit of 100stake, a deposit of 1stake would be + + required. + + + Since: cosmos-sdk 0.50 + max_tally_period: + type: string + description: Duration of the voting period. + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.gov.v1.Msg/Vote: + post: + summary: Vote defines a method to add a vote on a specific proposal. + operationId: CosmosGovV1Msg_Vote + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVote defines a message to cast a vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVote defines a message to cast a vote. + tags: + - Msg + /cosmos.gov.v1.Msg/VoteEncrypted: + post: + summary: >- + VoteEncrypted defines a method to add an encrypted vote on a specific + proposal. + operationId: CosmosGovV1Msg_VoteEncrypted + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + encrypted_data: + type: string + description: encrypted_data defines the encrypted vote option. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + tags: + - Msg + /cosmos.gov.v1.Msg/VoteWeighted: + post: + summary: >- + VoteWeighted defines a method to add a weighted vote on a specific + proposal. + operationId: CosmosGovV1Msg_VoteWeighted + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response + type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVoteWeighted defines a message to cast a vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options defines the weighted vote options. + metadata: + type: string + description: >- + metadata is any arbitrary metadata attached to the + VoteWeighted. + description: MsgVoteWeighted defines a message to cast a vote. + tags: + - Msg + /cosmos/gov/v1beta1/params/{params_type}: + get: + summary: Params queries all parameters of the gov module. + operationId: CosmosGovV1Beta1Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + voting_params: + description: voting_params defines the parameters related to voting. + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + deposit_params: + description: deposit_params defines the parameters related to deposit. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. + Initial value: 2 + + months. + tally_params: + description: tally_params defines the parameters related to tally. + type: object + properties: + quorum: + type: string + format: byte + description: >- + Minimum percentage of total stake needed to vote for a + result to be + + considered valid. + threshold: + type: string + format: byte + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.5. + veto_threshold: + type: string + format: byte + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be + + vetoed. Default value: 1/3. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: params_type + description: >- + params_type defines which parameters to query for, can be one of + "voting", + + "tallying" or "deposit". + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1beta1/proposals: + get: + summary: Proposals queries all proposals based on given status. + operationId: CosmosGovV1Beta1Query_Proposals + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no + widely used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + + querying a proposal via gRPC, this field is not + populated until the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: >- + abstain is the number of abstain votes on a + proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on + a proposal. + encrypted: + type: string + description: >- + encrypted is the number of encrypted votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + has_encrypted_votes: + type: boolean + title: >- + flag to check if proposal has at least one encrypted + vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted + votes during the tally phase + description: >- + Proposal defines the core field members of a governance + proposal. + description: proposals defines all the requested governance proposals. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryProposalsResponse is the response type for the + Query/Proposals RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_status + description: |- + proposal_status defines the status of the proposals. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + in: query + required: false + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + - name: voter + description: voter defines the voter address for the proposals. + in: query + required: false + type: string + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: query + required: false + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}: + get: + summary: Proposal queries proposal details based on ProposalID. + operationId: CosmosGovV1Beta1Query_Proposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no + widely used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + + querying a proposal via gRPC, this field is not populated + until the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on a + proposal. + encrypted: + type: string + description: >- + encrypted is the number of encrypted votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes + during the tally phase + description: >- + Proposal defines the core field members of a governance + proposal. + description: >- + QueryProposalResponse is the response type for the Query/Proposal + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits: + get: + summary: Deposits queries all deposits of a single proposal. + operationId: CosmosGovV1Beta1Query_Deposits + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: >- + depositor defines the deposit addresses from the + proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + Deposit defines an amount deposited by an account address to + an active + + proposal. + description: deposits defines the requested deposits. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryDepositsResponse is the response type for the Query/Deposits + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}: + get: + summary: >- + Deposit queries single deposit information based on proposalID, + depositor address. + operationId: CosmosGovV1Beta1Query_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposit: + description: deposit defines the requested deposit. + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: >- + depositor defines the deposit addresses from the + proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + QueryDepositResponse is the response type for the Query/Deposit + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/tally: + get: + summary: TallyResult queries the tally of a proposal vote. + operationId: CosmosGovV1Beta1Query_TallyResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tally: + description: tally defines the requested tally. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on a + proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + description: >- + QueryTallyResultResponse is the response type for the Query/Tally + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/votes: + get: + summary: Votes queries votes of a given proposal. + operationId: CosmosGovV1Beta1Query_Votes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + option: + description: >- + Deprecated: Prefer to use `options` instead. This field + is set in queries + + if and only if `len(options) == 1` and that option has + weight 1. In all + + other cases, this field will default to + VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: >- + WeightedVoteOption defines a unit of vote for vote + split. + + + Since: cosmos-sdk 0.43 + description: |- + options is the weighted vote options. + + Since: cosmos-sdk 0.43 + encrypted_vote_data: + type: string + description: >- + Vote defines a vote on a governance proposal. + + A Vote consists of a proposal ID, the voter, and the vote + option. + description: votes defines the queried votes. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryVotesResponse is the response type for the Query/Votes RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}: + get: + summary: Vote queries voted information based on proposalID, voterAddr. + operationId: CosmosGovV1Beta1Query_Vote + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote: + description: vote defines the queried vote. + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is + set in queries + + if and only if `len(options) == 1` and that option has + weight 1. In all + + other cases, this field will default to + VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: >- + WeightedVoteOption defines a unit of vote for vote + split. + + + Since: cosmos-sdk 0.43 + description: |- + options is the weighted vote options. + + Since: cosmos-sdk 0.43 + encrypted_vote_data: + type: string + description: >- + QueryVoteResponse is the response type for the Query/Vote RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: voter + description: voter defines the voter address for the proposals. + in: path + required: true + type: string + tags: + - Query + /cosmos.gov.v1beta1.Msg/Deposit: + post: + summary: Deposit defines a method to add deposit on a specific proposal. + operationId: CosmosGovV1Beta1Msg_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgDeposit defines a message to submit a deposit to an existing + proposal. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + MsgDeposit defines a message to submit a deposit to an existing + proposal. + tags: + - Msg + /cosmos.gov.v1beta1.Msg/SubmitProposal: + post: + summary: SubmitProposal defines a method to create new proposal given a content. + operationId: CosmosGovV1Beta1Msg_SubmitProposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: >- + MsgSubmitProposalResponse defines the Msg/SubmitProposal response + type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + in: body + required: true + schema: + type: object + properties: + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + initial_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + initial_deposit is the deposit value that must be paid at + proposal submission. + proposer: + type: string + description: proposer is the account address of the proposer. + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + tags: + - Msg + /cosmos.gov.v1beta1.Msg/Vote: + post: + summary: Vote defines a method to add a vote on a specific proposal. + operationId: CosmosGovV1Beta1Msg_Vote + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVote defines a message to cast a vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + description: MsgVote defines a message to cast a vote. + tags: + - Msg + /cosmos.gov.v1beta1.Msg/VoteEncrypted: + post: + summary: >- + VoteEncrypted defines a method to add an encrypted vote on a specific + proposal. + operationId: CosmosGovV1Beta1Msg_VoteEncrypted + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + encrypted_data: + type: string + description: encrypted_data defines the encrypted vote option. + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + tags: + - Msg + /cosmos.gov.v1beta1.Msg/VoteWeighted: + post: + summary: >- + VoteWeighted defines a method to add a weighted vote on a specific + proposal. + description: 'Since: cosmos-sdk 0.43' + operationId: CosmosGovV1Beta1Msg_VoteWeighted + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response + type. + + + Since: cosmos-sdk 0.43 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: |- + MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + description: options defines the weighted vote options. + description: |- + MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + tags: + - Msg + /cosmos.mint.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/mint + module + + parameters. The authority is defaults to the x/gov module account. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosMintV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: |- + params defines the x/mint parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.nft.v1beta1.Msg/Send: + post: + summary: Send defines a method to send a nft from one account to another account. + operationId: CosmosNftV1Beta1Msg_Send + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgSendResponse defines the Msg/Send response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + description: >- + MsgSend represents a message to send a nft from one account to + another account. + in: body + required: true + schema: + type: object + properties: + class_id: + type: string + title: >- + class_id defines the unique identifier of the nft + classification, similar to the contract address of ERC721 + id: + type: string + title: id defines the unique identification of nft + sender: + type: string + title: sender is the address of the owner of nft + receiver: + type: string + title: receiver is the receiver address of nft + description: >- + MsgSend represents a message to send a nft from one account to + another account. + tags: + - Msg + /cosmos/params/v1beta1/params: + get: + summary: |- + Params queries a specific parameter of a module, given its subspace and + key. + operationId: CosmosParamsV1Beta1Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + param: + description: param defines the queried parameter. + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: subspace + description: subspace defines the module to query the parameter for. + in: query + required: false + type: string + - name: key + description: key defines the key of the parameter in the subspace. + in: query + required: false + type: string + tags: + - Query + /cosmos/params/v1beta1/subspaces: + get: + summary: >- + Subspaces queries for all registered subspaces and all keys for a + subspace. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosParamsV1Beta1Query_Subspaces + responses: + '200': + description: A successful response. + schema: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: >- + Subspace defines a parameter subspace name and all the keys + that exist for + + the subspace. + + + Since: cosmos-sdk 0.46 + description: >- + QuerySubspacesResponse defines the response types for querying for + all + + registered subspaces and all keys for a subspace. + + + Since: cosmos-sdk 0.46 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos.slashing.v1beta1.Msg/Unjail: + post: + summary: >- + Unjail defines a method for unjailing a jailed validator, thus returning + + them into the bonded validator set, so they can begin receiving + provisions + + and rewards again. + operationId: CosmosSlashingV1Beta1Msg_Unjail + responses: + '200': + description: A successful response. + schema: + type: object + title: MsgUnjailResponse defines the Msg/Unjail response type + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + validator_addr: + type: string + title: MsgUnjail defines the Msg/Unjail request type + tags: + - Msg + /cosmos.slashing.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/slashing + module + + parameters. The authority defaults to the x/gov module account. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosSlashingV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: |- + params defines the x/slashing parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.staking.v1beta1.Msg/BeginRedelegate: + post: + summary: >- + BeginRedelegate defines a method for performing a redelegation + + of coins from a delegator and source validator to a destination + validator. + operationId: CosmosStakingV1Beta1Msg_BeginRedelegate + responses: + '200': + description: A successful response. + schema: + type: object + properties: + completion_time: + type: string + format: date-time + description: >- + MsgBeginRedelegateResponse defines the Msg/BeginRedelegate + response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgBeginRedelegate defines a SDK message for performing a + redelegation + + of coins from a delegator and source validator to a destination + validator. + in: body + required: true + schema: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + MsgBeginRedelegate defines a SDK message for performing a + redelegation + + of coins from a delegator and source validator to a destination + validator. + tags: + - Msg + /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation: + post: + summary: >- + CancelUnbondingDelegation defines a method for performing canceling the + unbonding delegation + + and delegate back to previous validator. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation + responses: + '200': + description: A successful response. + schema: + type: object + description: 'Since: cosmos-sdk 0.46' + title: MsgCancelUnbondingDelegationResponse + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: 'Since: cosmos-sdk 0.46' + in: body + required: true + schema: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: >- + amount is always less than or equal to unbonding delegation + entry balance + creation_height: + type: string + format: int64 + description: creation_height is the height which the unbonding took place. + description: 'Since: cosmos-sdk 0.46' + title: >- + MsgCancelUnbondingDelegation defines the SDK message for + performing a cancel unbonding delegation for delegator + tags: + - Msg + /cosmos.staking.v1beta1.Msg/CreateValidator: + post: + summary: CreateValidator defines a method for creating a new validator. + operationId: CosmosStakingV1Beta1Msg_CreateValidator + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgCreateValidatorResponse defines the Msg/CreateValidator + response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgCreateValidator defines a SDK message for creating a new + validator. + in: body + required: true + schema: + type: object + properties: + description: + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort + or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + description: Description defines a validator description. + commission: + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + description: >- + CommissionRates defines the initial commission rates to be + used for creating + + a validator. + min_self_delegation: + type: string + delegator_address: + type: string + description: >- + Deprecated: Use of Delegator Address in MsgCreateValidator is + deprecated. + + The validator address bytes and delegator address bytes refer + to the same account while creating validator (defer + + only in bech32 notation). + validator_address: + type: string + pubkey: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + value: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + MsgCreateValidator defines a SDK message for creating a new + validator. + tags: + - Msg + /cosmos.staking.v1beta1.Msg/Delegate: + post: + summary: |- + Delegate defines a method for performing a delegation of coins + from a delegator to a validator. + operationId: CosmosStakingV1Beta1Msg_Delegate + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgDelegateResponse defines the Msg/Delegate response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: - name: body + description: >- + MsgDelegate defines a SDK message for performing a delegation of + coins + + from a delegator to a validator. in: body required: true schema: type: object properties: - creator: - type: string - idType: + delegator_address: type: string - idValue: + validator_address: type: string - keyShare: + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + MsgDelegate defines a SDK message for performing a delegation of + coins + + from a delegator to a validator. + tags: + - Msg + /cosmos.staking.v1beta1.Msg/EditValidator: + post: + summary: EditValidator defines a method for editing an existing validator. + operationId: CosmosStakingV1Beta1Msg_EditValidator + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgEditValidatorResponse defines the Msg/EditValidator response + type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: type: string - keyShareIndex: + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgEditValidator defines a SDK message for editing an existing + validator. + in: body + required: true + schema: + type: object + properties: + description: + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort + or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + description: Description defines a validator description. + validator_address: type: string - format: uint64 - receivedTimestamp: + commission_rate: type: string - format: uint64 - receivedBlockHeight: + title: >- + We pass a reference to the new commission rate and min self + delegation as + + it's not mandatory to update. If not updated, the deserialized + rate will be + + zero with no way to distinguish if an update was intended. + + REF: #2373 + min_self_delegation: type: string - format: uint64 + description: >- + MsgEditValidator defines a SDK message for editing an existing + validator. tags: - Msg - /fairyring.keyshare.Msg/CreateLatestPubKey: + /cosmos.staking.v1beta1.Msg/Undelegate: post: - summary: 'this line is used by starport scaffolding # proto/tx/rpc' - operationId: FairyringKeyshareMsg_CreateLatestPubKey + summary: |- + Undelegate defines a method for performing an undelegation from a + delegate and a validator. + operationId: CosmosStakingV1Beta1Msg_Undelegate responses: '200': description: A successful response. schema: type: object + properties: + completion_time: + type: string + format: date-time + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: amount returns the amount of undelegated coins + description: MsgUndelegateResponse defines the Msg/Undelegate response type. default: description: An unexpected error response. schema: @@ -6200,48 +15036,238 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body + description: >- + MsgUndelegate defines a SDK message for performing an undelegation + from a + + delegate and a validator. in: body required: true schema: type: object properties: - creator: - type: string - publicKey: + delegator_address: type: string - commitments: - type: array - items: - type: string - numberOfValidators: + validator_address: type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - title: 'this line is used by starport scaffolding # proto/tx/message' + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + MsgUndelegate defines a SDK message for performing an undelegation + from a + + delegate and a validator. tags: - Msg - /fairyring.keyshare.Msg/DeRegisterValidator: + /cosmos.staking.v1beta1.Msg/UpdateParams: post: - operationId: FairyringKeyshareMsg_DeRegisterValidator + summary: |- + UpdateParams defines an operation for updating the x/staking module + parameters. + Since: cosmos-sdk 0.47 + operationId: CosmosStakingV1Beta1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - properties: - creator: - type: string + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -6259,21 +15285,240 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 in: body required: true schema: type: object properties: - creator: + authority: type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: |- + params defines the x/staking parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + unbonding_time: + type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 + description: >- + max_entries is the max entries for either unbonding + delegation or redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: >- + historical_entries is the number of historical entries to + persist. + bond_denom: + type: string + description: bond_denom defines the bondable coin denomination. + min_commission_rate: + type: string + title: >- + min_commission_rate is the chain-wide minimum commission + rate that a validator can charge their delegators + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 tags: - Msg - /fairyring.keyshare.Msg/DeleteAuthorizedAddress: + /fairyring.pep.Msg/CreateAggregatedKeyShare: post: - operationId: FairyringKeyshareMsg_DeleteAuthorizedAddress + summary: 'this line is used by starport scaffolding # proto/tx/rpc' + operationId: FairyringPepMsg_CreateAggregatedKeyShare responses: '200': description: A successful response. @@ -6304,15 +15549,19 @@ paths: schema: type: object properties: - target: - type: string creator: type: string + height: + type: string + format: uint64 + data: + type: string + title: 'this line is used by starport scaffolding # proto/tx/message' tags: - Msg - /fairyring.keyshare.Msg/OverrideLatestPubKey: + /fairyring.pep.Msg/GetGeneralKeyshare: post: - operationId: FairyringKeyshareMsg_OverrideLatestPubKey + operationId: FairyringPepMsg_GetGeneralKeyshare responses: '200': description: A successful response. @@ -6345,36 +15594,20 @@ paths: properties: creator: type: string - publicKey: - type: string - commitments: - type: array - items: - type: string - numberOfValidators: + req_id: type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string tags: - Msg - /fairyring.keyshare.Msg/RegisterValidator: + /fairyring.pep.Msg/RequestGeneralKeyshare: post: - operationId: FairyringKeyshareMsg_RegisterValidator + operationId: FairyringPepMsg_RequestGeneralKeyshare responses: '200': description: A successful response. schema: type: object properties: - creator: + req_id: type: string default: description: An unexpected error response. @@ -6403,34 +15636,20 @@ paths: properties: creator: type: string + estimated_delay: + type: string + req_id: + type: string tags: - Msg - /fairyring.keyshare.Msg/SendKeyshare: + /fairyring.pep.Msg/SubmitEncryptedTx: post: - operationId: FairyringKeyshareMsg_SendKeyshare + operationId: FairyringPepMsg_SubmitEncryptedTx responses: '200': description: A successful response. schema: type: object - properties: - creator: - type: string - keyshare: - type: string - keyshareIndex: - type: string - format: uint64 - blockHeight: - type: string - format: uint64 - receivedBlockHeight: - type: string - format: uint64 - success: - type: boolean - errorMessage: - type: string default: description: An unexpected error response. schema: @@ -6458,19 +15677,16 @@ paths: properties: creator: type: string - message: - type: string - keyShareIndex: + data: type: string - format: uint64 - blockHeight: + targetBlockHeight: type: string format: uint64 tags: - Msg - /fairyring.keyshare.Msg/UpdateAuthorizedAddress: + /fairyring.pep.Msg/SubmitGeneralEncryptedTx: post: - operationId: FairyringKeyshareMsg_UpdateAuthorizedAddress + operationId: FairyringPepMsg_SubmitGeneralEncryptedTx responses: '200': description: A successful response. @@ -6501,229 +15717,30 @@ paths: schema: type: object properties: - target: - type: string - isAuthorized: - type: boolean creator: type: string + data: + type: string + req_id: + type: string tags: - Msg - /fairyring.keyshare.Msg/UpdateParams: + /fairyring.pep.Msg/UpdateParams: post: summary: |- UpdateParams defines a (governance) operation for updating the module parameters. The authority defaults to the x/gov module account. - operationId: FairyringKeyshareMsg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - params: - description: 'NOTE: All parameters must be supplied.' - type: object - properties: - key_expiry: - type: string - format: uint64 - minimum_bonded: - type: string - format: uint64 - max_idled_block: - type: string - format: uint64 - trusted_addresses: - type: array - items: - type: string - slash_fraction_no_keyshare: - type: string - format: byte - slash_fraction_wrong_keyshare: - type: string - format: byte - description: MsgUpdateParams is the Msg/UpdateParams request type. - tags: - - Msg - /fairyring/keyshare/aggregated_key_share: - get: - operationId: FairyringKeyshareQuery_AggregatedKeyShareAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - aggregatedKeyShare: - type: array - items: - type: object - properties: - height: - type: string - format: uint64 - data: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /fairyring/keyshare/aggregated_key_share/{height}: - get: - summary: Queries a list of AggregatedKeyShare items. - operationId: FairyringKeyshareQuery_AggregatedKeyShare - responses: - '200': - description: A successful response. - schema: - type: object - properties: - aggregatedKeyShare: - type: object - properties: - height: - type: string - format: uint64 - data: - type: string + operationId: FairyringPepMsg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. default: description: An unexpected error response. schema: @@ -6743,33 +15760,110 @@ paths: type: string additionalProperties: {} parameters: - - name: height - in: path + - name: body + description: MsgUpdateParams is the Msg/UpdateParams request type. + in: body required: true - type: string - format: uint64 + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: 'NOTE: All parameters must be supplied.' + type: object + properties: + keyshare_channel_id: + type: string + is_source_chain: + type: boolean + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + trusted_addresses: + type: array + items: + type: string + min_gas_price: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: MsgUpdateParams is the Msg/UpdateParams request type. tags: - - Query - /fairyring/keyshare/authorized_address: + - Msg + /fairyring/pep/encrypted_tx: get: - operationId: FairyringKeyshareQuery_AuthorizedAddressAll + summary: Queries a list of EncryptedTx items. + operationId: FairyringPepQuery_EncryptedTxAll responses: '200': description: A successful response. schema: type: object properties: - authorizedAddress: + encryptedTxArray: type: array items: type: object properties: - target: - type: string - isAuthorized: - type: boolean - authorizedBy: - type: string + encryptedTx: + type: array + items: + type: object + properties: + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean pagination: type: object properties: @@ -6875,25 +15969,55 @@ paths: type: boolean tags: - Query - /fairyring/keyshare/authorized_address/{target}: + /fairyring/pep/encrypted_tx/{targetHeight}: get: - summary: Queries a list of AuthorizedAddress items. - operationId: FairyringKeyshareQuery_AuthorizedAddress + summary: Queries a list of EncryptedTx items. + operationId: FairyringPepQuery_EncryptedTxAllFromHeight responses: '200': description: A successful response. schema: type: object properties: - authorizedAddress: + encryptedTxArray: type: object properties: - target: - type: string - isAuthorized: - type: boolean - authorizedBy: - type: string + encryptedTx: + type: array + items: + type: object + properties: + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean default: description: An unexpected error response. schema: @@ -6913,35 +16037,56 @@ paths: type: string additionalProperties: {} parameters: - - name: target + - name: targetHeight in: path required: true type: string + format: uint64 tags: - Query - /fairyring/keyshare/commitments: + /fairyring/pep/encrypted_tx/{targetHeight}/{index}: get: - operationId: FairyringKeyshareQuery_Commitments + summary: Queries a EncryptedTx by index. + operationId: FairyringPepQuery_EncryptedTx responses: '200': description: A successful response. schema: type: object properties: - activeCommitments: - type: object - properties: - commitments: - type: array - items: - type: string - queuedCommitments: + encryptedTx: type: object properties: - commitments: - type: array - items: - type: string + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean default: description: An unexpected error response. schema: @@ -6960,39 +16105,76 @@ paths: '@type': type: string additionalProperties: {} + parameters: + - name: targetHeight + in: path + required: true + type: string + format: uint64 + - name: index + in: path + required: true + type: string + format: uint64 tags: - Query - /fairyring/keyshare/general_key_share: + /fairyring/pep/keyshare: get: - operationId: FairyringKeyshareQuery_GeneralKeyShareAll + operationId: FairyringPepQuery_KeyshareReqAll responses: '200': description: A successful response. schema: type: object properties: - generalKeyShare: + keyshares: type: array items: type: object properties: - validator: - type: string - idType: + creator: type: string - idValue: + request_id: type: string - keyShare: + identity: type: string - keyShareIndex: + pubkey: type: string - format: uint64 - receivedTimestamp: - type: string - format: uint64 - receivedBlockHeight: + tx_list: + type: object + properties: + encryptedTx: + type: array + items: + type: object + properties: + identity: + type: string + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and + an amount. + + + NOTE: The amount field is an Int which + implements the custom method + + signatures required by gogoproto. + aggr_keyshare: type: string - format: uint64 pagination: type: object properties: @@ -7098,36 +16280,170 @@ paths: type: boolean tags: - Query - /fairyring/keyshare/general_key_share/{validator}/{idType}/{idValue}: + /fairyring/pep/keyshare/{req_id}: get: - summary: Queries a list of GeneralKeyShare items. - operationId: FairyringKeyshareQuery_GeneralKeyShare + operationId: FairyringPepQuery_KeyshareReq responses: '200': description: A successful response. schema: type: object properties: - generalKeyShare: + keyshare: type: object properties: - validator: - type: string - idType: + creator: type: string - idValue: + request_id: type: string - keyShare: + identity: type: string - keyShareIndex: + pubkey: type: string - format: uint64 - receivedTimestamp: + tx_list: + type: object + properties: + encryptedTx: + type: array + items: + type: object + properties: + identity: + type: string + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which + implements the custom method + + signatures required by gogoproto. + aggr_keyshare: type: string - format: uint64 - receivedBlockHeight: + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: req_id + in: path + required: true + type: string + tags: + - Query + /fairyring/pep/latest_height: + get: + summary: Queries a list of LatestHeight items. + operationId: FairyringPepQuery_LatestHeight + responses: + '200': + description: A successful response. + schema: + type: object + properties: + height: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /fairyring/pep/params: + get: + summary: Parameters queries the parameters of the module. + operationId: FairyringPepQuery_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + keyshare_channel_id: type: string - format: uint64 + is_source_chain: + type: boolean + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + trusted_addresses: + type: array + items: + type: string + min_gas_price: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -7146,50 +16462,26 @@ paths: '@type': type: string additionalProperties: {} - parameters: - - name: validator - in: path - required: true - type: string - - name: idType - in: path - required: true - type: string - - name: idValue - in: path - required: true - type: string tags: - Query - /fairyring/keyshare/key_share: + /fairyring/pep/pep_nonce: get: - summary: Queries a list of KeyShare items. - operationId: FairyringKeyshareQuery_KeyShareAll + summary: Queries a list of PepNonce items. + operationId: FairyringPepQuery_PepNonceAll responses: '200': description: A successful response. schema: type: object properties: - keyShare: + pepNonce: type: array items: type: object properties: - validator: - type: string - blockHeight: - type: string - format: uint64 - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedTimestamp: + address: type: string - format: uint64 - receivedBlockHeight: + nonce: type: string format: uint64 pagination: @@ -7297,33 +16589,77 @@ paths: type: boolean tags: - Query - /fairyring/keyshare/key_share/{validator}/{blockHeight}: + /fairyring/pep/pep_nonce/{address}: get: - summary: Queries a KeyShare by index. - operationId: FairyringKeyshareQuery_KeyShare + summary: Queries a PepNonce by index. + operationId: FairyringPepQuery_PepNonce responses: '200': description: A successful response. schema: type: object properties: - keyShare: + pepNonce: type: object properties: - validator: + address: type: string - blockHeight: + nonce: type: string format: uint64 - keyShare: + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + in: path + required: true + type: string + tags: + - Query + /fairyring/pep/pub_key: + get: + summary: Queries the public keys + operationId: FairyringPepQuery_PubKey + responses: + '200': + description: A successful response. + schema: + type: object + properties: + activePubKey: + type: object + properties: + publicKey: type: string - keyShareIndex: + creator: type: string - format: uint64 - receivedTimestamp: + expiry: type: string format: uint64 - receivedBlockHeight: + queuedPubKey: + type: object + properties: + publicKey: + type: string + creator: + type: string + expiry: type: string format: uint64 default: @@ -7344,199 +16680,331 @@ paths: '@type': type: string additionalProperties: {} + tags: + - Query + /ibc.applications.fee.v1.Msg/PayPacketFee: + post: + summary: >- + PayPacketFee defines a rpc handler method for MsgPayPacketFee + + PayPacketFee is an open callback that may be called by any module/user + that wishes to escrow funds in order to + + incentivize the relaying of the packet at the next sequence + + NOTE: This method is intended to be used within a multi msg transaction, + where the subsequent msg that follows + + initiates the lifecycle of the incentivized packet + operationId: IbcApplicationsFeeV1Msg_PayPacketFee + responses: + '200': + description: A successful response. + schema: + type: object + title: >- + MsgPayPacketFeeResponse defines the response type for the + PayPacketFee rpc + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - - name: validator - in: path - required: true - type: string - - name: blockHeight - in: path + - name: body + in: body required: true - type: string - format: uint64 - tags: - - Query - /fairyring/keyshare/params: - get: - summary: Parameters queries the parameters of the module. - operationId: FairyringKeyshareQuery_Params - responses: - '200': - description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated + with an IBC packet type: object properties: - key_expiry: - type: string - format: uint64 - minimum_bonded: - type: string - format: uint64 - max_idled_block: - type: string - format: uint64 - trusted_addresses: + recv_fee: type: array items: - type: string - slash_fraction_no_keyshare: - type: string - format: byte - slash_fraction_wrong_keyshare: - type: string - format: byte - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /fairyring/keyshare/pub_key: - get: - summary: Queries the public keys - operationId: FairyringKeyshareQuery_PubKey - responses: - '200': - description: A successful response. - schema: - type: object - properties: - activePubKey: - type: object - properties: - publicKey: - type: string - creator: - type: string - expiry: - type: string - format: uint64 - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: type: array items: type: object properties: - data: + denom: type: string - validator: + amount: type: string - queuedPubKey: - type: object - properties: - publicKey: - type: string - creator: - type: string - expiry: - type: string - format: uint64 - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: type: array items: type: object properties: - data: + denom: type: string - validator: + amount: type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: the packet timeout fee + source_port_id: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /fairyring/keyshare/validator_set: - get: - summary: Queries a list of ValidatorSet items. - operationId: FairyringKeyshareQuery_ValidatorSetAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validatorSet: + title: the source port unique identifier + source_channel_id: + type: string + title: the source channel unique identifer + signer: + type: string + title: account address to refund fee if necessary + relayers: type: array items: - type: object - properties: - index: - type: string - validator: - type: string - consAddr: - type: string - isActive: - type: boolean - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + type: string + title: optional list of relayers permitted to the receive packet fees + title: >- + MsgPayPacketFee defines the request type for the PayPacketFee rpc - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + This Msg can be used to pay for a packet at the next sequence send + & should be combined with the Msg that will be - corresponding request message has used PageRequest. + paid for + tags: + - Msg + /ibc.applications.fee.v1.Msg/PayPacketFeeAsync: + post: + summary: >- + PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + PayPacketFeeAsync is an open callback that may be called by any + module/user that wishes to escrow funds in order to + + incentivize the relaying of a known packet (i.e. at a particular + sequence) + operationId: IbcApplicationsFeeV1Msg_PayPacketFeeAsync + responses: + '200': + description: A successful response. + schema: + type: object + title: >- + MsgPayPacketFeeAsyncResponse defines the response type for the + PayPacketFeeAsync rpc default: description: An unexpected error response. schema: @@ -7554,87 +17022,312 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + - name: body + in: body + required: true + schema: + type: object + properties: + packet_id: + title: >- + unique packet identifier comprised of the channel ID, port ID + and sequence + type: object + properties: + port_id: + type: string + title: channel port identifier + channel_id: + type: string + title: channel unique identifier + sequence: + type: string + format: uint64 + title: packet sequence + packet_fee: + title: the packet fee associated with a particular IBC packet + type: object + properties: + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated + with an IBC packet + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. - It is less efficient than using key. Only one of offset or key - should - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + NOTE: The amount field is an Int which implements + the custom method - a count of the total number of items available for pagination in - UIs. + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. - count_total is only respected when offset is used. It is ignored - when key - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + NOTE: The amount field is an Int which implements + the custom method + signatures required by gogoproto. + title: the packet timeout fee + refund_address: + type: string + title: the refund address for unspent fees + relayers: + type: array + items: + type: string + title: optional list of relayers permitted to receive fees + title: >- + MsgPayPacketFeeAsync defines the request type for the + PayPacketFeeAsync rpc - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + This Msg can be used to pay for a packet at a specified sequence + (instead of the next sequence send) tags: - - Query - /fairyring/keyshare/validator_set/{index}: - get: - summary: Queries a ValidatorSet by index. - operationId: FairyringKeyshareQuery_ValidatorSet + - Msg + /ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee: + post: + summary: >- + RegisterCounterpartyPayee defines a rpc handler method for + MsgRegisterCounterpartyPayee + + RegisterCounterpartyPayee is called by the relayer on each channelEnd + and allows them to specify the counterparty + + payee address before relaying. This ensures they will be properly + compensated for forward relaying since + + the destination chain must include the registered counterparty payee + address in the acknowledgement. This function + + may be called more than once by a relayer, in which case, the latest + counterparty payee address is always used. + operationId: IbcApplicationsFeeV1Msg_RegisterCounterpartyPayee responses: '200': description: A successful response. schema: type: object - properties: - validatorSet: - type: object - properties: - index: - type: string - validator: - type: string - consAddr: - type: string - isActive: - type: boolean + title: >- + MsgRegisterCounterpartyPayeeResponse defines the response type for + the RegisterCounterpartyPayee rpc default: description: An unexpected error response. schema: @@ -7652,57 +17345,229 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - - name: index - in: path + - name: body + in: body required: true - type: string - tags: - - Query - /fairyring/keyshare/verifiable_randomness: - get: - operationId: FairyringKeyshareQuery_VerifiableRandomness - responses: - '200': - description: A successful response. schema: type: object properties: - randomness: + port_id: type: string - round: + title: unique port identifier + channel_id: type: string - format: uint64 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + title: unique channel identifier + relayer: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} + title: the relayer address + counterparty_payee: + type: string + title: the counterparty payee address + title: >- + MsgRegisterCounterpartyPayee defines the request type for the + RegisterCounterpartyPayee rpc tags: - - Query - /fairyring.pep.Msg/CreateAggregatedKeyShare: + - Msg + /ibc.applications.fee.v1.Msg/RegisterPayee: post: - summary: 'this line is used by starport scaffolding # proto/tx/rpc' - operationId: FairyringPepMsg_CreateAggregatedKeyShare + summary: >- + RegisterPayee defines a rpc handler method for MsgRegisterPayee + + RegisterPayee is called by the relayer on each channelEnd and allows + them to set an optional + + payee to which reverse and timeout relayer packet fees will be paid out. + The payee should be registered on + + the source chain from which packets originate as this is where fee + distribution takes place. This function may be + + called more than once by a relayer, in which case, the latest payee is + always used. + operationId: IbcApplicationsFeeV1Msg_RegisterPayee responses: '200': description: A successful response. schema: type: object + title: >- + MsgRegisterPayeeResponse defines the response type for the + RegisterPayee rpc default: description: An unexpected error response. schema: @@ -7720,7 +17585,180 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body in: body @@ -7728,66 +17766,43 @@ paths: schema: type: object properties: - creator: - type: string - height: - type: string - format: uint64 - data: + port_id: type: string - title: 'this line is used by starport scaffolding # proto/tx/message' - tags: - - Msg - /fairyring.pep.Msg/GetGeneralKeyshare: - post: - operationId: FairyringPepMsg_GetGeneralKeyshare - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + title: unique port identifier + channel_id: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: + title: unique channel identifier + relayer: type: string - req_id: + title: the relayer address + payee: type: string + title: the payee address + title: >- + MsgRegisterPayee defines the request type for the RegisterPayee + rpc tags: - Msg - /fairyring.pep.Msg/RequestGeneralKeyshare: + /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount: post: - operationId: FairyringPepMsg_RequestGeneralKeyshare + summary: >- + RegisterInterchainAccount defines a rpc handler for + MsgRegisterInterchainAccount. + operationId: >- + IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount responses: '200': description: A successful response. schema: type: object properties: - req_id: + channel_id: + type: string + port_id: type: string + title: >- + MsgRegisterInterchainAccountResponse defines the response for + Msg/RegisterAccount default: description: An unexpected error response. schema: @@ -7805,7 +17820,180 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body in: body @@ -7813,20 +18001,44 @@ paths: schema: type: object properties: - creator: + owner: type: string - estimated_delay: + connection_id: + type: string + version: + type: string + ordering: type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + title: Order defines if a channel is ORDERED or UNORDERED + title: >- + MsgRegisterInterchainAccount defines the payload for + Msg/RegisterAccount tags: - Msg - /fairyring.pep.Msg/SubmitEncryptedTx: + /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx: post: - operationId: FairyringPepMsg_SubmitEncryptedTx + summary: SendTx defines a rpc handler for MsgSendTx. + operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx responses: '200': description: A successful response. schema: type: object + properties: + sequence: + type: string + format: uint64 + title: MsgSendTxResponse defines the response for MsgSendTx default: description: An unexpected error response. schema: @@ -7844,7 +18056,180 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body in: body @@ -7852,23 +18237,56 @@ paths: schema: type: object properties: - creator: + owner: type: string - data: + connection_id: type: string - targetBlockHeight: + packet_data: + type: object + properties: + type: + type: string + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain + title: >- + Type defines a classification of message issued from a + controller chain to its associated interchain accounts + + host + data: + type: string + format: byte + memo: + type: string + description: >- + InterchainAccountPacketData is comprised of a raw transaction, + type of transaction and optional memo field. + relative_timeout: type: string format: uint64 + description: >- + Relative timeout timestamp provided will be added to the + current block time during transaction execution. + + The timeout timestamp must be non-zero. + title: MsgSendTx defines the payload for Msg/SendTx tags: - Msg - /fairyring.pep.Msg/SubmitGeneralEncryptedTx: + /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams: post: - operationId: FairyringPepMsg_SubmitGeneralEncryptedTx + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams default: description: An unexpected error response. schema: @@ -7886,7 +18304,180 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: body in: body @@ -7894,30 +18485,36 @@ paths: schema: type: object properties: - creator: - type: string - data: - type: string - req_id: + signer: type: string + title: signer address + params: + description: >- + params defines the 27-interchain-accounts/controller + parameters to update. + + + NOTE: All parameters must be supplied. + type: object + properties: + controller_enabled: + type: boolean + description: >- + controller_enabled enables or disables the controller + submodule. + title: MsgUpdateParams defines the payload for Msg/UpdateParams tags: - Msg - /fairyring.pep.Msg/UpdateParams: + /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams: post: - summary: |- - UpdateParams defines a (governance) operation for updating the module - parameters. The authority defaults to the x/gov module account. - operationId: FairyringPepMsg_UpdateParams + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams default: description: An unexpected error response. schema: @@ -7938,84 +18535,51 @@ paths: additionalProperties: {} parameters: - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. in: body required: true schema: type: object properties: - authority: + signer: type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). + title: signer address params: - description: |- - params defines the module parameters to update. + description: >- + params defines the 27-interchain-accounts/host parameters to + update. + NOTE: All parameters must be supplied. type: object properties: - keyshare_channel_id: - type: string - is_source_chain: + host_enabled: type: boolean - trusted_counter_parties: - type: array - items: - type: object - properties: - client_id: - type: string - connection_id: - type: string - channel_id: - type: string - trusted_addresses: + description: host_enabled enables or disables the host submodule. + allow_messages: type: array items: - type: string - min_gas_price: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - description: MsgUpdateParams is the Msg/UpdateParams request type. - tags: - - Msg - /ibc.applications.fee.v1.Msg/PayPacketFee: - post: - summary: >- - PayPacketFee defines a rpc handler method for MsgPayPacketFee - - PayPacketFee is an open callback that may be called by any module/user - that wishes to escrow funds in order to - - incentivize the relaying of the packet at the next sequence - - NOTE: This method is intended to be used within a multi msg transaction, - where the subsequent msg that follows - - initiates the lifecycle of the incentivized packet - operationId: IbcApplicationsFeeV1Msg_PayPacketFee + type: string + description: >- + allow_messages defines a list of sdk message typeURLs + allowed to be executed on a host chain. + title: MsgUpdateParams defines the payload for Msg/UpdateParams + tags: + - Msg + /ibc.applications.transfer.v1.Msg/Transfer: + post: + summary: Transfer defines a rpc handler method for MsgTransfer. + operationId: IbcApplicationsTransferV1Msg_Transfer responses: '200': description: A successful response. schema: type: object - title: >- - MsgPayPacketFeeResponse defines the response type for the - PayPacketFee rpc + properties: + sequence: + type: string + format: uint64 + title: sequence number of the transfer packet sent + description: MsgTransferResponse defines the Msg/Transfer response type. default: description: An unexpected error response. schema: @@ -8214,108 +18778,87 @@ paths: schema: type: object properties: - fee: - title: >- - fee encapsulates the recv, ack and timeout fees associated - with an IBC packet + source_port: + type: string + title: the port on which the packet will be sent + source_channel: + type: string + title: the channel by which the packet will be sent + token: + title: the tokens to be transferred type: object properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the - custom method - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + NOTE: The amount field is an Int which implements the custom + method + signatures required by gogoproto. + sender: + type: string + title: the sender address + receiver: + type: string + title: the recipient address on the destination chain + timeout_height: + description: |- + Timeout height relative to the current block height. + The timeout is disabled when set to 0. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type - NOTE: The amount field is an Int which implements the - custom method + that can be compared against another Height for the purposes + of updating and - signatures required by gogoproto. - title: the packet timeout fee - source_port_id: - type: string - title: the source port unique identifier - source_channel_id: + freezing clients + timeout_timestamp: type: string - title: the source channel unique identifer - signer: + format: uint64 + description: |- + Timeout timestamp in absolute nanoseconds since unix epoch. + The timeout is disabled when set to 0. + memo: type: string - title: account address to refund fee if necessary - relayers: - type: array - items: - type: string - title: optional list of relayers permitted to the receive packet fees + title: optional memo title: >- - MsgPayPacketFee defines the request type for the PayPacketFee rpc + MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) + between - This Msg can be used to pay for a packet at the next sequence send - & should be combined with the Msg that will be + ICS20 enabled chains. See ICS Spec here: - paid for + https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures tags: - Msg - /ibc.applications.fee.v1.Msg/PayPacketFeeAsync: + /ibc.applications.transfer.v1.Msg/UpdateParams: post: - summary: >- - PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync - - PayPacketFeeAsync is an open callback that may be called by any - module/user that wishes to escrow funds in order to - - incentivize the relaying of a known packet (i.e. at a particular - sequence) - operationId: IbcApplicationsFeeV1Msg_PayPacketFeeAsync + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsTransferV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - title: >- - MsgPayPacketFeeAsyncResponse defines the response type for the - PayPacketFeeAsync rpc + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. default: description: An unexpected error response. schema: @@ -8480,165 +19023,80 @@ paths: additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - packet_id: - title: >- - unique packet identifier comprised of the channel ID, port ID - and sequence - type: object - properties: - port_id: - type: string - title: channel port identifier - channel_id: - type: string - title: channel unique identifier - sequence: - type: string - format: uint64 - title: packet sequence - packet_fee: - title: the packet fee associated with a particular IBC packet - type: object - properties: - fee: - title: >- - fee encapsulates the recv, ack and timeout fees associated - with an IBC packet - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + If the embedded message type is well-known and has a custom + JSON - NOTE: The amount field is an Int which implements - the custom method + representation, that representation will be embedded adding + a field - signatures required by gogoproto. - title: the packet timeout fee - refund_address: - type: string - title: the refund address for unspent fees - relayers: - type: array - items: - type: string - title: optional list of relayers permitted to receive fees - title: >- - MsgPayPacketFeeAsync defines the request type for the - PayPacketFeeAsync rpc + `value` which holds the custom JSON in addition to the + `@type` - This Msg can be used to pay for a packet at a specified sequence - (instead of the next sequence send) - tags: - - Msg - /ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee: - post: - summary: >- - RegisterCounterpartyPayee defines a rpc handler method for - MsgRegisterCounterpartyPayee + field. Example (for message [google.protobuf.Duration][]): - RegisterCounterpartyPayee is called by the relayer on each channelEnd - and allows them to specify the counterparty + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgUpdateParams is the Msg/UpdateParams request type. + in: body + required: true + schema: + type: object + properties: + signer: + type: string + title: signer address + params: + description: |- + params defines the transfer parameters to update. - payee address before relaying. This ensures they will be properly - compensated for forward relaying since + NOTE: All parameters must be supplied. + type: object + properties: + send_enabled: + type: boolean + description: >- + send_enabled enables or disables all cross-chain token + transfers from this - the destination chain must include the registered counterparty payee - address in the acknowledgement. This function + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token + transfers to this - may be called more than once by a relayer, in which case, the latest - counterparty payee address is always used. - operationId: IbcApplicationsFeeV1Msg_RegisterCounterpartyPayee + chain. + description: MsgUpdateParams is the Msg/UpdateParams request type. + tags: + - Msg + /ibc.core.client.v1.Msg/CreateClient: + post: + summary: CreateClient defines a rpc handler method for MsgCreateClient. + operationId: IbcCoreClientV1Msg_CreateClient responses: '200': description: A successful response. schema: type: object - title: >- - MsgRegisterCounterpartyPayeeResponse defines the response type for - the RegisterCounterpartyPayee rpc + description: >- + MsgCreateClientResponse defines the Msg/CreateClient response + type. default: description: An unexpected error response. schema: @@ -8837,283 +19295,271 @@ paths: schema: type: object properties: - port_id: - type: string - title: unique port identifier - channel_id: - type: string - title: unique channel identifier - relayer: - type: string - title: the relayer address - counterparty_payee: - type: string - title: the counterparty payee address - title: >- - MsgRegisterCounterpartyPayee defines the request type for the - RegisterCounterpartyPayee rpc - tags: - - Msg - /ibc.applications.fee.v1.Msg/RegisterPayee: - post: - summary: >- - RegisterPayee defines a rpc handler method for MsgRegisterPayee + client_state: + title: light client state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - RegisterPayee is called by the relayer on each channelEnd and allows - them to set an optional + protocol buffer message. This string must contain at least - payee to which reverse and timeout relayer packet fees will be paid out. - The payee should be registered on + one "/" character. The last segment of the URL's path must + represent - the source chain from which packets originate as this is where fee - distribution takes place. This function may be + the fully qualified name of the type (as in - called more than once by a relayer, in which case, the latest payee is - always used. - operationId: IbcApplicationsFeeV1Msg_RegisterPayee - responses: - '200': - description: A successful response. - schema: - type: object - title: >- - MsgRegisterPayeeResponse defines the response type for the - RegisterPayee rpc - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + `path/google.protobuf.Duration`). The name should be in a + canonical form - protocol buffer message. This string must contain at - least + (e.g., leading "." is not accepted). - one "/" character. The last segment of the URL's path - must represent - the fully qualified name of the type (as in + In practice, teams usually precompile into the binary all + types that they - `path/google.protobuf.Duration`). The name should be in - a canonical form + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. - (e.g., leading "." is not accepted). + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - In practice, teams usually precompile into the binary - all types that they + Example 2: Pack and unpack a message in Java. - expect it to use in the context of Any. However, for - URLs which use the + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - scheme `http`, `https`, or no scheme, one can optionally - set up a type + Example 3: Pack and unpack a message in Python. - server that maps type URLs to message definitions as - follows: + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - * If no scheme is provided, `https` is assumed. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + The pack methods provided by protobuf library will by default + use - Note: this functionality is not currently available in - the official + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - protobuf release, and it is not used for type URLs - beginning with + methods only use the fully qualified type name after the last + '/' - type.googleapis.com. As of May 2023, there are no widely - used type server + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - implementations and no plans to implement one. + name "y.z". - Schemes other than `http`, `https` (or the empty scheme) - might be + JSON - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + ==== - URL that describes the type of the serialized message. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - Protobuf library provides support to pack/unpack Any values - in the form + additional field `@type` which contains the type URL. Example: - of utility functions or additional generated methods of the - Any type. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Example 1: Pack and unpack a message in C++. + If the embedded message type is well-known and has a custom + JSON - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + representation, that representation will be embedded adding a + field - Example 2: Pack and unpack a message in Java. + `value` which holds the custom JSON in addition to the `@type` - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + field. Example (for message [google.protobuf.Duration][]): - Example 3: Pack and unpack a message in Python. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + consensus_state: + description: >- + consensus state associated with the client that corresponds to + a given - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + height. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - Example 4: Pack and unpack a message in Go + protocol buffer message. This string must contain at least - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + one "/" character. The last segment of the URL's path must + represent - The pack methods provided by protobuf library will by - default use + the fully qualified name of the type (as in - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + `path/google.protobuf.Duration`). The name should be in a + canonical form - methods only use the fully qualified type name after the - last '/' + (e.g., leading "." is not accepted). - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - name "y.z". + In practice, teams usually precompile into the binary all + types that they + expect it to use in the context of Any. However, for URLs + which use the - JSON + scheme `http`, `https`, or no scheme, one can optionally + set up a type - ==== + server that maps type URLs to message definitions as + follows: - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + * If no scheme is provided, `https` is assumed. - additional field `@type` which contains the type URL. - Example: + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Note: this functionality is not currently available in the + official - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + protobuf release, and it is not used for type URLs + beginning with - If the embedded message type is well-known and has a custom - JSON + type.googleapis.com. As of May 2023, there are no widely + used type server - representation, that representation will be embedded adding - a field + implementations and no plans to implement one. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + Schemes other than `http`, `https` (or the empty scheme) + might be - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - title: unique port identifier - channel_id: - type: string - title: unique channel identifier - relayer: - type: string - title: the relayer address - payee: + used with implementation specific semantics. + additionalProperties: {} + signer: type: string - title: the payee address - title: >- - MsgRegisterPayee defines the request type for the RegisterPayee - rpc + title: signer address + title: MsgCreateClient defines a message to create an IBC client tags: - Msg - /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount: + /ibc.core.client.v1.Msg/IBCSoftwareUpgrade: post: summary: >- - RegisterInterchainAccount defines a rpc handler for - MsgRegisterInterchainAccount. - operationId: >- - IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount + IBCSoftwareUpgrade defines a rpc handler method for + MsgIBCSoftwareUpgrade. + operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade responses: '200': description: A successful response. schema: type: object - properties: - channel_id: - type: string - port_id: - type: string - title: >- - MsgRegisterInterchainAccountResponse defines the response for - Msg/RegisterAccount + description: >- + MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade + response type. default: description: An unexpected error response. schema: @@ -9312,44 +19758,235 @@ paths: schema: type: object properties: - owner: - type: string - connection_id: - type: string - version: - type: string - ordering: + plan: + type: object + properties: + name: + type: string + description: >- + Sets the name for the upgrade. This name will be used by + the upgraded + + version of the software to apply any special "on-upgrade" + commands during + + the first BeginBlock method after the upgrade is applied. + It is also used + + to detect whether a software version can handle a given + upgrade. If no + + upgrade handler with this name has been set in the + software, it will be + + assumed that the software is out-of-date when the upgrade + Time or Height is + + reached and the software will exit. + time: + type: string + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time + based upgrade logic + + has been removed from the SDK. + + If this field is not empty, an error will be thrown. + height: + type: string + format: int64 + description: The height at which the upgrade must be performed. + info: + type: string + title: >- + Any application specific upgrade info to be included + on-chain + + such as a git commit that validators could automatically + upgrade to + upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. + IBC upgrade logic has been + + moved to the IBC module in the sub module 02-client. + + If this field is not empty, an error will be thrown. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no + widely used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + Plan specifies information about a planned upgrade and when it + should occur. + upgraded_client_state: + description: >- + An UpgradedClientState must be provided to perform an IBC + breaking upgrade. + + This will make the chain commit to the correct upgraded (self) + client state + + before the upgrade occurs, so that connecting chains can + verify that the + + new upgraded client is valid by verifying a proof on the + previous version + + of the chain. This will allow IBC connections to persist + smoothly across + + planned chain upgrades. Correspondingly, the + UpgradedClientState field has been + + deprecated in the Cosmos SDK to allow for this logic to exist + solely in + + the 02-client module. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + signer: type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - title: Order defines if a channel is ORDERED or UNORDERED + title: signer address title: >- - MsgRegisterInterchainAccount defines the payload for - Msg/RegisterAccount + MsgIBCSoftwareUpgrade defines the message used to schedule an + upgrade of an IBC client using a v1 governance proposal tags: - Msg - /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx: + /ibc.core.client.v1.Msg/RecoverClient: post: - summary: SendTx defines a rpc handler for MsgSendTx. - operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx + summary: RecoverClient defines a rpc handler method for MsgRecoverClient. + operationId: IbcCoreClientV1Msg_RecoverClient responses: '200': description: A successful response. schema: type: object - properties: - sequence: - type: string - format: uint64 - title: MsgSendTxResponse defines the response for MsgSendTx + description: >- + MsgRecoverClientResponse defines the Msg/RecoverClient response + type. default: description: An unexpected error response. schema: @@ -9543,61 +20180,50 @@ paths: } parameters: - name: body + description: >- + MsgRecoverClient defines the message used to recover a frozen or + expired client. in: body required: true schema: type: object properties: - owner: + subject_client_id: type: string - connection_id: + title: >- + the client identifier for the client to be updated if the + proposal passes + substitute_client_id: type: string - packet_data: - type: object - properties: - type: - type: string - enum: - - TYPE_UNSPECIFIED - - TYPE_EXECUTE_TX - default: TYPE_UNSPECIFIED - description: |- - - TYPE_UNSPECIFIED: Default zero value enumeration - - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain - title: >- - Type defines a classification of message issued from a - controller chain to its associated interchain accounts + title: >- + the substitute client identifier for the client which will + replace the subject - host - data: - type: string - format: byte - memo: - type: string - description: >- - InterchainAccountPacketData is comprised of a raw transaction, - type of transaction and optional memo field. - relative_timeout: + client + signer: type: string - format: uint64 - description: >- - Relative timeout timestamp provided will be added to the - current block time during transaction execution. - - The timeout timestamp must be non-zero. - title: MsgSendTx defines the payload for Msg/SendTx + title: signer address + description: >- + MsgRecoverClient defines the message used to recover a frozen or + expired client. tags: - Msg - /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams: + /ibc.core.client.v1.Msg/SubmitMisbehaviour: post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams + summary: >- + SubmitMisbehaviour defines a rpc handler method for + MsgSubmitMisbehaviour. + operationId: IbcCoreClientV1Msg_SubmitMisbehaviour responses: '200': description: A successful response. schema: type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams + description: >- + MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour + response + + type. default: description: An unexpected error response. schema: @@ -9791,106 +20417,221 @@ paths: } parameters: - name: body + description: >- + MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence + for + + light client misbehaviour. + + This message has been deprecated. Use MsgUpdateClient instead. in: body required: true schema: type: object properties: - signer: + client_id: type: string - title: signer address - params: - description: >- - params defines the 27-interchain-accounts/controller - parameters to update. - - - NOTE: All parameters must be supplied. + title: client unique identifier + misbehaviour: + title: misbehaviour used for freezing the light client type: object properties: - controller_enabled: - type: boolean + '@type': + type: string description: >- - controller_enabled enables or disables the controller - submodule. - title: MsgUpdateParams defines the payload for Msg/UpdateParams - tags: - - Msg - /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams: - post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } signer: type: string title: signer address - params: - description: >- - params defines the 27-interchain-accounts/host parameters to - update. + description: >- + MsgSubmitMisbehaviour defines an sdk.Msg type that submits + Evidence for + light client misbehaviour. - NOTE: All parameters must be supplied. - type: object - properties: - host_enabled: - type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: - type: array - items: - type: string - description: >- - allow_messages defines a list of sdk message typeURLs - allowed to be executed on a host chain. - title: MsgUpdateParams defines the payload for Msg/UpdateParams + This message has been deprecated. Use MsgUpdateClient instead. tags: - Msg - /ibc.applications.transfer.v1.Msg/Transfer: + /ibc.core.client.v1.Msg/UpdateClient: post: - summary: Transfer defines a rpc handler method for MsgTransfer. - operationId: IbcApplicationsTransferV1Msg_Transfer + summary: UpdateClient defines a rpc handler method for MsgUpdateClient. + operationId: IbcCoreClientV1Msg_UpdateClient responses: '200': description: A successful response. schema: type: object - properties: - sequence: - type: string - format: uint64 - title: sequence number of the transfer packet sent - description: MsgTransferResponse defines the Msg/Transfer response type. + description: >- + MsgUpdateClientResponse defines the Msg/UpdateClient response + type. default: description: An unexpected error response. schema: @@ -10078,98 +20819,221 @@ paths: field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - source_port: - type: string - title: the port on which the packet will be sent - source_channel: - type: string - title: the channel by which the packet will be sent - token: - title: the tokens to be transferred - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgUpdateClient defines an sdk.Msg to update a IBC client state + using + + the given client message. + in: body + required: true + schema: + type: object + properties: + client_id: + type: string + title: client unique identifier + client_message: + title: client message to update the light client + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + If the embedded message type is well-known and has a custom + JSON - NOTE: The amount field is an Int which implements the custom - method + representation, that representation will be embedded adding a + field - signatures required by gogoproto. - sender: - type: string - title: the sender address - receiver: - type: string - title: the recipient address on the destination chain - timeout_height: - description: |- - Timeout height relative to the current block height. - The timeout is disabled when set to 0. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type + `value` which holds the custom JSON in addition to the `@type` - that can be compared against another Height for the purposes - of updating and + field. Example (for message [google.protobuf.Duration][]): - freezing clients - timeout_timestamp: - type: string - format: uint64 - description: |- - Timeout timestamp in absolute nanoseconds since unix epoch. - The timeout is disabled when set to 0. - memo: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + signer: type: string - title: optional memo - title: >- - MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) - between - - ICS20 enabled chains. See ICS Spec here: + title: signer address + description: >- + MsgUpdateClient defines an sdk.Msg to update a IBC client state + using - https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + the given client message. tags: - Msg - /ibc.applications.transfer.v1.Msg/UpdateParams: + /ibc.core.client.v1.Msg/UpdateClientParams: post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsTransferV1Msg_UpdateParams + summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams. + operationId: IbcCoreClientV1Msg_UpdateClientParams responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. default: description: An unexpected error response. schema: @@ -10363,7 +21227,9 @@ paths: } parameters: - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + MsgUpdateParams defines the sdk.Msg type to update the client + parameters. in: body required: true schema: @@ -10374,39 +21240,40 @@ paths: title: signer address params: description: |- - params defines the transfer parameters to update. + params defines the client parameters to update. NOTE: All parameters must be supplied. type: object properties: - send_enabled: - type: boolean + allowed_clients: + type: array + items: + type: string description: >- - send_enabled enables or disables all cross-chain token - transfers from this + allowed_clients defines the list of allowed client state + types which can be created - chain. - receive_enabled: - type: boolean - description: >- - receive_enabled enables or disables all cross-chain token - transfers to this + and interacted with. If a client type is removed from the + allowed clients list, usage - chain. - description: MsgUpdateParams is the Msg/UpdateParams request type. + of this client will be disabled until it is added again to + the list. + description: >- + MsgUpdateParams defines the sdk.Msg type to update the client + parameters. tags: - Msg - /ibc.core.client.v1.Msg/CreateClient: + /ibc.core.client.v1.Msg/UpgradeClient: post: - summary: CreateClient defines a rpc handler method for MsgCreateClient. - operationId: IbcCoreClientV1Msg_CreateClient + summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient. + operationId: IbcCoreClientV1Msg_UpgradeClient responses: '200': description: A successful response. schema: type: object description: >- - MsgCreateClientResponse defines the Msg/CreateClient response + MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. default: description: An unexpected error response. @@ -10606,8 +21473,11 @@ paths: schema: type: object properties: + client_id: + type: string + title: client unique identifier client_state: - title: light client state + title: upgraded client state type: object properties: '@type': @@ -10783,11 +21653,11 @@ paths: "value": "1.212s" } consensus_state: - description: >- - consensus state associated with the client that corresponds to - a given + title: >- + upgraded consensus state, only contains enough information to + serve as a - height. + basis of trust in update logic type: object properties: '@type': @@ -10837,39 +21707,160 @@ paths: Note: this functionality is not currently available in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - type.googleapis.com. As of May 2023, there are no widely - used type server + If the embedded message type is well-known and has a custom + JSON - implementations and no plans to implement one. + representation, that representation will be embedded adding a + field + `value` which holds the custom JSON in addition to the `@type` - Schemes other than `http`, `https` (or the empty scheme) - might be + field. Example (for message [google.protobuf.Duration][]): - used with implementation specific semantics. - additionalProperties: {} + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof_upgrade_client: + type: string + format: byte + title: proof that old chain committed to new client + proof_upgrade_consensus_state: + type: string + format: byte + title: proof that old chain committed to new consensus state signer: type: string title: signer address - title: MsgCreateClient defines a message to create an IBC client + title: >- + MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a + new client + + state tags: - Msg - /ibc.core.client.v1.Msg/IBCSoftwareUpgrade: + /ibc.core.connection.v1.Msg/ConnectionOpenAck: post: - summary: >- - IBCSoftwareUpgrade defines a rpc handler method for - MsgIBCSoftwareUpgrade. - operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade + summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck responses: '200': description: A successful response. schema: type: object description: >- - MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade + MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. default: description: An unexpected error response. @@ -11064,240 +22055,324 @@ paths: } parameters: - name: body + description: |- + MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge the change of connection state to TRYOPEN on Chain B. in: body required: true schema: type: object properties: - plan: + connection_id: + type: string + counterparty_connection_id: + type: string + version: type: object properties: - name: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: list of features compatible with the specified identifier + description: >- + Version defines the versioning scheme used to negotiate the + IBC verison in + + the connection handshake. + client_state: + type: object + properties: + '@type': type: string description: >- - Sets the name for the upgrade. This name will be used by - the upgraded + A URL/resource name that uniquely identifies the type of + the serialized - version of the software to apply any special "on-upgrade" - commands during + protocol buffer message. This string must contain at least - the first BeginBlock method after the upgrade is applied. - It is also used + one "/" character. The last segment of the URL's path must + represent - to detect whether a software version can handle a given - upgrade. If no + the fully qualified name of the type (as in - upgrade handler with this name has been set in the - software, it will be + `path/google.protobuf.Duration`). The name should be in a + canonical form - assumed that the software is out-of-date when the upgrade - Time or Height is + (e.g., leading "." is not accepted). - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time - based upgrade logic - has been removed from the SDK. + In practice, teams usually precompile into the binary all + types that they - If this field is not empty, an error will be thrown. - height: - type: string - format: int64 - description: The height at which the upgrade must be performed. - info: - type: string - title: >- - Any application specific upgrade info to be included - on-chain + expect it to use in the context of Any. However, for URLs + which use the - such as a git commit that validators could automatically - upgrade to - upgraded_client_state: - description: >- - Deprecated: UpgradedClientState field has been deprecated. - IBC upgrade logic has been + scheme `http`, `https`, or no scheme, one can optionally + set up a type - moved to the IBC module in the sub module 02-client. + server that maps type URLs to message definitions as + follows: - If this field is not empty, an error will be thrown. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized - protocol buffer message. This string must contain at - least + * If no scheme is provided, `https` is assumed. - one "/" character. The last segment of the URL's path - must represent + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - the fully qualified name of the type (as in + Note: this functionality is not currently available in the + official - `path/google.protobuf.Duration`). The name should be - in a canonical form + protobuf release, and it is not used for type URLs + beginning with - (e.g., leading "." is not accepted). + type.googleapis.com. As of May 2023, there are no widely + used type server + implementations and no plans to implement one. - In practice, teams usually precompile into the binary - all types that they - expect it to use in the context of Any. However, for - URLs which use the + Schemes other than `http`, `https` (or the empty scheme) + might be - scheme `http`, `https`, or no scheme, one can - optionally set up a type + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - server that maps type URLs to message definitions as - follows: + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. + Protobuf library provides support to pack/unpack Any values in + the form - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Note: this functionality is not currently available in - the official + name "y.z". - protobuf release, and it is not used for type URLs - beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server + JSON - implementations and no plans to implement one. + ==== + The JSON representation of an `Any` value uses the regular - Schemes other than `http`, `https` (or the empty - scheme) might be + representation of the deserialized, embedded message, with an - used with implementation specific semantics. - additionalProperties: {} - description: >- - Plan specifies information about a planned upgrade and when it - should occur. - upgraded_client_state: - description: >- - An UpgradedClientState must be provided to perform an IBC - breaking upgrade. + additional field `@type` which contains the type URL. Example: - This will make the chain commit to the correct upgraded (self) - client state + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - before the upgrade occurs, so that connecting chains can - verify that the + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - new upgraded client is valid by verifying a proof on the - previous version + If the embedded message type is well-known and has a custom + JSON - of the chain. This will allow IBC connections to persist - smoothly across + representation, that representation will be embedded adding a + field - planned chain upgrades. Correspondingly, the - UpgradedClientState field has been + `value` which holds the custom JSON in addition to the `@type` - deprecated in the Cosmos SDK to allow for this logic to exist - solely in + field. Example (for message [google.protobuf.Duration][]): - the 02-client module. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof_height: type: object properties: - '@type': + revision_number: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + RevisionNumber the same. However some consensus algorithms may + choose to - In practice, teams usually precompile into the binary all - types that they + reset the height in certain conditions e.g. hard forks, + state-machine - expect it to use in the context of Any. However, for URLs - which use the + breaking changes In these cases, the RevisionNumber is + incremented so that - scheme `http`, `https`, or no scheme, one can optionally - set up a type + height continues to be monitonically increasing even as the + RevisionHeight - server that maps type URLs to message definitions as - follows: + gets reset + title: >- + Height is a monotonically increasing data type + that can be compared against another Height for the purposes + of updating and - * If no scheme is provided, `https` is assumed. + freezing clients + proof_try: + type: string + format: byte + title: >- + proof of the initialization the connection on Chain B: + `UNITIALIZED -> - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + TRYOPEN` + proof_client: + type: string + format: byte + title: proof of client state included in message + proof_consensus: + type: string + format: byte + title: proof of client consensus state + consensus_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - Note: this functionality is not currently available in the - official + RevisionNumber the same. However some consensus algorithms may + choose to - protobuf release, and it is not used for type URLs - beginning with + reset the height in certain conditions e.g. hard forks, + state-machine - type.googleapis.com. As of May 2023, there are no widely - used type server + breaking changes In these cases, the RevisionNumber is + incremented so that - implementations and no plans to implement one. + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + title: >- + Height is a monotonically increasing data type - Schemes other than `http`, `https` (or the empty scheme) - might be + that can be compared against another Height for the purposes + of updating and - used with implementation specific semantics. - additionalProperties: {} + freezing clients signer: type: string - title: signer address - title: >- - MsgIBCSoftwareUpgrade defines the message used to schedule an - upgrade of an IBC client using a v1 governance proposal + host_consensus_state_proof: + type: string + format: byte + title: >- + optional proof data for host state machines that are unable to + introspect their own consensus state + description: |- + MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge the change of connection state to TRYOPEN on Chain B. tags: - Msg - /ibc.core.client.v1.Msg/RecoverClient: + /ibc.core.connection.v1.Msg/ConnectionOpenConfirm: post: - summary: RecoverClient defines a rpc handler method for MsgRecoverClient. - operationId: IbcCoreClientV1Msg_RecoverClient + summary: |- + ConnectionOpenConfirm defines a rpc handler method for + MsgConnectionOpenConfirm. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm responses: '200': description: A successful response. schema: type: object description: >- - MsgRecoverClientResponse defines the Msg/RecoverClient response - type. + MsgConnectionOpenConfirmResponse defines the + Msg/ConnectionOpenConfirm + + response type. default: description: An unexpected error response. schema: @@ -11492,46 +22567,80 @@ paths: parameters: - name: body description: >- - MsgRecoverClient defines the message used to recover a frozen or - expired client. + MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B + to + + acknowledge the change of connection state to OPEN on Chain A. in: body required: true schema: type: object properties: - subject_client_id: + connection_id: type: string - title: >- - the client identifier for the client to be updated if the - proposal passes - substitute_client_id: + proof_ack: type: string + format: byte title: >- - the substitute client identifier for the client which will - replace the subject + proof for the change of the connection state on Chain A: `INIT + -> OPEN` + proof_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - client + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes + of updating and + + freezing clients signer: type: string - title: signer address description: >- - MsgRecoverClient defines the message used to recover a frozen or - expired client. + MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain + B to + + acknowledge the change of connection state to OPEN on Chain A. tags: - Msg - /ibc.core.client.v1.Msg/SubmitMisbehaviour: + /ibc.core.connection.v1.Msg/ConnectionOpenInit: post: summary: >- - SubmitMisbehaviour defines a rpc handler method for - MsgSubmitMisbehaviour. - operationId: IbcCoreClientV1Msg_SubmitMisbehaviour + ConnectionOpenInit defines a rpc handler method for + MsgConnectionOpenInit. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit responses: '200': description: A successful response. schema: type: object description: >- - MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour + MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type. @@ -11729,12 +22838,10 @@ paths: parameters: - name: body description: >- - MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence - for - - light client misbehaviour. + MsgConnectionOpenInit defines the msg sent by an account on Chain A + to - This message has been deprecated. Use MsgUpdateClient instead. + initialize a connection with Chain B. in: body required: true schema: @@ -11742,207 +22849,80 @@ paths: properties: client_id: type: string - title: client unique identifier - misbehaviour: - title: misbehaviour used for freezing the light client + counterparty: type: object properties: - '@type': + client_id: type: string description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. As of May 2023, there are no widely - used type server + identifies the client on the counterparty chain associated + with a given - implementations and no plans to implement one. + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain + associated with a + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. - Schemes other than `http`, `https` (or the empty scheme) - might be + The constructed key from the Path and the key will be + append(Path.KeyPath, - used with implementation specific semantics. - additionalProperties: {} + append(Path.KeyPrefix, key...)) description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): + Counterparty defines the counterparty chain associated with a + connection end. + version: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: list of features compatible with the specified identifier + description: >- + Version defines the versioning scheme used to negotiate the + IBC verison in - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + the connection handshake. + delay_period: + type: string + format: uint64 signer: type: string - title: signer address description: >- - MsgSubmitMisbehaviour defines an sdk.Msg type that submits - Evidence for - - light client misbehaviour. + MsgConnectionOpenInit defines the msg sent by an account on Chain + A to - This message has been deprecated. Use MsgUpdateClient instead. + initialize a connection with Chain B. tags: - Msg - /ibc.core.client.v1.Msg/UpdateClient: + /ibc.core.connection.v1.Msg/ConnectionOpenTry: post: - summary: UpdateClient defines a rpc handler method for MsgUpdateClient. - operationId: IbcCoreClientV1Msg_UpdateClient + summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry responses: '200': description: A successful response. schema: type: object description: >- - MsgUpdateClientResponse defines the Msg/UpdateClient response - type. + MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry + response type. default: description: An unexpected error response. schema: @@ -12137,10 +23117,10 @@ paths: parameters: - name: body description: >- - MsgUpdateClient defines an sdk.Msg to update a IBC client state - using + MsgConnectionOpenTry defines a msg sent by a Relayer to try to open + a - the given client message. + connection on Chain B. in: body required: true schema: @@ -12148,9 +23128,12 @@ paths: properties: client_id: type: string - title: client unique identifier - client_message: - title: client message to update the light client + previous_connection_id: + type: string + description: >- + Deprecated: this field is unused. Crossing hellos are no + longer supported in core IBC. + client_state: type: object properties: '@type': @@ -12325,267 +23308,176 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - signer: - type: string - title: signer address - description: >- - MsgUpdateClient defines an sdk.Msg to update a IBC client state - using + counterparty: + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated + with a given - the given client message. - tags: - - Msg - /ibc.core.client.v1.Msg/UpdateClientParams: - post: - summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams. - operationId: IbcCoreClientV1Msg_UpdateClientParams - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain + associated with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. + + The constructed key from the Path and the key will be + append(Path.KeyPath, + + append(Path.KeyPrefix, key...)) + description: >- + Counterparty defines the counterparty chain associated with a + connection end. + delay_period: type: string - details: + format: uint64 + counterparty_versions: type: array items: type: object properties: - '@type': + identifier: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} + title: unique version identifier + features: + type: array + items: + type: string + title: >- + list of features compatible with the specified + identifier description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an + Version defines the versioning scheme used to negotiate the + IBC verison in - additional field `@type` which contains the type URL. - Example: + the connection handshake. + proof_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + RevisionNumber the same. However some consensus algorithms may + choose to - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + reset the height in certain conditions e.g. hard forks, + state-machine - If the embedded message type is well-known and has a custom - JSON + breaking changes In these cases, the RevisionNumber is + incremented so that - representation, that representation will be embedded adding - a field + height continues to be monitonically increasing even as the + RevisionHeight - `value` which holds the custom JSON in addition to the - `@type` + gets reset + title: >- + Height is a monotonically increasing data type - field. Example (for message [google.protobuf.Duration][]): + that can be compared against another Height for the purposes + of updating and - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgUpdateParams defines the sdk.Msg type to update the client - parameters. - in: body - required: true - schema: - type: object - properties: - signer: + freezing clients + proof_init: type: string - title: signer address - params: - description: |- - params defines the client parameters to update. + format: byte + title: >- + proof of the initialization the connection on Chain A: + `UNITIALIZED -> - NOTE: All parameters must be supplied. + INIT` + proof_client: + type: string + format: byte + title: proof of client state included in message + proof_consensus: + type: string + format: byte + title: proof of client consensus state + consensus_height: type: object properties: - allowed_clients: - type: array - items: - type: string - description: >- - allowed_clients defines the list of allowed client state - types which can be created + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - and interacted with. If a client type is removed from the - allowed clients list, usage + RevisionNumber the same. However some consensus algorithms may + choose to - of this client will be disabled until it is added again to - the list. + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes + of updating and + + freezing clients + signer: + type: string + host_consensus_state_proof: + type: string + format: byte + title: >- + optional proof data for host state machines that are unable to + introspect their own consensus state description: >- - MsgUpdateParams defines the sdk.Msg type to update the client - parameters. + MsgConnectionOpenTry defines a msg sent by a Relayer to try to + open a + + connection on Chain B. tags: - Msg - /ibc.core.client.v1.Msg/UpgradeClient: + /ibc.core.connection.v1.Msg/UpdateConnectionParams: post: - summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient. - operationId: IbcCoreClientV1Msg_UpgradeClient + summary: |- + UpdateConnectionParams defines a rpc handler method for + MsgUpdateParams. + operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpgradeClientResponse defines the Msg/UpgradeClient response - type. + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. default: description: An unexpected error response. schema: @@ -12762,2661 +23654,3952 @@ paths: "lastName": } - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - client_id: - type: string - title: client unique identifier - client_state: - title: upgraded client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + If the embedded message type is well-known and has a custom + JSON - Example 4: Pack and unpack a message in Go + representation, that representation will be embedded adding + a field - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + `value` which holds the custom JSON in addition to the + `@type` - The pack methods provided by protobuf library will by default - use + field. Example (for message [google.protobuf.Duration][]): - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: >- + MsgUpdateParams defines the sdk.Msg type to update the connection + parameters. + in: body + required: true + schema: + type: object + properties: + signer: + type: string + title: signer address + params: + description: |- + params defines the connection parameters to update. - methods only use the fully qualified type name after the last - '/' + NOTE: All parameters must be supplied. + type: object + properties: + max_expected_time_per_block: + type: string + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to + enforce block delay. This parameter should reflect the - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + largest amount of time that the chain might reasonably + take to produce the next block under normal operating - name "y.z". + conditions. A safe choice is 3-5x the expected time per + block. + description: >- + MsgUpdateParams defines the sdk.Msg type to update the connection + parameters. + tags: + - Msg +definitions: + cosmos.auth.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/auth parameters to update. + NOTE: All parameters must be supplied. + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - JSON + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - ==== + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.Params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: Params defines the parameters for the auth module. + google.protobuf.Any: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - The JSON representation of an `Any` value uses the regular + protocol buffer message. This string must contain at least - representation of the deserialized, embedded message, with an + one "/" character. The last segment of the URL's path must represent - additional field `@type` which contains the type URL. Example: + the fully qualified name of the type (as in - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + `path/google.protobuf.Duration`). The name should be in a canonical + form - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + (e.g., leading "." is not accepted). - If the embedded message type is well-known and has a custom - JSON - representation, that representation will be embedded adding a - field + In practice, teams usually precompile into the binary all types that + they - `value` which holds the custom JSON in addition to the `@type` + expect it to use in the context of Any. However, for URLs which use + the - field. Example (for message [google.protobuf.Duration][]): + scheme `http`, `https`, or no scheme, one can optionally set up a type - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - consensus_state: - title: >- - upgraded consensus state, only contains enough information to - serve as a + server that maps type URLs to message definitions as follows: - basis of trust in update logic - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - protocol buffer message. This string must contain at least + * If no scheme is provided, `https` is assumed. - one "/" character. The last segment of the URL's path must - represent + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - the fully qualified name of the type (as in + Note: this functionality is not currently available in the official - `path/google.protobuf.Duration`). The name should be in a - canonical form + protobuf release, and it is not used for type URLs beginning with - (e.g., leading "." is not accepted). + type.googleapis.com. As of May 2023, there are no widely used type + server + implementations and no plans to implement one. - In practice, teams usually precompile into the binary all - types that they - expect it to use in the context of Any. However, for URLs - which use the + Schemes other than `http`, `https` (or the empty scheme) might be - scheme `http`, `https`, or no scheme, one can optionally - set up a type + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along with + a - server that maps type URLs to message definitions as - follows: + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. + Protobuf library provides support to pack/unpack Any values in the form - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + of utility functions or additional generated methods of the Any type. - Note: this functionality is not currently available in the - official - protobuf release, and it is not used for type URLs - beginning with + Example 1: Pack and unpack a message in C++. - type.googleapis.com. As of May 2023, there are no widely - used type server + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - implementations and no plans to implement one. + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Schemes other than `http`, `https` (or the empty scheme) - might be + Example 4: Pack and unpack a message in Go - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - URL that describes the type of the serialized message. + The pack methods provided by protobuf library will by default use + 'type.googleapis.com/full.type.name' as the type URL and the unpack - Protobuf library provides support to pack/unpack Any values in - the form + methods only use the fully qualified type name after the last '/' - of utility functions or additional generated methods of the - Any type. + in the type URL, for example "foo.bar.com/x/y.z" will yield type + name "y.z". - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + JSON - Example 2: Pack and unpack a message in Java. + ==== - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + The JSON representation of an `Any` value uses the regular - Example 3: Pack and unpack a message in Python. + representation of the deserialized, embedded message, with an - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + additional field `@type` which contains the type URL. Example: - Example 4: Pack and unpack a message in Go + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - The pack methods provided by protobuf library will by default - use + If the embedded message type is well-known and has a custom JSON - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + representation, that representation will be embedded adding a field - methods only use the fully qualified type name after the last - '/' + `value` which holds the custom JSON in addition to the `@type` - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + field. Example (for message [google.protobuf.Duration][]): - name "y.z". + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + google.rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - JSON + one "/" character. The last segment of the URL's path must + represent - ==== + the fully qualified name of the type (as in - The JSON representation of an `Any` value uses the regular + `path/google.protobuf.Duration`). The name should be in a + canonical form - representation of the deserialized, embedded message, with an + (e.g., leading "." is not accepted). - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + In practice, teams usually precompile into the binary all types + that they - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + expect it to use in the context of Any. However, for URLs which + use the - If the embedded message type is well-known and has a custom - JSON + scheme `http`, `https`, or no scheme, one can optionally set up + a type - representation, that representation will be embedded adding a - field + server that maps type URLs to message definitions as follows: - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + * If no scheme is provided, `https` is assumed. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof_upgrade_client: - type: string - format: byte - title: proof that old chain committed to new client - proof_upgrade_consensus_state: - type: string - format: byte - title: proof that old chain committed to new consensus state - signer: - type: string - title: signer address - title: >- - MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a - new client + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - state - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenAck: - post: - summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck - response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + Note: this functionality is not currently available in the + official - protocol buffer message. This string must contain at - least + protobuf release, and it is not used for type URLs beginning + with - one "/" character. The last segment of the URL's path - must represent + type.googleapis.com. As of May 2023, there are no widely used + type server - the fully qualified name of the type (as in + implementations and no plans to implement one. - `path/google.protobuf.Duration`). The name should be in - a canonical form - (e.g., leading "." is not accepted). + Schemes other than `http`, `https` (or the empty scheme) might + be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a - In practice, teams usually precompile into the binary - all types that they + URL that describes the type of the serialized message. - expect it to use in the context of Any. However, for - URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + Protobuf library provides support to pack/unpack Any values in the + form - server that maps type URLs to message definitions as - follows: + of utility functions or additional generated methods of the Any + type. - * If no scheme is provided, `https` is assumed. + Example 1: Pack and unpack a message in C++. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Note: this functionality is not currently available in - the official + Example 2: Pack and unpack a message in Java. - protobuf release, and it is not used for type URLs - beginning with + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - type.googleapis.com. As of May 2023, there are no widely - used type server + Example 3: Pack and unpack a message in Python. - implementations and no plans to implement one. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - Schemes other than `http`, `https` (or the empty scheme) - might be + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + The pack methods provided by protobuf library will by default use - URL that describes the type of the serialized message. + 'type.googleapis.com/full.type.name' as the type URL and the unpack + methods only use the fully qualified type name after the last '/' - Protobuf library provides support to pack/unpack Any values - in the form + in the type URL, for example "foo.bar.com/x/y.z" will yield type - of utility functions or additional generated methods of the - Any type. + name "y.z". - Example 1: Pack and unpack a message in C++. + JSON - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + ==== - Example 2: Pack and unpack a message in Java. + The JSON representation of an `Any` value uses the regular - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + representation of the deserialized, embedded message, with an - Example 3: Pack and unpack a message in Python. + additional field `@type` which contains the type URL. Example: - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - Example 4: Pack and unpack a message in Go + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + If the embedded message type is well-known and has a custom JSON - The pack methods provided by protobuf library will by - default use + representation, that representation will be embedded adding a field - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + `value` which holds the custom JSON in addition to the `@type` - methods only use the fully qualified type name after the - last '/' + field. Example (for message [google.protobuf.Duration][]): - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + cosmos.authz.v1beta1.Grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - name "y.z". + protocol buffer message. This string must contain at least + one "/" character. The last segment of the URL's path must + represent - JSON + the fully qualified name of the type (as in - ==== + `path/google.protobuf.Duration`). The name should be in a + canonical form - The JSON representation of an `Any` value uses the regular + (e.g., leading "." is not accepted). - representation of the deserialized, embedded message, with - an - additional field `@type` which contains the type URL. - Example: + In practice, teams usually precompile into the binary all types + that they - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + expect it to use in the context of Any. However, for URLs which + use the - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + scheme `http`, `https`, or no scheme, one can optionally set up a + type - If the embedded message type is well-known and has a custom - JSON + server that maps type URLs to message definitions as follows: - representation, that representation will be embedded adding - a field - `value` which holds the custom JSON in addition to the - `@type` + * If no scheme is provided, `https` is assumed. - field. Example (for message [google.protobuf.Duration][]): + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: |- - MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge the change of connection state to TRYOPEN on Chain B. - in: body - required: true - schema: - type: object - properties: - connection_id: - type: string - counterparty_connection_id: - type: string - version: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: list of features compatible with the specified identifier - description: >- - Version defines the versioning scheme used to negotiate the - IBC verison in + Note: this functionality is not currently available in the + official - the connection handshake. - client_state: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + protobuf release, and it is not used for type URLs beginning with - protocol buffer message. This string must contain at least + type.googleapis.com. As of May 2023, there are no widely used type + server - one "/" character. The last segment of the URL's path must - represent + implementations and no plans to implement one. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + Schemes other than `http`, `https` (or the empty scheme) might be - (e.g., leading "." is not accepted). + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + URL that describes the type of the serialized message. - In practice, teams usually precompile into the binary all - types that they - expect it to use in the context of Any. However, for URLs - which use the + Protobuf library provides support to pack/unpack Any values in the + form - scheme `http`, `https`, or no scheme, one can optionally - set up a type + of utility functions or additional generated methods of the Any type. - server that maps type URLs to message definitions as - follows: + Example 1: Pack and unpack a message in C++. - * If no scheme is provided, `https` is assumed. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Example 2: Pack and unpack a message in Java. - Note: this functionality is not currently available in the - official + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - protobuf release, and it is not used for type URLs - beginning with + Example 3: Pack and unpack a message in Python. - type.googleapis.com. As of May 2023, there are no widely - used type server + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - implementations and no plans to implement one. + Example 4: Pack and unpack a message in Go + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Schemes other than `http`, `https` (or the empty scheme) - might be + The pack methods provided by protobuf library will by default use - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + 'type.googleapis.com/full.type.name' as the type URL and the unpack - URL that describes the type of the serialized message. + methods only use the fully qualified type name after the last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield type - Protobuf library provides support to pack/unpack Any values in - the form + name "y.z". - of utility functions or additional generated methods of the - Any type. + JSON - Example 1: Pack and unpack a message in C++. + ==== - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + The JSON representation of an `Any` value uses the regular - Example 2: Pack and unpack a message in Java. + representation of the deserialized, embedded message, with an - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + additional field `@type` which contains the type URL. Example: - Example 3: Pack and unpack a message in Python. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Example 4: Pack and unpack a message in Go + If the embedded message type is well-known and has a custom JSON - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + representation, that representation will be embedded adding a field - The pack methods provided by protobuf library will by default - use + `value` which holds the custom JSON in addition to the `@type` - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + field. Example (for message [google.protobuf.Duration][]): - methods only use the fully qualified type name after the last - '/' + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, then the + grant - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + doesn't have a time expiration (other conditions in `authorization` - name "y.z". + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + cosmos.authz.v1beta1.MsgExec: + type: object + properties: + grantee: + type: string + msgs: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - JSON + one "/" character. The last segment of the URL's path must + represent - ==== + the fully qualified name of the type (as in - The JSON representation of an `Any` value uses the regular + `path/google.protobuf.Duration`). The name should be in a + canonical form - representation of the deserialized, embedded message, with an + (e.g., leading "." is not accepted). - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + In practice, teams usually precompile into the binary all types + that they - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + expect it to use in the context of Any. However, for URLs which + use the - If the embedded message type is well-known and has a custom - JSON + scheme `http`, `https`, or no scheme, one can optionally set up + a type - representation, that representation will be embedded adding a - field + server that maps type URLs to message definitions as follows: - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + * If no scheme is provided, `https` is assumed. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - RevisionNumber the same. However some consensus algorithms may - choose to + Note: this functionality is not currently available in the + official - reset the height in certain conditions e.g. hard forks, - state-machine + protobuf release, and it is not used for type URLs beginning + with - breaking changes In these cases, the RevisionNumber is - incremented so that + type.googleapis.com. As of May 2023, there are no widely used + type server - height continues to be monitonically increasing even as the - RevisionHeight + implementations and no plans to implement one. - gets reset - title: >- - Height is a monotonically increasing data type - that can be compared against another Height for the purposes - of updating and + Schemes other than `http`, `https` (or the empty scheme) might + be - freezing clients - proof_try: - type: string - format: byte - title: >- - proof of the initialization the connection on Chain B: - `UNITIALIZED -> + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a - TRYOPEN` - proof_client: - type: string - format: byte - title: proof of client state included in message - proof_consensus: - type: string - format: byte - title: proof of client consensus state - consensus_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + URL that describes the type of the serialized message. - RevisionNumber the same. However some consensus algorithms may - choose to - reset the height in certain conditions e.g. hard forks, - state-machine + Protobuf library provides support to pack/unpack Any values in the + form - breaking changes In these cases, the RevisionNumber is - incremented so that + of utility functions or additional generated methods of the Any + type. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset - title: >- - Height is a monotonically increasing data type + Example 1: Pack and unpack a message in C++. - that can be compared against another Height for the purposes - of updating and + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - freezing clients - signer: - type: string - host_consensus_state_proof: - type: string - format: byte - title: >- - optional proof data for host state machines that are unable to - introspect their own consensus state - description: |- - MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge the change of connection state to TRYOPEN on Chain B. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenConfirm: - post: - summary: |- - ConnectionOpenConfirm defines a rpc handler method for - MsgConnectionOpenConfirm. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenConfirmResponse defines the - Msg/ConnectionOpenConfirm + Example 2: Pack and unpack a message in Java. - response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - protocol buffer message. This string must contain at - least + Example 3: Pack and unpack a message in Python. - one "/" character. The last segment of the URL's path - must represent + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - the fully qualified name of the type (as in + Example 4: Pack and unpack a message in Go - `path/google.protobuf.Duration`). The name should be in - a canonical form + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - (e.g., leading "." is not accepted). + The pack methods provided by protobuf library will by default use + 'type.googleapis.com/full.type.name' as the type URL and the unpack - In practice, teams usually precompile into the binary - all types that they + methods only use the fully qualified type name after the last '/' - expect it to use in the context of Any. However, for - URLs which use the + in the type URL, for example "foo.bar.com/x/y.z" will yield type - scheme `http`, `https`, or no scheme, one can optionally - set up a type + name "y.z". - server that maps type URLs to message definitions as - follows: + JSON - * If no scheme is provided, `https` is assumed. + ==== - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + The JSON representation of an `Any` value uses the regular - Note: this functionality is not currently available in - the official + representation of the deserialized, embedded message, with an - protobuf release, and it is not used for type URLs - beginning with + additional field `@type` which contains the type URL. Example: - type.googleapis.com. As of May 2023, there are no widely - used type server + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - implementations and no plans to implement one. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + If the embedded message type is well-known and has a custom JSON - Schemes other than `http`, `https` (or the empty scheme) - might be + representation, that representation will be embedded adding a field - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + `value` which holds the custom JSON in addition to the `@type` - URL that describes the type of the serialized message. + field. Example (for message [google.protobuf.Duration][]): + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + Execute Msg. - Protobuf library provides support to pack/unpack Any values - in the form + The x/authz will try to find a grant matching (msg.signers[0], + grantee, MsgTypeURL(msg)) - of utility functions or additional generated methods of the - Any type. + triple and validate it. + description: |- + MsgExec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + cosmos.authz.v1beta1.MsgExecResponse: + type: object + properties: + results: + type: array + items: + type: string + format: byte + description: MsgExecResponse defines the Msg/MsgExecResponse response type. + cosmos.authz.v1beta1.MsgGrant: + type: object + properties: + granter: + type: string + grantee: + type: string + grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - Example 1: Pack and unpack a message in C++. + one "/" character. The last segment of the URL's path must + represent - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + the fully qualified name of the type (as in - Example 2: Pack and unpack a message in Java. + `path/google.protobuf.Duration`). The name should be in a + canonical form - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + (e.g., leading "." is not accepted). - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + In practice, teams usually precompile into the binary all + types that they - Example 4: Pack and unpack a message in Go + expect it to use in the context of Any. However, for URLs + which use the - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + scheme `http`, `https`, or no scheme, one can optionally set + up a type - The pack methods provided by protobuf library will by - default use + server that maps type URLs to message definitions as follows: - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - methods only use the fully qualified type name after the - last '/' + * If no scheme is provided, `https` is assumed. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - name "y.z". + Note: this functionality is not currently available in the + official + protobuf release, and it is not used for type URLs beginning + with - JSON + type.googleapis.com. As of May 2023, there are no widely used + type server - ==== + implementations and no plans to implement one. - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + Schemes other than `http`, `https` (or the empty scheme) might + be - additional field `@type` which contains the type URL. - Example: + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + URL that describes the type of the serialized message. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + Protobuf library provides support to pack/unpack Any values in the + form - representation, that representation will be embedded adding - a field + of utility functions or additional generated methods of the Any + type. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + Example 1: Pack and unpack a message in C++. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B - to + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - acknowledge the change of connection state to OPEN on Chain A. - in: body - required: true - schema: - type: object - properties: - connection_id: - type: string - proof_ack: - type: string - format: byte - title: >- - proof for the change of the connection state on Chain A: `INIT - -> OPEN` - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + Example 2: Pack and unpack a message in Java. - RevisionNumber the same. However some consensus algorithms may - choose to + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - reset the height in certain conditions e.g. hard forks, - state-machine + Example 3: Pack and unpack a message in Python. - breaking changes In these cases, the RevisionNumber is - incremented so that + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - height continues to be monitonically increasing even as the - RevisionHeight + Example 4: Pack and unpack a message in Go - gets reset - title: >- - Height is a monotonically increasing data type + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - that can be compared against another Height for the purposes - of updating and + The pack methods provided by protobuf library will by default use - freezing clients - signer: - type: string - description: >- - MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain - B to + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - acknowledge the change of connection state to OPEN on Chain A. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenInit: - post: - summary: >- - ConnectionOpenInit defines a rpc handler method for - MsgConnectionOpenInit. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit - response + methods only use the fully qualified type name after the last '/' - type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + in the type URL, for example "foo.bar.com/x/y.z" will yield type - protocol buffer message. This string must contain at - least + name "y.z". - one "/" character. The last segment of the URL's path - must represent - the fully qualified name of the type (as in + JSON - `path/google.protobuf.Duration`). The name should be in - a canonical form + ==== - (e.g., leading "." is not accepted). + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - In practice, teams usually precompile into the binary - all types that they + additional field `@type` which contains the type URL. Example: - expect it to use in the context of Any. However, for - URLs which use the + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - scheme `http`, `https`, or no scheme, one can optionally - set up a type + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - server that maps type URLs to message definitions as - follows: + If the embedded message type is well-known and has a custom JSON + representation, that representation will be embedded adding a + field - * If no scheme is provided, `https` is assumed. + `value` which holds the custom JSON in addition to the `@type` - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + field. Example (for message [google.protobuf.Duration][]): - Note: this functionality is not currently available in - the official + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, then + the grant - protobuf release, and it is not used for type URLs - beginning with + doesn't have a time expiration (other conditions in + `authorization` - type.googleapis.com. As of May 2023, there are no widely - used type server + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + description: >- + MsgGrant is a request type for Grant method. It declares authorization to + the grantee - implementations and no plans to implement one. + on behalf of the granter with the provided expiration time. + cosmos.authz.v1beta1.MsgGrantResponse: + type: object + description: MsgGrantResponse defines the Msg/MsgGrant response type. + cosmos.authz.v1beta1.MsgRevoke: + type: object + properties: + granter: + type: string + grantee: + type: string + msg_type_url: + type: string + description: |- + MsgRevoke revokes any authorization with the provided sdk.Msg type on the + granter's account with that has been granted to the grantee. + cosmos.authz.v1beta1.MsgRevokeResponse: + type: object + description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. + cosmos.bank.v1beta1.Input: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Input models transaction input. + cosmos.bank.v1beta1.MsgMultiSend: + type: object + properties: + inputs: + type: array + items: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + NOTE: The amount field is an Int which implements the custom + method - URL that describes the type of the serialized message. + signatures required by gogoproto. + description: Input models transaction input. + description: >- + Inputs, despite being `repeated`, only allows one sender input. This + is + checked in MsgMultiSend's ValidateBasic. + outputs: + type: array + items: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - Protobuf library provides support to pack/unpack Any values - in the form - of utility functions or additional generated methods of the - Any type. + NOTE: The amount field is an Int which implements the custom + method + signatures required by gogoproto. + description: Output models transaction outputs. + description: MsgMultiSend represents an arbitrary multi-in, multi-out send message. + cosmos.bank.v1beta1.MsgMultiSendResponse: + type: object + description: MsgMultiSendResponse defines the Msg/MultiSend response type. + cosmos.bank.v1beta1.MsgSend: + type: object + properties: + from_address: + type: string + to_address: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - Example 1: Pack and unpack a message in C++. + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: MsgSend represents a message to send coins from one account to another. + cosmos.bank.v1beta1.MsgSendResponse: + type: object + description: MsgSendResponse defines the Msg/Send response type. + cosmos.bank.v1beta1.MsgSetSendEnabled: + type: object + properties: + authority: + type: string + description: authority is the address that controls the module. + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + sendable). + description: send_enabled is the list of entries to add or update. + use_default_for: + type: array + items: + type: string + description: >- + use_default_for is a list of denoms that should use the + params.default_send_enabled value. - Example 2: Pack and unpack a message in Java. + Denoms listed here will have their SendEnabled entries deleted. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + If a denom is included that doesn't have a SendEnabled entry, - Example 3: Pack and unpack a message in Python. + it will be ignored. + description: |- + MsgSetSendEnabled is the Msg/SetSendEnabled request type. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Only entries to add/update/delete need to be included. + Existing SendEnabled entries that are not included in this + message are left unchanged. - Example 4: Pack and unpack a message in Go + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgSetSendEnabledResponse: + type: object + description: |- + MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/bank parameters to update. - The pack methods provided by protobuf library will by - default use + NOTE: All parameters must be supplied. + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. - methods only use the fully qualified type name after the - last '/' + For genesis, use the newly added send_enabled field in the genesis + object. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + Storage, lookup, and manipulation of this information is now in + the keeper. - name "y.z". + As of cosmos-sdk 0.47, this only exists for backwards + compatibility of genesis files. + default_send_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - JSON + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - ==== + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.Output: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - The JSON representation of an `Any` value uses the regular + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Output models transaction outputs. + cosmos.bank.v1beta1.Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - representation of the deserialized, embedded message, with - an + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. - additional field `@type` which contains the type URL. - Example: + For genesis, use the newly added send_enabled field in the genesis + object. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Storage, lookup, and manipulation of this information is now in the + keeper. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + As of cosmos-sdk 0.47, this only exists for backwards compatibility of + genesis files. + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + cosmos.bank.v1beta1.SendEnabled: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: |- + SendEnabled maps coin denom to a send_enabled status (whether a denom is + sendable). + cosmos.base.v1beta1.Coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - representation, that representation will be embedded adding - a field + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + cosmos.base.node.v1beta1.ConfigResponse: + type: object + properties: + minimum_gas_price: + type: string + pruning_keep_recent: + type: string + pruning_interval: + type: string + halt_height: + type: string + format: uint64 + description: ConfigResponse defines the response structure for the Config gRPC query. + cosmos.base.node.v1beta1.StatusResponse: + type: object + properties: + earliest_store_height: + type: string + format: uint64 + title: earliest block height available in the store + height: + type: string + format: uint64 + title: current block height + timestamp: + type: string + format: date-time + title: block height timestamp + app_hash: + type: string + format: byte + title: app hash of the current block + validator_hash: + type: string + format: byte + title: validator hash provided by the consensus header + description: StateResponse defines the response structure for the status of a node. + cosmos.consensus.v1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + block: + description: |- + params defines the x/consensus parameters to update. + VersionsParams is not included in this Msg because it is tracked + separarately in x/upgrade. - `value` which holds the custom JSON in addition to the - `@type` + NOTE: All parameters must be supplied. + type: object + properties: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgConnectionOpenInit defines the msg sent by an account on Chain A - to + The basic formula for calculating this is: MaxAgeDuration / + {average block + + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. - initialize a connection with Chain B. - in: body - required: true - schema: - type: object - properties: - client_id: - type: string - counterparty: - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated - with a given - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty chain - associated with a + It should correspond with an app's "unbonding period" or other + similar - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. + mechanism for handling [Nothing-At-Stake - The constructed key from the Path and the key will be - append(Path.KeyPath, + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a - connection end. - version: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: list of features compatible with the specified identifier - description: >- - Version defines the versioning scheme used to negotiate the - IBC verison in + and should fall comfortably under the max block bytes. - the connection handshake. - delay_period: - type: string - format: uint64 - signer: - type: string + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + abci: + title: 'Since: cosmos-sdk 0.50' + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 description: >- - MsgConnectionOpenInit defines the msg sent by an account on Chain - A to + vote_extensions_enable_height configures the first height during + which - initialize a connection with Chain B. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenTry: - post: - summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry - response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + vote extensions will be enabled. During this specified height, and + for all - protocol buffer message. This string must contain at - least + subsequent heights, precommit messages that do not contain valid + extension data - one "/" character. The last segment of the URL's path - must represent + will be considered invalid. Prior to this height, vote extensions + will not - the fully qualified name of the type (as in + be used or accepted by validators on the network. - `path/google.protobuf.Duration`). The name should be in - a canonical form - (e.g., leading "." is not accepted). + Once enabled, vote extensions will be created by the application + in ExtendVote, + passed to the application for validation in VerifyVoteExtension + and given - In practice, teams usually precompile into the binary - all types that they + to the application to use when proposing a block during + PrepareProposal. + description: >- + ABCIParams configure functionality specific to the Application + Blockchain Interface. + description: MsgUpdateParams is the Msg/UpdateParams request type. + cosmos.consensus.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + tendermint.types.ABCIParams: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + vote_extensions_enable_height configures the first height during which - expect it to use in the context of Any. However, for - URLs which use the + vote extensions will be enabled. During this specified height, and for + all - scheme `http`, `https`, or no scheme, one can optionally - set up a type + subsequent heights, precommit messages that do not contain valid + extension data - server that maps type URLs to message definitions as - follows: + will be considered invalid. Prior to this height, vote extensions will + not + be used or accepted by validators on the network. - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Once enabled, vote extensions will be created by the application in + ExtendVote, - Note: this functionality is not currently available in - the official + passed to the application for validation in VerifyVoteExtension and + given - protobuf release, and it is not used for type URLs - beginning with + to the application to use when proposing a block during + PrepareProposal. + description: >- + ABCIParams configure functionality specific to the Application Blockchain + Interface. + tendermint.types.BlockParams: + type: object + properties: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + tendermint.types.EvidenceParams: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. - type.googleapis.com. As of May 2023, there are no widely - used type server - implementations and no plans to implement one. + The basic formula for calculating this is: MaxAgeDuration / {average + block + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + It should correspond with an app's "unbonding period" or other similar - URL that describes the type of the serialized message. + mechanism for handling [Nothing-At-Stake + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. - Protobuf library provides support to pack/unpack Any values - in the form + and should fall comfortably under the max block bytes. - of utility functions or additional generated methods of the - Any type. + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + tendermint.types.ValidatorParams: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + cosmos.crisis.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + constant_fee: + description: constant_fee defines the x/crisis parameter. + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + Since: cosmos-sdk 0.47 + cosmos.crisis.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - Example 1: Pack and unpack a message in C++. + Since: cosmos-sdk 0.47 + cosmos.crisis.v1beta1.MsgVerifyInvariant: + type: object + properties: + sender: + type: string + description: >- + sender is the account address of private key to send coins to fee + collector account. + invariant_module_name: + type: string + description: name of the invariant module. + invariant_route: + type: string + description: invariant_route is the msg's invariant route. + description: MsgVerifyInvariant represents a message to verify a particular invariance. + cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: + type: object + description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. + cosmos.distribution.v1beta1.MsgCommunityPoolSpend: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + recipient: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: >- + MsgCommunityPoolSpend defines a message for sending tokens from the + community - Example 2: Pack and unpack a message in Java. + pool to another account. This message is typically executed via a + governance - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + proposal with the governance module being the executing authority. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse: + type: object + description: |- + MsgCommunityPoolSpendResponse defines the response to executing a + MsgCommunityPoolSpend message. - Example 4: Pack and unpack a message in Go + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool: + type: object + properties: + depositor: + type: string + validator_address: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: |- + DepositValidatorRewardsPool defines the request structure to provide + additional rewards to delegators from a specific validator. - The pack methods provided by protobuf library will by - default use + Since: cosmos-sdk 0.50 + cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse: + type: object + description: |- + MsgDepositValidatorRewardsPoolResponse defines the response to executing a + MsgDepositValidatorRewardsPool message. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Since: cosmos-sdk 0.50 + cosmos.distribution.v1beta1.MsgFundCommunityPool: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - methods only use the fully qualified type name after the - last '/' + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + depositor: + type: string + description: |- + MsgFundCommunityPool allows an account to directly + fund the community pool. + cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: + type: object + description: >- + MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response + type. + cosmos.distribution.v1beta1.MsgSetWithdrawAddress: + type: object + properties: + delegator_address: + type: string + withdraw_address: + type: string + description: |- + MsgSetWithdrawAddress sets the withdraw address for + a delegator (or validator self-delegation). + cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: + type: object + description: |- + MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response + type. + cosmos.distribution.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/distribution parameters to update. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + NOTE: All parameters must be supplied. + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + description: >- + Deprecated: The base_proposer_reward field is deprecated and is no + longer used - name "y.z". + in the x/distribution module's reward mechanism. + bonus_proposer_reward: + type: string + description: >- + Deprecated: The bonus_proposer_reward field is deprecated and is + no longer used + in the x/distribution module's reward mechanism. + withdraw_addr_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - JSON + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - ==== + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + description: |- + MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + from a single validator. + cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - The JSON representation of an `Any` value uses the regular + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: 'Since: cosmos-sdk 0.46' + description: |- + MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward + response type. + cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission: + type: object + properties: + validator_address: + type: string + description: >- + MsgWithdrawValidatorCommission withdraws the full commission to the + validator - representation of the deserialized, embedded message, with - an + address. + cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - additional field `@type` which contains the type URL. - Example: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: 'Since: cosmos-sdk 0.46' + description: |- + MsgWithdrawValidatorCommissionResponse defines the + Msg/WithdrawValidatorCommission response type. + cosmos.distribution.v1beta1.Params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + description: >- + Deprecated: The base_proposer_reward field is deprecated and is no + longer used - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + in the x/distribution module's reward mechanism. + bonus_proposer_reward: + type: string + description: >- + Deprecated: The bonus_proposer_reward field is deprecated and is no + longer used - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + in the x/distribution module's reward mechanism. + withdraw_addr_enabled: + type: boolean + description: Params defines the set of params for the distribution module. + cosmos.evidence.v1beta1.MsgSubmitEvidence: + type: object + properties: + submitter: + type: string + description: submitter is the signer account address of evidence. + evidence: + description: evidence defines the evidence of misbehavior. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - If the embedded message type is well-known and has a custom - JSON + protocol buffer message. This string must contain at least - representation, that representation will be embedded adding - a field + one "/" character. The last segment of the URL's path must + represent - `value` which holds the custom JSON in addition to the - `@type` + the fully qualified name of the type (as in - field. Example (for message [google.protobuf.Duration][]): + `path/google.protobuf.Duration`). The name should be in a + canonical form - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgConnectionOpenTry defines a msg sent by a Relayer to try to open - a + (e.g., leading "." is not accepted). - connection on Chain B. - in: body - required: true - schema: - type: object - properties: - client_id: - type: string - previous_connection_id: - type: string - description: >- - Deprecated: this field is unused. Crossing hellos are no - longer supported in core IBC. - client_state: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - protocol buffer message. This string must contain at least + In practice, teams usually precompile into the binary all types + that they - one "/" character. The last segment of the URL's path must - represent + expect it to use in the context of Any. However, for URLs which + use the - the fully qualified name of the type (as in + scheme `http`, `https`, or no scheme, one can optionally set up a + type - `path/google.protobuf.Duration`). The name should be in a - canonical form + server that maps type URLs to message definitions as follows: - (e.g., leading "." is not accepted). + * If no scheme is provided, `https` is assumed. - In practice, teams usually precompile into the binary all - types that they + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - expect it to use in the context of Any. However, for URLs - which use the + Note: this functionality is not currently available in the + official - scheme `http`, `https`, or no scheme, one can optionally - set up a type + protobuf release, and it is not used for type URLs beginning with - server that maps type URLs to message definitions as - follows: + type.googleapis.com. As of May 2023, there are no widely used type + server + implementations and no plans to implement one. - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Schemes other than `http`, `https` (or the empty scheme) might be - Note: this functionality is not currently available in the - official + used with implementation specific semantics. + additionalProperties: {} + description: |- + MsgSubmitEvidence represents a message that supports submitting arbitrary + Evidence of misbehavior such as equivocation or counterfactual signing. + cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: + type: object + properties: + hash: + type: string + format: byte + description: hash defines the hash of the evidence. + description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. + cosmos.feegrant.v1beta1.MsgGrantAllowance: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protobuf release, and it is not used for type URLs - beginning with + protocol buffer message. This string must contain at least - type.googleapis.com. As of May 2023, there are no widely - used type server + one "/" character. The last segment of the URL's path must + represent - implementations and no plans to implement one. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in a + canonical form - Schemes other than `http`, `https` (or the empty scheme) - might be + (e.g., leading "." is not accepted). - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - URL that describes the type of the serialized message. + In practice, teams usually precompile into the binary all types + that they + expect it to use in the context of Any. However, for URLs which + use the - Protobuf library provides support to pack/unpack Any values in - the form + scheme `http`, `https`, or no scheme, one can optionally set up a + type - of utility functions or additional generated methods of the - Any type. + server that maps type URLs to message definitions as follows: - Example 1: Pack and unpack a message in C++. + * If no scheme is provided, `https` is assumed. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Example 2: Pack and unpack a message in Java. + Note: this functionality is not currently available in the + official - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + protobuf release, and it is not used for type URLs beginning with - Example 3: Pack and unpack a message in Python. + type.googleapis.com. As of May 2023, there are no widely used type + server - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + implementations and no plans to implement one. - Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Schemes other than `http`, `https` (or the empty scheme) might be - The pack methods provided by protobuf library will by default - use + used with implementation specific semantics. + additionalProperties: {} + description: |- + MsgGrantAllowance adds permission for Grantee to spend up to Allowance + of fees from the account of Granter. + cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: + type: object + description: >- + MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response + type. + cosmos.feegrant.v1beta1.MsgPruneAllowances: + type: object + properties: + pruner: + type: string + description: pruner is the address of the user pruning expired allowances. + description: |- + MsgPruneAllowances prunes expired fee allowances. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Since cosmos-sdk 0.50 + cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse: + type: object + description: >- + MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse + response type. - methods only use the fully qualified type name after the last - '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + Since cosmos-sdk 0.50 + cosmos.feegrant.v1beta1.MsgRevokeAllowance: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. + cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: + type: object + description: >- + MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse + response type. + cosmos.base.query.v1beta1.PageRequest: + type: object + properties: + key: + type: string + format: byte + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + offset: + type: string + format: uint64 + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + limit: + type: string + format: uint64 + description: >- + limit is the total number of results to be returned in the result + page. - name "y.z". + If left empty it will default to a value to be set by each app. + count_total: + type: boolean + description: >- + count_total is set to true to indicate that the result set should + include + a count of the total number of items available for pagination in UIs. - JSON + count_total is only respected when offset is used. It is ignored when + key - ==== + is set. + reverse: + type: boolean + description: >- + reverse is set to true if results are to be returned in the descending + order. - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + Since: cosmos-sdk 0.43 + description: |- + message SomeRequest { + Foo some_parameter = 1; + PageRequest pagination = 2; + } + title: |- + PageRequest is to be embedded in gRPC request messages for efficient + pagination. Ex: + cosmos.base.query.v1beta1.PageResponse: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: |- + total is total number of results available if PageRequest.count_total + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. - additional field `@type` which contains the type URL. Example: + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + cosmos.gov.v1.Deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: |- + Deposit defines an amount deposited by an account address to an active + proposal. + cosmos.gov.v1.DepositParams: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - If the embedded message type is well-known and has a custom - JSON + months. + description: DepositParams defines the params for deposits on governance proposals. + cosmos.gov.v1.Params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - representation, that representation will be embedded adding a - field + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - `value` which holds the custom JSON in addition to the `@type` + months. + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.5. + veto_threshold: + type: string + description: |- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value that must + be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the depositors + when a proposal is cancelled. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - counterparty: - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated - with a given + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * deposit) + proposal deposits. - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty chain - associated with a + If empty, the (proposal_cancel_ratio * deposit) proposal deposits will + be burned. - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - The constructed key from the Path and the key will be - append(Path.KeyPath, + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a - connection end. - delay_period: - type: string - format: uint64 - counterparty_versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: >- - list of features compatible with the specified - identifier - description: >- - Version defines the versioning scheme used to negotiate the - IBC verison in + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.67. - the connection handshake. - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - RevisionNumber the same. However some consensus algorithms may - choose to + Since: cosmos-sdk 0.50 + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - reset the height in certain conditions e.g. hard forks, - state-machine + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value minimum + that must be met when making a deposit. - breaking changes In these cases, the RevisionNumber is - incremented so that + Default value: 0.01. Meaning that for a chain with a min_deposit of + 100stake, a deposit of 1stake would be - height continues to be monitonically increasing even as the - RevisionHeight + required. - gets reset - title: >- - Height is a monotonically increasing data type - that can be compared against another Height for the purposes - of updating and + Since: cosmos-sdk 0.50 + max_tally_period: + type: string + description: Duration of the voting period. + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + description: |- + Params defines the parameters for the x/gov module. - freezing clients - proof_init: - type: string - format: byte - title: >- - proof of the initialization the connection on Chain A: - `UNITIALIZED -> + Since: cosmos-sdk 0.47 + cosmos.gov.v1.Proposal: + type: object + properties: + id: + type: string + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - INIT` - proof_client: - type: string - format: byte - title: proof of client state included in message - proof_consensus: - type: string - format: byte - title: proof of client consensus state - consensus_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + protocol buffer message. This string must contain at least - RevisionNumber the same. However some consensus algorithms may - choose to + one "/" character. The last segment of the URL's path must + represent - reset the height in certain conditions e.g. hard forks, - state-machine + the fully qualified name of the type (as in - breaking changes In these cases, the RevisionNumber is - incremented so that + `path/google.protobuf.Duration`). The name should be in a + canonical form - height continues to be monitonically increasing even as the - RevisionHeight + (e.g., leading "." is not accepted). - gets reset - title: >- - Height is a monotonically increasing data type - that can be compared against another Height for the purposes - of updating and + In practice, teams usually precompile into the binary all types + that they - freezing clients - signer: - type: string - host_consensus_state_proof: - type: string - format: byte - title: >- - optional proof data for host state machines that are unable to - introspect their own consensus state - description: >- - MsgConnectionOpenTry defines a msg sent by a Relayer to try to - open a + expect it to use in the context of Any. However, for URLs which + use the - connection on Chain B. - tags: - - Msg - /ibc.core.connection.v1.Msg/UpdateConnectionParams: - post: - summary: |- - UpdateConnectionParams defines a rpc handler method for - MsgUpdateParams. - operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: - protocol buffer message. This string must contain at - least - one "/" character. The last segment of the URL's path - must represent + * If no scheme is provided, `https` is assumed. - the fully qualified name of the type (as in + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - `path/google.protobuf.Duration`). The name should be in - a canonical form + Note: this functionality is not currently available in the + official - (e.g., leading "." is not accepted). + protobuf release, and it is not used for type URLs beginning + with + type.googleapis.com. As of May 2023, there are no widely used + type server - In practice, teams usually precompile into the binary - all types that they + implementations and no plans to implement one. - expect it to use in the context of Any. However, for - URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + Schemes other than `http`, `https` (or the empty scheme) might + be - server that maps type URLs to message definitions as - follows: + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Protobuf library provides support to pack/unpack Any values in the + form - Note: this functionality is not currently available in - the official + of utility functions or additional generated methods of the Any + type. - protobuf release, and it is not used for type URLs - beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server + Example 1: Pack and unpack a message in C++. - implementations and no plans to implement one. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - Schemes other than `http`, `https` (or the empty scheme) - might be + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Example 3: Pack and unpack a message in Python. - URL that describes the type of the serialized message. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - Protobuf library provides support to pack/unpack Any values - in the form + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - of utility functions or additional generated methods of the - Any type. + The pack methods provided by protobuf library will by default use + 'type.googleapis.com/full.type.name' as the type URL and the unpack - Example 1: Pack and unpack a message in C++. + methods only use the fully qualified type name after the last '/' - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + in the type URL, for example "foo.bar.com/x/y.z" will yield type - Example 2: Pack and unpack a message in Java. + name "y.z". - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - Example 3: Pack and unpack a message in Python. + JSON - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + ==== - Example 4: Pack and unpack a message in Go + The JSON representation of an `Any` value uses the regular - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + representation of the deserialized, embedded message, with an - The pack methods provided by protobuf library will by - default use + additional field `@type` which contains the type URL. Example: - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - methods only use the fully qualified type name after the - last '/' + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the proposal + passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: |- + final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + encrypted_count: + type: string + description: encrypted_count is the number of encrypted votes on a proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + title: |- + metadata is any arbitrary metadata attached to the proposal. + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: proposer is the address of the proposal sumbitter + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited + failed_reason: + type: string + description: 'Since: cosmos-sdk 0.50' + title: failed_reason defines the reason why the proposal failed + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes during the + tally phase + description: Proposal defines the core field members of a governance proposal. + cosmos.gov.v1.ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + - PROPOSAL_STATUS_TALLY_PERIOD: PROPOSAL_STATUS_TALLY_PERIOD defines a proposal status during the tally + period. + cosmos.gov.v1.QueryConstitutionResponse: + type: object + properties: + constitution: + type: string + title: >- + QueryConstitutionResponse is the response type for the Query/Constitution + RPC method + cosmos.gov.v1.QueryDepositResponse: + type: object + properties: + deposit: + description: deposit defines the requested deposit. + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - name "y.z". + NOTE: The amount field is an Int which implements the custom + method + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + QueryDepositResponse is the response type for the Query/Deposit RPC + method. + cosmos.gov.v1.QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - JSON - ==== + NOTE: The amount field is an Int which implements the custom + method - The JSON representation of an `Any` value uses the regular + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + Deposit defines an amount deposited by an account address to an + active - representation of the deserialized, embedded message, with - an + proposal. + description: deposits defines the requested deposits. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - additional field `@type` which contains the type URL. - Example: + was set, its value is undefined otherwise + description: >- + QueryDepositsResponse is the response type for the Query/Deposits RPC + method. + cosmos.gov.v1.QueryParamsResponse: + type: object + properties: + voting_params: + description: |- + Deprecated: Prefer to use `params` instead. + voting_params defines the parameters related to voting. + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + deposit_params: + description: |- + Deprecated: Prefer to use `params` instead. + deposit_params defines the parameters related to deposit. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + NOTE: The amount field is an Int which implements the custom + method - If the embedded message type is well-known and has a custom - JSON + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - representation, that representation will be embedded adding - a field + months. + tally_params: + description: |- + Deprecated: Prefer to use `params` instead. + tally_params defines the parameters related to tally. + type: object + properties: + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a result to + be - `value` which holds the custom JSON in addition to the - `@type` + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be - field. Example (for message [google.protobuf.Duration][]): + vetoed. Default value: 1/3. + params: + description: |- + params defines all the paramaters of x/gov module. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgUpdateParams defines the sdk.Msg type to update the connection - parameters. - in: body - required: true - schema: - type: object - properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the connection parameters to update. + Since: cosmos-sdk 0.47 + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - NOTE: All parameters must be supplied. - type: object - properties: - max_expected_time_per_block: - type: string - format: uint64 - description: >- - maximum expected time per block (in nanoseconds), used to - enforce block delay. This parameter should reflect the - largest amount of time that the chain might reasonably - take to produce the next block under normal operating + NOTE: The amount field is an Int which implements the custom + method - conditions. A safe choice is 3-5x the expected time per - block. + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string description: >- - MsgUpdateParams defines the sdk.Msg type to update the connection - parameters. - tags: - - Msg -definitions: - cosmos.auth.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/auth parameters to update. + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - NOTE: All parameters must be supplied. - type: object - properties: - max_memo_characters: + months. + voting_period: type: string - format: uint64 - tx_sig_limit: + description: Duration of the voting period. + quorum: type: string - format: uint64 - tx_size_cost_per_byte: + description: >- + Minimum percentage of total stake needed to vote for a result to + be + considered valid. + threshold: type: string - format: uint64 - sig_verify_cost_ed25519: + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: type: string - format: uint64 - sig_verify_cost_secp256k1: + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: type: string - format: uint64 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + The ratio representing the proportion of the deposit value that + must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the depositors + when a proposal is cancelled. - Since: cosmos-sdk 0.47 - cosmos.auth.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - Since: cosmos-sdk 0.47 - cosmos.auth.v1beta1.Params: - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: Params defines the parameters for the auth module. - google.protobuf.Any: + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * deposit) + proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal deposits + will be burned. + + + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. + + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.67. + + + Since: cosmos-sdk 0.50 + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value minimum + that must be met when making a deposit. + + Default value: 0.01. Meaning that for a chain with a min_deposit + of 100stake, a deposit of 1stake would be + + required. + + + Since: cosmos-sdk 0.50 + max_tally_period: + type: string + description: Duration of the voting period. + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.gov.v1.QueryProposalResponse: type: object properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + proposal: + description: proposal is the requested governance proposal. + type: object + properties: + id: + type: string + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must represent + one "/" character. The last segment of the URL's path must + represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a canonical - form + `path/google.protobuf.Duration`). The name should be in a + canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all types that - they + In practice, teams usually precompile into the binary all + types that they - expect it to use in the context of Any. However, for URLs which use - the + expect it to use in the context of Any. However, for URLs + which use the - scheme `http`, `https`, or no scheme, one can optionally set up a type + scheme `http`, `https`, or no scheme, one can optionally set + up a type - server that maps type URLs to message definitions as follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the official + Note: this functionality is not currently available in the + official - protobuf release, and it is not used for type URLs beginning with + protobuf release, and it is not used for type URLs beginning + with - type.googleapis.com. As of May 2023, there are no widely used type - server + type.googleapis.com. As of May 2023, there are no widely + used type server - implementations and no plans to implement one. + implementations and no plans to implement one. - Schemes other than `http`, `https` (or the empty scheme) might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along with - a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in the form + Protobuf library provides support to pack/unpack Any values in + the form - of utility functions or additional generated methods of the Any type. + of utility functions or additional generated methods of the Any + type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 3: Pack and unpack a message in Python. + Example 4: Pack and unpack a message in Go - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Example 4: Pack and unpack a message in Go + The pack methods provided by protobuf library will by default + use - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - The pack methods provided by protobuf library will by default use + methods only use the fully qualified type name after the last + '/' - 'type.googleapis.com/full.type.name' as the type URL and the unpack + in the type URL, for example "foo.bar.com/x/y.z" will yield type - methods only use the fully qualified type name after the last '/' + name "y.z". - in the type URL, for example "foo.bar.com/x/y.z" will yield type - name "y.z". + JSON + ==== - JSON + The JSON representation of an `Any` value uses the regular - ==== + representation of the deserialized, embedded message, with an - The JSON representation of an `Any` value uses the regular + additional field `@type` which contains the type URL. Example: - representation of the deserialized, embedded message, with an + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - additional field `@type` which contains the type URL. Example: + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + If the embedded message type is well-known and has a custom JSON - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + representation, that representation will be embedded adding a + field - If the embedded message type is well-known and has a custom JSON + `value` which holds the custom JSON in addition to the `@type` - representation, that representation will be embedded adding a field + field. Example (for message [google.protobuf.Duration][]): - `value` which holds the custom JSON in addition to the `@type` + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the proposal + passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. When - field. Example (for message [google.protobuf.Duration][]): + querying a proposal via gRPC, this field is not populated until + the - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - google.rpc.Status: + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + encrypted_count: + type: string + description: >- + encrypted_count is the number of encrypted votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + title: |- + metadata is any arbitrary metadata attached to the proposal. + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: proposer is the address of the proposal sumbitter + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited + failed_reason: + type: string + description: 'Since: cosmos-sdk 0.50' + title: failed_reason defines the reason why the proposal failed + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes during + the tally phase + description: >- + QueryProposalResponse is the response type for the Query/Proposal RPC + method. + cosmos.gov.v1.QueryProposalsResponse: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: + proposals: type: array items: type: object properties: - '@type': + id: type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - protocol buffer message. This string must contain at least + Note: this functionality is not currently available in the + official - one "/" character. The last segment of the URL's path must - represent + protobuf release, and it is not used for type URLs + beginning with - the fully qualified name of the type (as in + type.googleapis.com. As of May 2023, there are no widely + used type server - `path/google.protobuf.Duration`). The name should be in a - canonical form + implementations and no plans to implement one. - (e.g., leading "." is not accepted). + Schemes other than `http`, `https` (or the empty scheme) + might be - In practice, teams usually precompile into the binary all types - that they + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - expect it to use in the context of Any. However, for URLs which - use the + URL that describes the type of the serialized message. - scheme `http`, `https`, or no scheme, one can optionally set up - a type - server that maps type URLs to message definitions as follows: + Protobuf library provides support to pack/unpack Any values in + the form + of utility functions or additional generated methods of the + Any type. - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Example 1: Pack and unpack a message in C++. - Note: this functionality is not currently available in the - official + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - protobuf release, and it is not used for type URLs beginning - with + Example 2: Pack and unpack a message in Java. - type.googleapis.com. As of May 2023, there are no widely used - type server + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - implementations and no plans to implement one. + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Schemes other than `http`, `https` (or the empty scheme) might - be + Example 4: Pack and unpack a message in Go - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - URL that describes the type of the serialized message. + The pack methods provided by protobuf library will by default + use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Protobuf library provides support to pack/unpack Any values in the - form + methods only use the fully qualified type name after the last + '/' - of utility functions or additional generated methods of the Any - type. + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + name "y.z". - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + JSON - Example 2: Pack and unpack a message in Java. + ==== - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + The JSON representation of an `Any` value uses the regular - Example 3: Pack and unpack a message in Python. + representation of the deserialized, embedded message, with an - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + additional field `@type` which contains the type URL. Example: - Example 4: Pack and unpack a message in Go + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - The pack methods provided by protobuf library will by default use + If the embedded message type is well-known and has a custom + JSON - 'type.googleapis.com/full.type.name' as the type URL and the unpack + representation, that representation will be embedded adding a + field - methods only use the fully qualified type name after the last '/' + `value` which holds the custom JSON in addition to the `@type` - in the type URL, for example "foo.bar.com/x/y.z" will yield type + field. Example (for message [google.protobuf.Duration][]): - name "y.z". + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the + proposal passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. + When + querying a proposal via gRPC, this field is not populated until + the - JSON + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + encrypted_count: + type: string + description: >- + encrypted_count is the number of encrypted votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - ==== - The JSON representation of an `Any` value uses the regular + NOTE: The amount field is an Int which implements the custom + method - representation of the deserialized, embedded message, with an + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + title: |- + metadata is any arbitrary metadata attached to the proposal. + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: proposer is the address of the proposal sumbitter + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited + failed_reason: + type: string + description: 'Since: cosmos-sdk 0.50' + title: failed_reason defines the reason why the proposal failed + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes + during the tally phase + description: Proposal defines the core field members of a governance proposal. + description: proposals defines all the requested governance proposals. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - additional field `@type` which contains the type URL. Example: + was set, its value is undefined otherwise + description: |- + QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + cosmos.gov.v1.QueryTallyResultResponse: + type: object + properties: + tally: + description: tally defines the requested tally. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + encrypted_count: + type: string + description: encrypted_count is the number of encrypted votes on a proposal. + description: >- + QueryTallyResultResponse is the response type for the Query/Tally RPC + method. + cosmos.gov.v1.QueryVoteResponse: + type: object + properties: + vote: + description: vote defines the queried vote. + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options is the weighted vote options. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the vote. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 + encrypted_vote_data: + type: string + description: QueryVoteResponse is the response type for the Query/Vote RPC method. + cosmos.gov.v1.QueryVotesResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options is the weighted vote options. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the vote. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 + encrypted_vote_data: + type: string + description: |- + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + description: votes defines the queried votes. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - If the embedded message type is well-known and has a custom JSON + was set, its value is undefined otherwise + description: QueryVotesResponse is the response type for the Query/Votes RPC method. + cosmos.gov.v1.TallyParams: + type: object + properties: + quorum: + type: string + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.5. + veto_threshold: + type: string + description: |- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + description: TallyParams defines the params for tallying votes on governance proposals. + cosmos.gov.v1.TallyResult: + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: no_with_veto_count is the number of no with veto votes on a proposal. + encrypted_count: + type: string + description: encrypted_count is the number of encrypted votes on a proposal. + description: TallyResult defines a standard tally for a governance proposal. + cosmos.gov.v1.TrustedCounterParty: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + cosmos.gov.v1.Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options is the weighted vote options. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the vote. - representation, that representation will be embedded adding a field + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 + encrypted_vote_data: + type: string + description: |- + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + cosmos.gov.v1.VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + - VOTE_OPTION_ENCRYPTED: VOTE_OPTION_ENCRYPTED defines an encrypted vote + cosmos.gov.v1.VotingParams: + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + description: VotingParams defines the params for voting on governance proposals. + cosmos.gov.v1.WeightedVoteOption: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain duplicate + vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + cosmos.gov.v1.MsgCancelProposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + proposer: + type: string + description: proposer is the account address of the proposer. + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. - `value` which holds the custom JSON in addition to the `@type` + Since: cosmos-sdk 0.50 + cosmos.gov.v1.MsgCancelProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + canceled_time: + type: string + format: date-time + description: canceled_time is the time when proposal is canceled. + canceled_height: + type: string + format: uint64 + description: >- + canceled_height defines the block height at which the proposal is + canceled. + description: |- + MsgCancelProposalResponse defines the response structure for executing a + MsgCancelProposal message. - field. Example (for message [google.protobuf.Duration][]): + Since: cosmos-sdk 0.50 + cosmos.gov.v1.MsgDeposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - cosmos.authz.v1beta1.Grant: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: MsgDeposit defines a message to submit a deposit to an existing proposal. + cosmos.gov.v1.MsgDepositResponse: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + cosmos.gov.v1.MsgExecLegacyContent: type: object properties: - authorization: + content: + description: content is the proposal's content. type: object properties: '@type': @@ -15453,151 +27636,45 @@ definitions: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Note: this functionality is not currently available in the + official - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + protobuf release, and it is not used for type URLs beginning with - If the embedded message type is well-known and has a custom JSON + type.googleapis.com. As of May 2023, there are no widely used type + server - representation, that representation will be embedded adding a field + implementations and no plans to implement one. - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + Schemes other than `http`, `https` (or the empty scheme) might be - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: + used with implementation specific semantics. + additionalProperties: {} + authority: type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If null, then the - grant - - doesn't have a time expiration (other conditions in `authorization` + description: authority must be the gov module address. + description: >- + MsgExecLegacyContent is used to wrap the legacy content field into a + message. - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - cosmos.authz.v1beta1.MsgExec: + This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + cosmos.gov.v1.MsgExecLegacyContentResponse: + type: object + description: >- + MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response + type. + cosmos.gov.v1.MsgSubmitProposal: type: object properties: - grantee: - type: string - msgs: + messages: type: array items: type: object @@ -15726,287 +27803,47 @@ definitions: methods only use the fully qualified type name after the last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - Execute Msg. - - The x/authz will try to find a grant matching (msg.signers[0], - grantee, MsgTypeURL(msg)) - - triple and validate it. - description: |- - MsgExec attempts to execute the provided messages using - authorizations granted to the grantee. Each message should have only - one signer corresponding to the granter of the authorization. - cosmos.authz.v1beta1.MsgExecResponse: - type: object - properties: - results: - type: array - items: - type: string - format: byte - description: MsgExecResponse defines the Msg/MsgExecResponse response type. - cosmos.authz.v1beta1.MsgGrant: - type: object - properties: - granter: - type: string - grantee: - type: string - grant: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) might - be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - JSON + in the type URL, for example "foo.bar.com/x/y.z" will yield type - ==== + name "y.z". - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + JSON - additional field `@type` which contains the type URL. Example: + ==== - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + The JSON representation of an `Any` value uses the regular - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + representation of the deserialized, embedded message, with an - If the embedded message type is well-known and has a custom JSON + additional field `@type` which contains the type URL. Example: - representation, that representation will be embedded adding a - field + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - `value` which holds the custom JSON in addition to the `@type` + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - field. Example (for message [google.protobuf.Duration][]): + If the embedded message type is well-known and has a custom JSON - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If null, then - the grant + representation, that representation will be embedded adding a field - doesn't have a time expiration (other conditions in - `authorization` + `value` which holds the custom JSON in addition to the `@type` - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: >- - MsgGrant is a request type for Grant method. It declares authorization to - the grantee + field. Example (for message [google.protobuf.Duration][]): - on behalf of the granter with the provided expiration time. - cosmos.authz.v1beta1.MsgGrantResponse: - type: object - description: MsgGrantResponse defines the Msg/MsgGrant response type. - cosmos.authz.v1beta1.MsgRevoke: - type: object - properties: - granter: - type: string - grantee: - type: string - msg_type_url: - type: string - description: |- - MsgRevoke revokes any authorization with the provided sdk.Msg type on the - granter's account with that has been granted to the grantee. - cosmos.authz.v1beta1.MsgRevokeResponse: - type: object - description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. - cosmos.bank.v1beta1.Input: - type: object - properties: - address: - type: string - coins: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: messages are the arbitrary messages to be executed if proposal passes. + initial_deposit: type: array items: type: object @@ -16020,202 +27857,308 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - description: Input models transaction input. - cosmos.bank.v1beta1.MsgMultiSend: - type: object - properties: - inputs: - type: array - items: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - description: Input models transaction input. description: >- - Inputs, despite being `repeated`, only allows one sender input. This - is - - checked in MsgMultiSend's ValidateBasic. - outputs: - type: array - items: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - + initial_deposit is the deposit value that must be paid at proposal + submission. + proposer: + type: string + description: proposer is the account address of the proposer. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: |- + title is the title of the proposal. - NOTE: The amount field is an Int which implements the custom - method + Since: cosmos-sdk 0.47 + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is the summary of the proposal + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited or not + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary - signatures required by gogoproto. - description: Output models transaction outputs. - description: MsgMultiSend represents an arbitrary multi-in, multi-out send message. - cosmos.bank.v1beta1.MsgMultiSendResponse: - type: object - description: MsgMultiSendResponse defines the Msg/MultiSend response type. - cosmos.bank.v1beta1.MsgSend: + proposal Content. + cosmos.gov.v1.MsgSubmitProposalResponse: type: object properties: - from_address: - type: string - to_address: + proposal_id: type: string - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: MsgSend represents a message to send coins from one account to another. - cosmos.bank.v1beta1.MsgSendResponse: - type: object - description: MsgSendResponse defines the Msg/Send response type. - cosmos.bank.v1beta1.MsgSetSendEnabled: + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.gov.v1.MsgUpdateParams: type: object properties: authority: type: string - description: authority is the address that controls the module. - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - description: send_enabled is the list of entries to add or update. - use_default_for: - type: array - items: - type: string description: >- - use_default_for is a list of denoms that should use the - params.default_send_enabled value. + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/gov parameters to update. - Denoms listed here will have their SendEnabled entries deleted. + NOTE: All parameters must be supplied. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - If a denom is included that doesn't have a SendEnabled entry, - it will be ignored. - description: |- - MsgSetSendEnabled is the Msg/SetSendEnabled request type. + NOTE: The amount field is an Int which implements the custom + method - Only entries to add/update/delete need to be included. - Existing SendEnabled entries that are not included in this - message are left unchanged. + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.MsgSetSendEnabledResponse: - type: object - description: |- - MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. + months. + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a result to + be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value that + must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the depositors + when a proposal is cancelled. + + + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * deposit) + proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal deposits + will be burned. + + + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/bank parameters to update. + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.67. - NOTE: All parameters must be supplied. - type: object - properties: - send_enabled: + + Since: cosmos-sdk 0.50 + expedited_min_deposit: type: array items: type: object properties: denom: type: string - enabled: - type: boolean + amount: + type: string description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is + Coin defines a token with a denomination and an amount. - sendable). + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string description: >- - Deprecated: Use of SendEnabled in params is deprecated. + The ratio representing the proportion of the deposit value minimum + that must be met when making a deposit. - For genesis, use the newly added send_enabled field in the genesis - object. + Default value: 0.01. Meaning that for a chain with a min_deposit + of 100stake, a deposit of 1stake would be - Storage, lookup, and manipulation of this information is now in - the keeper. + required. - As of cosmos-sdk 0.47, this only exists for backwards - compatibility of genesis files. - default_send_enabled: + Since: cosmos-sdk 0.50 + max_tally_period: + type: string + description: Duration of the voting period. + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: type: boolean description: |- MsgUpdateParams is the Msg/UpdateParams request type. Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.MsgUpdateParamsResponse: + cosmos.gov.v1.MsgUpdateParamsResponse: type: object description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.Output: + cosmos.gov.v1.MsgVote: type: object properties: - address: + proposal_id: type: string - coins: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVote defines a message to cast a vote. + cosmos.gov.v1.MsgVoteEncrypted: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + encrypted_data: + type: string + description: encrypted_data defines the encrypted vote option. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + cosmos.gov.v1.MsgVoteEncryptedResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1.MsgVoteResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1.MsgVoteWeighted: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options defines the weighted vote options. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the VoteWeighted. + description: MsgVoteWeighted defines a message to cast a vote. + cosmos.gov.v1.MsgVoteWeightedResponse: + type: object + description: MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + cosmos.gov.v1beta1.Deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: type: array items: type: object @@ -16229,690 +28172,1080 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - description: Output models transaction outputs. - cosmos.bank.v1beta1.Params: + description: amount to be deposited by depositor. + description: |- + Deposit defines an amount deposited by an account address to an active + proposal. + cosmos.gov.v1beta1.DepositParams: type: object properties: - send_enabled: + min_deposit: type: array items: type: object properties: denom: type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - sendable). + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string description: >- - Deprecated: Use of SendEnabled in params is deprecated. + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - For genesis, use the newly added send_enabled field in the genesis - object. - - Storage, lookup, and manipulation of this information is now in the - keeper. - - - As of cosmos-sdk 0.47, this only exists for backwards compatibility of - genesis files. - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - cosmos.bank.v1beta1.SendEnabled: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: |- - SendEnabled maps coin denom to a send_enabled status (whether a denom is - sendable). - cosmos.base.v1beta1.Coin: + months. + description: DepositParams defines the params for deposits on governance proposals. + cosmos.gov.v1beta1.Proposal: type: object properties: - denom: + proposal_id: type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - cosmos.base.node.v1beta1.ConfigResponse: - type: object - properties: - minimum_gas_price: - type: string - pruning_keep_recent: + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. As of May 2023, there are no widely used type + server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. type: string - pruning_interval: + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: |- + final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + submit_time: type: string - halt_height: + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: type: string - format: uint64 - description: ConfigResponse defines the response structure for the Config gRPC query. - cosmos.base.node.v1beta1.StatusResponse: - type: object - properties: - earliest_store_height: + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: type: string - format: uint64 - title: earliest block height available in the store - height: + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: type: string - format: uint64 - title: current block height - timestamp: + format: date-time + description: voting_end_time is the end time of voting on a proposal. + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: type: string - format: date-time - title: block height timestamp - app_hash: + title: identity and pubkey are used to submit encrypted votes + pubkey: type: string - format: byte - title: app hash of the current block - validator_hash: + aggr_keyshare: type: string - format: byte - title: validator hash provided by the consensus header - description: StateResponse defines the response structure for the status of a node. - cosmos.consensus.v1.MsgUpdateParams: + title: >- + aggregated keyshare is used to decrypt the encrypted votes during the + tally phase + description: Proposal defines the core field members of a governance proposal. + cosmos.gov.v1beta1.ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + cosmos.gov.v1beta1.QueryDepositResponse: type: object properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - block: - description: |- - params defines the x/consensus parameters to update. - VersionsParams is not included in this Msg because it is tracked - separarately in x/upgrade. - - NOTE: All parameters must be supplied. + deposit: + description: deposit defines the requested deposit. type: object properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: + proposal_id: type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - evidence: - type: object - properties: - max_age_num_blocks: + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: type: string - format: int64 - description: >- - Max age of evidence, in blocks. + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - The basic formula for calculating this is: MaxAgeDuration / - {average block + NOTE: The amount field is an Int which implements the custom + method - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + QueryDepositResponse is the response type for the Query/Deposit RPC + method. + cosmos.gov.v1beta1.QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - It should correspond with an app's "unbonding period" or other - similar + NOTE: The amount field is an Int which implements the custom + method - mechanism for handling [Nothing-At-Stake + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + Deposit defines an amount deposited by an account address to an + active - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: + proposal. + description: deposits defines the requested deposits. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: type: string - format: int64 + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. - - and should fall comfortably under the max block bytes. + total is total number of results available if + PageRequest.count_total - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - validator: + was set, its value is undefined otherwise + description: >- + QueryDepositsResponse is the response type for the Query/Deposits RPC + method. + cosmos.gov.v1beta1.QueryParamsResponse: + type: object + properties: + voting_params: + description: voting_params defines the parameters related to voting. type: object properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - abci: - title: 'Since: cosmos-sdk 0.50' + voting_period: + type: string + description: Duration of the voting period. + deposit_params: + description: deposit_params defines the parameters related to deposit. type: object properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height during - which - - vote extensions will be enabled. During this specified height, and - for all - - subsequent heights, precommit messages that do not contain valid - extension data + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - will be considered invalid. Prior to this height, vote extensions - will not - be used or accepted by validators on the network. + NOTE: The amount field is an Int which implements the custom + method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - Once enabled, vote extensions will be created by the application - in ExtendVote, + months. + tally_params: + description: tally_params defines the parameters related to tally. + type: object + properties: + quorum: + type: string + format: byte + description: >- + Minimum percentage of total stake needed to vote for a result to + be - passed to the application for validation in VerifyVoteExtension - and given + considered valid. + threshold: + type: string + format: byte + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: + type: string + format: byte + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: MsgUpdateParams is the Msg/UpdateParams request type. - cosmos.consensus.v1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - tendermint.types.ABCIParams: + vetoed. Default value: 1/3. + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.gov.v1beta1.QueryProposalResponse: type: object properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height during which - - vote extensions will be enabled. During this specified height, and for - all - - subsequent heights, precommit messages that do not contain valid - extension data - - will be considered invalid. Prior to this height, vote extensions will - not - - be used or accepted by validators on the network. + proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - Once enabled, vote extensions will be created by the application in - ExtendVote, + one "/" character. The last segment of the URL's path must + represent - passed to the application for validation in VerifyVoteExtension and - given + the fully qualified name of the type (as in - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application Blockchain - Interface. - tendermint.types.BlockParams: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - tendermint.types.EvidenceParams: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. + `path/google.protobuf.Duration`). The name should be in a + canonical form + (e.g., leading "." is not accepted). - The basic formula for calculating this is: MaxAgeDuration / {average - block - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. + In practice, teams usually precompile into the binary all + types that they + expect it to use in the context of Any. However, for URLs + which use the - It should correspond with an app's "unbonding period" or other similar + scheme `http`, `https`, or no scheme, one can optionally set + up a type - mechanism for handling [Nothing-At-Stake + server that maps type URLs to message definitions as follows: - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. - and should fall comfortably under the max block bytes. + * If no scheme is provided, `https` is assumed. - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - tendermint.types.ValidatorParams: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - cosmos.crisis.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - constant_fee: - description: constant_fee defines the x/crisis parameter. - type: object - properties: - denom: + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. As of May 2023, there are no widely used + type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. type: string - amount: + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. When + + querying a proposal via gRPC, this field is not populated until + the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on a + proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + submit_time: type: string - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - Since: cosmos-sdk 0.47 - cosmos.crisis.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - Since: cosmos-sdk 0.47 - cosmos.crisis.v1beta1.MsgVerifyInvariant: - type: object - properties: - sender: - type: string - description: >- - sender is the account address of private key to send coins to fee - collector account. - invariant_module_name: - type: string - description: name of the invariant module. - invariant_route: - type: string - description: invariant_route is the msg's invariant route. - description: MsgVerifyInvariant represents a message to verify a particular invariance. - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: - type: object - description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. - cosmos.distribution.v1beta1.MsgCommunityPoolSpend: + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: + type: string + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes during + the tally phase + description: Proposal defines the core field members of a governance proposal. + description: >- + QueryProposalResponse is the response type for the Query/Proposal RPC + method. + cosmos.gov.v1beta1.QueryProposalsResponse: type: object properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - recipient: - type: string - amount: + proposals: type: array items: type: object properties: - denom: - type: string - amount: + proposal_id: type: string - description: |- - Coin defines a token with a denomination and an amount. + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: >- - MsgCommunityPoolSpend defines a message for sending tokens from the - community + protocol buffer message. This string must contain at least - pool to another account. This message is typically executed via a - governance + one "/" character. The last segment of the URL's path must + represent - proposal with the governance module being the executing authority. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in a + canonical form - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse: - type: object - description: |- - MsgCommunityPoolSpendResponse defines the response to executing a - MsgCommunityPoolSpend message. + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool: - type: object - properties: - depositor: - type: string - validator_address: - type: string - amount: - type: array - items: - type: object - properties: - denom: + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. As of May 2023, there are no widely + used type server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. type: string - amount: + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. + When + + querying a proposal via gRPC, this field is not populated until + the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on a + proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + submit_time: type: string - description: |- - Coin defines a token with a denomination and an amount. + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: |- - DepositValidatorRewardsPool defines the request structure to provide - additional rewards to delegators from a specific validator. - Since: cosmos-sdk 0.50 - cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse: - type: object - description: |- - MsgDepositValidatorRewardsPoolResponse defines the response to executing a - MsgDepositValidatorRewardsPool message. + NOTE: The amount field is an Int which implements the custom + method - Since: cosmos-sdk 0.50 - cosmos.distribution.v1beta1.MsgFundCommunityPool: - type: object - properties: - amount: - type: array - items: - type: object - properties: - denom: + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: type: string - amount: + format: date-time + description: voting_end_time is the end time of voting on a proposal. + has_encrypted_votes: + type: boolean + title: flag to check if proposal has at least one encrypted vote + identity: type: string - description: |- - Coin defines a token with a denomination and an amount. + title: identity and pubkey are used to submit encrypted votes + pubkey: + type: string + aggr_keyshare: + type: string + title: >- + aggregated keyshare is used to decrypt the encrypted votes + during the tally phase + description: Proposal defines the core field members of a governance proposal. + description: proposals defines all the requested governance proposals. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - depositor: - type: string + was set, its value is undefined otherwise description: |- - MsgFundCommunityPool allows an account to directly - fund the community pool. - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: - type: object - description: >- - MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response - type. - cosmos.distribution.v1beta1.MsgSetWithdrawAddress: + QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + cosmos.gov.v1beta1.QueryTallyResultResponse: type: object properties: - delegator_address: - type: string - withdraw_address: - type: string - description: |- - MsgSetWithdrawAddress sets the withdraw address for - a delegator (or validator self-delegation). - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: - type: object - description: |- - MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response - type. - cosmos.distribution.v1beta1.MsgUpdateParams: + tally: + description: tally defines the requested tally. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + description: >- + QueryTallyResultResponse is the response type for the Query/Tally RPC + method. + cosmos.gov.v1beta1.QueryVoteResponse: type: object properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/distribution parameters to update. - - NOTE: All parameters must be supplied. + vote: + description: vote defines the queried vote. type: object properties: - community_tax: + proposal_id: type: string - base_proposer_reward: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: type: string + description: voter is the voter address of the proposal. + option: description: >- - Deprecated: The base_proposer_reward field is deprecated and is no - longer used + Deprecated: Prefer to use `options` instead. This field is set in + queries - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated and is - no longer used + if and only if `len(options) == 1` and that option has weight 1. + In all - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. + Since: cosmos-sdk 0.43 + description: |- + options is the weighted vote options. - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: - type: object - properties: - delegator_address: - type: string - validator_address: - type: string - description: |- - MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - from a single validator. - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: + Since: cosmos-sdk 0.43 + encrypted_vote_data: + type: string + description: QueryVoteResponse is the response type for the Query/Vote RPC method. + cosmos.gov.v1beta1.QueryVotesResponse: type: object properties: - amount: + votes: type: array items: type: object properties: - denom: + proposal_id: type: string - amount: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: type: string - description: |- - Coin defines a token with a denomination and an amount. + description: voter is the voter address of the proposal. + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is set + in queries - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: 'Since: cosmos-sdk 0.46' - description: |- - MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward - response type. - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission: - type: object - properties: - validator_address: - type: string - description: >- - MsgWithdrawValidatorCommission withdraws the full commission to the - validator + if and only if `len(options) == 1` and that option has weight 1. + In all - address. - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: - type: object - properties: - amount: - type: array - items: - type: object - properties: - denom: + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. type: string - amount: + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + description: |- + options is the weighted vote options. + + Since: cosmos-sdk 0.43 + encrypted_vote_data: type: string description: |- - Coin defines a token with a denomination and an amount. + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + description: votes defines the queried votes. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: 'Since: cosmos-sdk 0.46' - description: |- - MsgWithdrawValidatorCommissionResponse defines the - Msg/WithdrawValidatorCommission response type. - cosmos.distribution.v1beta1.Params: + was set, its value is undefined otherwise + description: QueryVotesResponse is the response type for the Query/Votes RPC method. + cosmos.gov.v1beta1.TallyParams: type: object properties: - community_tax: - type: string - base_proposer_reward: - type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - bonus_proposer_reward: + quorum: type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: Params defines the set of params for the distribution module. - cosmos.evidence.v1beta1.MsgSubmitEvidence: - type: object - properties: - submitter: + format: byte + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + threshold: type: string - description: submitter is the signer account address of evidence. - evidence: - description: evidence defines the evidence of misbehavior. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. As of May 2023, there are no widely used type - server + format: byte + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.5. + veto_threshold: + type: string + format: byte + description: |- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + description: TallyParams defines the params for tallying votes on governance proposals. + cosmos.gov.v1beta1.TallyResult: + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + encrypted: + type: string + description: encrypted is the number of encrypted votes on a proposal. + description: TallyResult defines a standard tally for a governance proposal. + cosmos.gov.v1beta1.Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is set in + queries - implementations and no plans to implement one. + if and only if `len(options) == 1` and that option has weight 1. In + all + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. - Schemes other than `http`, `https` (or the empty scheme) might be + Since: cosmos-sdk 0.43 + description: |- + options is the weighted vote options. - used with implementation specific semantics. - additionalProperties: {} + Since: cosmos-sdk 0.43 + encrypted_vote_data: + type: string description: |- - MsgSubmitEvidence represents a message that supports submitting arbitrary - Evidence of misbehavior such as equivocation or counterfactual signing. - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + cosmos.gov.v1beta1.VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + - VOTE_OPTION_ENCRYPTED: VOTE_OPTION_ENCRYPTED defines a encrypted vote + cosmos.gov.v1beta1.VotingParams: type: object properties: - hash: + voting_period: type: string - format: byte - description: hash defines the hash of the evidence. - description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. - cosmos.feegrant.v1beta1.MsgGrantAllowance: + description: Duration of the voting period. + description: VotingParams defines the params for voting on governance proposals. + cosmos.gov.v1beta1.WeightedVoteOption: type: object properties: - granter: - type: string + option: description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: + option defines the valid vote options, it must not contain duplicate + vote options. type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + cosmos.gov.v1beta1.MsgDeposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: MsgDeposit defines a message to submit a deposit to an existing proposal. + cosmos.gov.v1beta1.MsgDepositResponse: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + cosmos.gov.v1beta1.MsgSubmitProposal: + type: object + properties: + content: + description: content is the proposal's content. type: object properties: '@type': @@ -16971,51 +29304,127 @@ definitions: used with implementation specific semantics. additionalProperties: {} - description: |- - MsgGrantAllowance adds permission for Grantee to spend up to Allowance - of fees from the account of Granter. - cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: - type: object + initial_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: >- + initial_deposit is the deposit value that must be paid at proposal + submission. + proposer: + type: string + description: proposer is the account address of the proposer. description: >- - MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response - type. - cosmos.feegrant.v1beta1.MsgPruneAllowances: + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + cosmos.gov.v1beta1.MsgSubmitProposalResponse: type: object properties: - pruner: + proposal_id: type: string - description: pruner is the address of the user pruning expired allowances. - description: |- - MsgPruneAllowances prunes expired fee allowances. - - Since cosmos-sdk 0.50 - cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse: + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.gov.v1beta1.MsgVote: type: object - description: >- - MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse - response type. - - - Since cosmos-sdk 0.50 - cosmos.feegrant.v1beta1.MsgRevokeAllowance: + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + description: MsgVote defines a message to cast a vote. + cosmos.gov.v1beta1.MsgVoteEncrypted: type: object properties: - granter: + proposal_id: type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. - cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: + description: voter is the voter address for the proposal. + encrypted_data: + type: string + description: encrypted_data defines the encrypted vote option. + description: MsgVoteEncrypted defines a message to cast an encrypted vote. + cosmos.gov.v1beta1.MsgVoteEncryptedResponse: type: object - description: >- - MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse - response type. + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1beta1.MsgVoteResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1beta1.MsgVoteWeighted: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + description: options defines the weighted vote options. + description: |- + MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + cosmos.gov.v1beta1.MsgVoteWeightedResponse: + type: object + description: |- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + + Since: cosmos-sdk 0.43 cosmos.mint.v1beta1.MsgUpdateParams: type: object properties: @@ -17777,188 +30186,64 @@ definitions: min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators description: Params defines the parameters for the x/staking module. - fairyring.keyshare.EncryptedKeyShare: - type: object - properties: - data: - type: string - validator: - type: string - fairyring.keyshare.MsgCreateAuthorizedAddress: - type: object - properties: - target: - type: string - creator: - type: string - fairyring.keyshare.MsgCreateAuthorizedAddressResponse: - type: object - fairyring.keyshare.MsgCreateGeneralKeyShare: - type: object - properties: - creator: - type: string - idType: - type: string - idValue: - type: string - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedTimestamp: - type: string - format: uint64 - receivedBlockHeight: - type: string - format: uint64 - fairyring.keyshare.MsgCreateGeneralKeyShareResponse: + fairyring.pep.MsgCreateAggregatedKeyShare: type: object properties: creator: type: string - idType: - type: string - idValue: - type: string - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedBlockHeight: + height: type: string format: uint64 - success: - type: boolean - errorMessage: - type: string - fairyring.keyshare.MsgCreateLatestPubKey: - type: object - properties: - creator: - type: string - publicKey: - type: string - commitments: - type: array - items: - type: string - numberOfValidators: + data: type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string title: 'this line is used by starport scaffolding # proto/tx/message' - fairyring.keyshare.MsgCreateLatestPubKeyResponse: - type: object - fairyring.keyshare.MsgDeRegisterValidator: - type: object - properties: - creator: - type: string - fairyring.keyshare.MsgDeRegisterValidatorResponse: - type: object - properties: - creator: - type: string - fairyring.keyshare.MsgDeleteAuthorizedAddress: - type: object - properties: - target: - type: string - creator: - type: string - fairyring.keyshare.MsgDeleteAuthorizedAddressResponse: - type: object - fairyring.keyshare.MsgOverrideLatestPubKey: - type: object - properties: - creator: - type: string - publicKey: - type: string - commitments: - type: array - items: - type: string - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - fairyring.keyshare.MsgOverrideLatestPubKeyResponse: - type: object - fairyring.keyshare.MsgRegisterValidator: + fairyring.pep.MsgCreateAggregatedKeyShareResponse: type: object - properties: - creator: - type: string - fairyring.keyshare.MsgRegisterValidatorResponse: + fairyring.pep.MsgGetGeneralKeyshare: type: object properties: creator: type: string - fairyring.keyshare.MsgSendKeyshare: + req_id: + type: string + fairyring.pep.MsgGetGeneralKeyshareResponse: + type: object + fairyring.pep.MsgRequestGeneralKeyshare: type: object properties: creator: type: string - message: + estimated_delay: type: string - keyShareIndex: + req_id: type: string - format: uint64 - blockHeight: + fairyring.pep.MsgRequestGeneralKeyshareResponse: + type: object + properties: + req_id: type: string - format: uint64 - fairyring.keyshare.MsgSendKeyshareResponse: + fairyring.pep.MsgSubmitEncryptedTx: type: object properties: creator: type: string - keyshare: - type: string - keyshareIndex: - type: string - format: uint64 - blockHeight: + data: type: string - format: uint64 - receivedBlockHeight: + targetBlockHeight: type: string format: uint64 - success: - type: boolean - errorMessage: - type: string - fairyring.keyshare.MsgUpdateAuthorizedAddress: + fairyring.pep.MsgSubmitEncryptedTxResponse: + type: object + fairyring.pep.MsgSubmitGeneralEncryptedTx: type: object properties: - target: - type: string - isAuthorized: - type: boolean creator: type: string - fairyring.keyshare.MsgUpdateAuthorizedAddressResponse: - type: object - fairyring.keyshare.MsgUpdateParams: + data: + type: string + req_id: + type: string + fairyring.pep.MsgUpdateParams: type: object properties: authority: @@ -17970,132 +30255,101 @@ definitions: description: 'NOTE: All parameters must be supplied.' type: object properties: - key_expiry: - type: string - format: uint64 - minimum_bonded: - type: string - format: uint64 - max_idled_block: + keyshare_channel_id: type: string - format: uint64 + is_source_chain: + type: boolean + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string trusted_addresses: type: array items: type: string - slash_fraction_no_keyshare: - type: string - format: byte - slash_fraction_wrong_keyshare: - type: string - format: byte + min_gas_price: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. description: MsgUpdateParams is the Msg/UpdateParams request type. - fairyring.keyshare.MsgUpdateParamsResponse: + fairyring.pep.MsgUpdateParamsResponse: type: object description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. - fairyring.keyshare.Params: + fairyring.pep.Params: type: object properties: - key_expiry: - type: string - format: uint64 - minimum_bonded: - type: string - format: uint64 - max_idled_block: + keyshare_channel_id: type: string - format: uint64 + is_source_chain: + type: boolean + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string trusted_addresses: type: array items: type: string - slash_fraction_no_keyshare: - type: string - format: byte - slash_fraction_wrong_keyshare: - type: string - format: byte + min_gas_price: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. description: Params defines the parameters for the module. - cosmos.base.query.v1beta1.PageRequest: + fairyring.pep.TrustedCounterParty: type: object properties: - key: + client_id: type: string - format: byte - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - offset: + connection_id: type: string - format: uint64 - description: |- - offset is a numeric offset that can be used when key is unavailable. - It is less efficient than using key. Only one of offset or key should - be set. - limit: + channel_id: type: string - format: uint64 - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - count_total: - type: boolean - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in UIs. - - count_total is only respected when offset is used. It is ignored when - key - - is set. - reverse: - type: boolean - description: >- - reverse is set to true if results are to be returned in the descending - order. - - - Since: cosmos-sdk 0.43 - description: |- - message SomeRequest { - Foo some_parameter = 1; - PageRequest pagination = 2; - } - title: |- - PageRequest is to be embedded in gRPC request messages for efficient - pagination. Ex: - cosmos.base.query.v1beta1.PageResponse: + fairyring.common.ActivePublicKey: type: object properties: - next_key: + publicKey: type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: + creator: + type: string + expiry: type: string format: uint64 - title: |- - total is total number of results available if PageRequest.count_total - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - fairyring.keyshare.ActivePubKey: + fairyring.common.QueuedPublicKey: type: object properties: publicKey: @@ -18105,185 +30359,267 @@ definitions: expiry: type: string format: uint64 - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - fairyring.keyshare.AggregatedKeyShare: + fairyring.pep.EncryptedTx: type: object properties: - height: + targetHeight: + type: string + format: uint64 + index: type: string format: uint64 data: type: string - fairyring.keyshare.AuthorizedAddress: - type: object - properties: - target: + creator: type: string - isAuthorized: - type: boolean - authorizedBy: + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + processedAtChainHeight: type: string - fairyring.keyshare.Commitments: + format: uint64 + expired: + type: boolean + fairyring.pep.EncryptedTxArray: type: object properties: - commitments: + encryptedTx: type: array items: - type: string - fairyring.keyshare.GeneralKeyShare: + type: object + properties: + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean + fairyring.pep.GenEncTxExecutionQueue: type: object properties: - validator: - type: string - idType: - type: string - idValue: + creator: type: string - keyShare: + request_id: type: string - keyShareIndex: + identity: type: string - format: uint64 - receivedTimestamp: + pubkey: type: string - format: uint64 - receivedBlockHeight: + tx_list: + type: object + properties: + encryptedTx: + type: array + items: + type: object + properties: + identity: + type: string + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + aggr_keyshare: type: string - format: uint64 - fairyring.keyshare.KeyShare: + fairyring.pep.GeneralEncryptedTx: type: object properties: - validator: - type: string - blockHeight: - type: string - format: uint64 - keyShare: + identity: type: string - keyShareIndex: + index: type: string format: uint64 - receivedTimestamp: + data: type: string - format: uint64 - receivedBlockHeight: + creator: type: string - format: uint64 - fairyring.keyshare.QueryAllAggregatedKeyShareResponse: - type: object - properties: - aggregatedKeyShare: - type: array - items: - type: object - properties: - height: - type: string - format: uint64 - data: - type: string - pagination: + chargedGas: type: object properties: - next_key: + denom: type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: + amount: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + Coin defines a token with a denomination and an amount. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - fairyring.keyshare.QueryAllAuthorizedAddressResponse: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + fairyring.pep.GeneralEncryptedTxArray: type: object properties: - authorizedAddress: + encryptedTx: type: array items: type: object properties: - target: + identity: type: string - isAuthorized: - type: boolean - authorizedBy: + index: type: string - pagination: + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + fairyring.pep.PepNonce: + type: object + properties: + address: + type: string + nonce: + type: string + format: uint64 + fairyring.pep.QueryAllEncryptedTxFromHeightResponse: + type: object + properties: + encryptedTxArray: type: object properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + encryptedTx: + type: array + items: + type: object + properties: + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - fairyring.keyshare.QueryAllGeneralKeyShareResponse: + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean + fairyring.pep.QueryAllEncryptedTxResponse: type: object properties: - generalKeyShare: + encryptedTxArray: type: array items: type: object properties: - validator: - type: string - idType: - type: string - idValue: - type: string - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedTimestamp: - type: string - format: uint64 - receivedBlockHeight: - type: string - format: uint64 + encryptedTx: + type: array + items: + type: object + properties: + targetHeight: + type: string + format: uint64 + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + processedAtChainHeight: + type: string + format: uint64 + expired: + type: boolean pagination: type: object properties: @@ -18310,30 +30646,57 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - fairyring.keyshare.QueryAllKeyShareResponse: + fairyring.pep.QueryAllKeyshareResponse: type: object properties: - keyShare: + keyshares: type: array items: type: object properties: - validator: - type: string - blockHeight: + creator: type: string - format: uint64 - keyShare: + request_id: type: string - keyShareIndex: + identity: type: string - format: uint64 - receivedTimestamp: + pubkey: type: string - format: uint64 - receivedBlockHeight: + tx_list: + type: object + properties: + encryptedTx: + type: array + items: + type: object + properties: + identity: + type: string + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + aggr_keyshare: type: string - format: uint64 pagination: type: object properties: @@ -18360,22 +30723,19 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - fairyring.keyshare.QueryAllValidatorSetResponse: + fairyring.pep.QueryAllPepNonceResponse: type: object properties: - validatorSet: + pepNonce: type: array items: type: object properties: - index: - type: string - validator: + address: type: string - consAddr: + nonce: type: string - isActive: - type: boolean + format: uint64 pagination: type: object properties: @@ -18400,290 +30760,114 @@ definitions: message SomeResponse { repeated Bar results = 1; - PageResponse page = 2; - } - fairyring.keyshare.QueryCommitmentsResponse: - type: object - properties: - activeCommitments: - type: object - properties: - commitments: - type: array - items: - type: string - queuedCommitments: - type: object - properties: - commitments: - type: array - items: - type: string - fairyring.keyshare.QueryGetAggregatedKeyShareResponse: - type: object - properties: - aggregatedKeyShare: - type: object - properties: - height: - type: string - format: uint64 - data: - type: string - fairyring.keyshare.QueryGetAuthorizedAddressResponse: - type: object - properties: - authorizedAddress: - type: object - properties: - target: - type: string - isAuthorized: - type: boolean - authorizedBy: - type: string - fairyring.keyshare.QueryGetGeneralKeyShareResponse: - type: object - properties: - generalKeyShare: - type: object - properties: - validator: - type: string - idType: - type: string - idValue: - type: string - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedTimestamp: - type: string - format: uint64 - receivedBlockHeight: - type: string - format: uint64 - fairyring.keyshare.QueryGetKeyShareResponse: + PageResponse page = 2; + } + fairyring.pep.QueryGetEncryptedTxResponse: type: object properties: - keyShare: + encryptedTx: type: object properties: - validator: - type: string - blockHeight: - type: string - format: uint64 - keyShare: - type: string - keyShareIndex: - type: string - format: uint64 - receivedTimestamp: + targetHeight: type: string format: uint64 - receivedBlockHeight: + index: type: string format: uint64 - fairyring.keyshare.QueryGetValidatorSetResponse: - type: object - properties: - validatorSet: - type: object - properties: - index: + data: type: string - validator: + creator: type: string - consAddr: + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + processedAtChainHeight: type: string - isActive: + format: uint64 + expired: type: boolean - fairyring.keyshare.QueryParamsResponse: + fairyring.pep.QueryGetPepNonceResponse: type: object properties: - params: - description: params holds all the parameters of this module. + pepNonce: type: object properties: - key_expiry: - type: string - format: uint64 - minimum_bonded: + address: type: string - format: uint64 - max_idled_block: + nonce: type: string format: uint64 - trusted_addresses: - type: array - items: - type: string - slash_fraction_no_keyshare: - type: string - format: byte - slash_fraction_wrong_keyshare: - type: string - format: byte - description: QueryParamsResponse is response type for the Query/Params RPC method. - fairyring.keyshare.QueryPubKeyResponse: + fairyring.pep.QueryKeyshareResponse: type: object properties: - activePubKey: + keyshare: type: object properties: - publicKey: - type: string creator: type: string - expiry: - type: string - format: uint64 - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - queuedPubKey: - type: object - properties: - publicKey: + request_id: type: string - creator: + identity: type: string - expiry: + pubkey: type: string - format: uint64 - numberOfValidators: + tx_list: + type: object + properties: + encryptedTx: + type: array + items: + type: object + properties: + identity: + type: string + index: + type: string + format: uint64 + data: + type: string + creator: + type: string + chargedGas: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + aggr_keyshare: type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - fairyring.keyshare.QueryVerifiableRandomnessResponse: - type: object - properties: - randomness: - type: string - round: - type: string - format: uint64 - fairyring.keyshare.QueuedPubKey: - type: object - properties: - publicKey: - type: string - creator: - type: string - expiry: - type: string - format: uint64 - numberOfValidators: - type: string - format: uint64 - encryptedKeyShares: - type: array - items: - type: object - properties: - data: - type: string - validator: - type: string - fairyring.keyshare.ValidatorSet: - type: object - properties: - index: - type: string - validator: - type: string - consAddr: - type: string - isActive: - type: boolean - fairyring.pep.MsgCreateAggregatedKeyShare: + fairyring.pep.QueryLatestHeightResponse: type: object properties: - creator: - type: string height: type: string format: uint64 - data: - type: string - title: 'this line is used by starport scaffolding # proto/tx/message' - fairyring.pep.MsgCreateAggregatedKeyShareResponse: - type: object - fairyring.pep.MsgGetGeneralKeyshare: - type: object - properties: - creator: - type: string - req_id: - type: string - fairyring.pep.MsgGetGeneralKeyshareResponse: - type: object - fairyring.pep.MsgRequestGeneralKeyshare: - type: object - properties: - creator: - type: string - estimated_delay: - type: string - fairyring.pep.MsgRequestGeneralKeyshareResponse: - type: object - properties: - req_id: - type: string - fairyring.pep.MsgSubmitEncryptedTx: - type: object - properties: - creator: - type: string - data: - type: string - targetBlockHeight: - type: string - format: uint64 - fairyring.pep.MsgSubmitEncryptedTxResponse: - type: object - fairyring.pep.MsgSubmitGeneralEncryptedTx: - type: object - properties: - creator: - type: string - data: - type: string - req_id: - type: string - fairyring.pep.MsgUpdateParams: + fairyring.pep.QueryParamsResponse: type: object properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). params: - description: |- - params defines the module parameters to update. - - NOTE: All parameters must be supplied. + description: params holds all the parameters of this module. type: object properties: keyshare_channel_id: @@ -18720,56 +30904,30 @@ definitions: method signatures required by gogoproto. - description: MsgUpdateParams is the Msg/UpdateParams request type. - fairyring.pep.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - fairyring.pep.Params: + description: QueryParamsResponse is response type for the Query/Params RPC method. + fairyring.pep.QueryPubKeyResponse: type: object properties: - keyshare_channel_id: - type: string - is_source_chain: - type: boolean - trusted_counter_parties: - type: array - items: - type: object - properties: - client_id: - type: string - connection_id: - type: string - channel_id: - type: string - trusted_addresses: - type: array - items: - type: string - min_gas_price: + activePubKey: type: object properties: - denom: + publicKey: type: string - amount: + creator: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Params defines the parameters for the module. - fairyring.pep.TrustedCounterParty: - type: object - properties: - client_id: - type: string - connection_id: - type: string - channel_id: - type: string + expiry: + type: string + format: uint64 + queuedPubKey: + type: object + properties: + publicKey: + type: string + creator: + type: string + expiry: + type: string + format: uint64 ibc.applications.fee.v1.Fee: type: object properties: diff --git a/proto/fairyring/pep/genesis.proto b/proto/fairyring/pep/genesis.proto index 6aeefa50..3a30f119 100644 --- a/proto/fairyring/pep/genesis.proto +++ b/proto/fairyring/pep/genesis.proto @@ -9,6 +9,7 @@ import "fairyring/pep/encrypted_tx.proto"; import "fairyring/pep/pep_nonce.proto"; import "fairyring/pep/aggregated_key_share.proto"; import "fairyring/common/shared_types.proto"; +import "fairyring/pep/request_id.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; @@ -16,16 +17,16 @@ option go_package = "github.com/Fairblock/fairyring/x/pep/types"; message GenesisState { // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string port_id = 2; - repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false]; - repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false]; - + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string port_id = 2; + repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false] ; + repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false] ; + // this line is used by starport scaffolding # genesis/proto/state - repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false]; - fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; - uint64 request_count = 9; - + repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false]; + fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; + uint64 request_count = 9; + repeated RequestId requestIdList = 10 [(gogoproto.nullable) = false]; } diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index ea7dcd8d..c819865a 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package fairyring.pep; import "amino/amino.proto"; @@ -15,76 +16,73 @@ option go_package = "github.com/Fairblock/fairyring/x/pep/types"; // Query defines the gRPC querier service. service Query { + // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/fairyring/pep/params"; + } - - + // Queries a EncryptedTx by index. rpc EncryptedTx (QueryGetEncryptedTxRequest) returns (QueryGetEncryptedTxResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx/{targetHeight}/{index}"; - + } - + // Queries a list of EncryptedTx items. rpc EncryptedTxAll (QueryAllEncryptedTxRequest) returns (QueryAllEncryptedTxResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx"; - + } - + // Queries a list of EncryptedTx items. rpc EncryptedTxAllFromHeight (QueryAllEncryptedTxFromHeightRequest) returns (QueryAllEncryptedTxFromHeightResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx/{targetHeight}"; - + } - + // Queries a list of LatestHeight items. rpc LatestHeight (QueryLatestHeightRequest) returns (QueryLatestHeightResponse) { option (google.api.http).get = "/fairyring/pep/latest_height"; - + } - + // Queries a PepNonce by index. rpc PepNonce (QueryGetPepNonceRequest) returns (QueryGetPepNonceResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce/{address}"; - + } - + // Queries a list of PepNonce items. rpc PepNonceAll (QueryAllPepNonceRequest) returns (QueryAllPepNonceResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce"; - + } - + // Queries the public keys - rpc PubKey (QueryPubKeyRequest) returns (QueryPubKeyResponse) { + rpc PubKey (QueryPubKeyRequest ) returns (QueryPubKeyResponse ) { option (google.api.http).get = "/fairyring/pep/pub_key"; - + } - - rpc KeyshareReq (QueryKeyshareRequest) returns (QueryKeyshareResponse) { + rpc KeyshareReq (QueryKeyshareRequest ) returns (QueryKeyshareResponse ) { option (google.api.http).get = "/fairyring/pep/keyshare/{req_id}"; + } - rpc KeyshareReqAll (QueryAllKeyshareRequest) returns (QueryAllKeyshareResponse) { option (google.api.http).get = "/fairyring/pep/keyshare"; + } } - // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { + // params holds all the parameters of this module. - Params params = 1 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } - message QueryKeyshareRequest { string req_id = 1; } @@ -98,9 +96,8 @@ message QueryAllKeyshareRequest { } message QueryAllKeyshareResponse { - repeated GenEncTxExecutionQueue keyshares = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; - + repeated GenEncTxExecutionQueue keyshares = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetEncryptedTxRequest { @@ -118,7 +115,7 @@ message QueryAllEncryptedTxRequest { message QueryAllEncryptedTxResponse { repeated EncryptedTxArray encryptedTxArray = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryAllEncryptedTxFromHeightRequest { @@ -148,13 +145,13 @@ message QueryAllPepNonceRequest { } message QueryAllPepNonceResponse { - repeated PepNonce pepNonce = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated PepNonce pepNonce = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryPubKeyRequest {} message QueryPubKeyResponse { - fairyring.common.ActivePublicKey activePubKey = 1 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queuedPubKey = 2 [(gogoproto.nullable) = false]; -} + fairyring.common.ActivePublicKey activePubKey = 1 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queuedPubKey = 2 [(gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/fairyring/pep/request_id.proto b/proto/fairyring/pep/request_id.proto new file mode 100644 index 00000000..8dba03b5 --- /dev/null +++ b/proto/fairyring/pep/request_id.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; +package fairyring.pep; + +option go_package = "github.com/Fairblock/fairyring/x/pep/types"; + +message RequestId { + string creator = 1; + string reqId = 2; +} + diff --git a/proto/fairyring/pep/tx.proto b/proto/fairyring/pep/tx.proto index 310e4d61..c92b43c6 100644 --- a/proto/fairyring/pep/tx.proto +++ b/proto/fairyring/pep/tx.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package fairyring.pep; import "amino/amino.proto"; @@ -16,43 +17,36 @@ option go_package = "github.com/Fairblock/fairyring/x/pep/types"; // Msg defines the Msg service. service Msg { option (cosmos.msg.v1.service) = true; - + // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - - rpc SubmitEncryptedTx (MsgSubmitEncryptedTx) returns (MsgSubmitEncryptedTxResponse); + rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); + rpc SubmitEncryptedTx (MsgSubmitEncryptedTx ) returns (MsgSubmitEncryptedTxResponse); rpc SubmitGeneralEncryptedTx (MsgSubmitGeneralEncryptedTx) returns (MsgSubmitEncryptedTxResponse); - + // this line is used by starport scaffolding # proto/tx/rpc rpc CreateAggregatedKeyShare (MsgCreateAggregatedKeyShare) returns (MsgCreateAggregatedKeyShareResponse); rpc RequestGeneralKeyshare (MsgRequestGeneralKeyshare ) returns (MsgRequestGeneralKeyshareResponse ); rpc GetGeneralKeyshare (MsgGetGeneralKeyshare ) returns (MsgGetGeneralKeyshareResponse ); - } - // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "github.com/Fairblock/fairyring/x/pep/MsgUpdateParams"; - + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "github.com/Fairblock/fairyring/x/pep/MsgUpdateParams"; + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - + // params defines the module parameters to update. - // + // NOTE: All parameters must be supplied. - Params params = 2 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. message MsgUpdateParamsResponse {} - message MsgSubmitEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -62,9 +56,9 @@ message MsgSubmitEncryptedTx { message MsgSubmitGeneralEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string data = 2; - string req_id = 3; + string creator = 1; + string data = 2; + string req_id = 3; } message MsgSubmitEncryptedTxResponse {} @@ -81,18 +75,19 @@ message MsgCreateAggregatedKeyShareResponse {} message MsgRequestGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; google.protobuf.Duration estimated_delay = 2 [(gogoproto.stdduration) = true]; + string req_id = 3; } message MsgRequestGeneralKeyshareResponse { - string req_id = 1; + string req_id = 1; } message MsgGetGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string req_id = 2; + string creator = 1; + string req_id = 2; } -message MsgGetGeneralKeyshareResponse {} +message MsgGetGeneralKeyshareResponse {} \ No newline at end of file diff --git a/scripts/tests/TestChainUpgrade.sh b/scripts/tests/TestChainUpgrade.sh index 367e1ae7..4d5fa429 100755 --- a/scripts/tests/TestChainUpgrade.sh +++ b/scripts/tests/TestChainUpgrade.sh @@ -2,10 +2,10 @@ WORKING_DIR="$HOME/.chain_upgrade_test_env" GIT_FAIRYRING_REPO=https://github.com/Fairblock/fairyring.git -GO_VERSION_FROM=go1.21 +GO_VERSION_FROM=system GO_VERSION_TO=system -GIT_TAG_UPGRADE_FROM=v0.6.0 -GIT_TAG_UPGRADE_TO=update-cosmos-sdk-v0.50.6 +GIT_TAG_UPGRADE_FROM=v0.8.2 +GIT_TAG_UPGRADE_TO=custom-req-id BINARY=fairyringd BINARY_FULL_PATH=$WORKING_DIR/$GIT_TAG_UPGRADE_FROM/build/$BINARY @@ -64,17 +64,19 @@ UPGRADE_NAME="$GIT_TAG_UPGRADE_FROM-to-$GIT_TAG_UPGRADE_TO" cd "$WORKING_DIR/$GIT_TAG_UPGRADE_FROM" -$BINARY_FULL_PATH config chain-id test -$BINARY_FULL_PATH config keyring-backend test -$BINARY_FULL_PATH config broadcast-mode sync +$BINARY_FULL_PATH config set client chain-id $CHAIN_ID --home $CHAIN_HOME +$BINARY_FULL_PATH config set client keyring-backend test --home $CHAIN_HOME +$BINARY_FULL_PATH config set client broadcast-mode sync --home $CHAIN_HOME +$BINARY_FULL_PATH config set app minimum-gas-prices 0ufairy --home $CHAIN_HOME $BINARY_FULL_PATH init test --chain-id $CHAIN_ID --home $CHAIN_HOME --overwrite cat <<< $(jq '.app_state.gov.params.voting_period = "20s"' $CHAIN_HOME/config/genesis.json) > $CHAIN_HOME/config/genesis.json +cat <<< $(jq '.app_state.gov.params.expedited_voting_period = "10s"' $CHAIN_HOME/config/genesis.json) > $CHAIN_HOME/config/genesis.json $BINARY_FULL_PATH keys add validator --keyring-backend test --home $CHAIN_HOME -$BINARY_FULL_PATH add-genesis-account validator 100000000000stake --keyring-backend test --home $CHAIN_HOME -$BINARY_FULL_PATH gentx validator 1000000stake --chain-id $CHAIN_ID --keyring-backend test --home $CHAIN_HOME -$BINARY_FULL_PATH collect-gentxs --home $CHAIN_HOME +$BINARY_FULL_PATH genesis add-genesis-account validator 100000000000stake --keyring-backend test --home $CHAIN_HOME +$BINARY_FULL_PATH genesis gentx validator 1000000stake --chain-id $CHAIN_ID --keyring-backend test --home $CHAIN_HOME +$BINARY_FULL_PATH genesis collect-gentxs --home $CHAIN_HOME export DAEMON_NAME=$BINARY export DAEMON_HOME=$CHAIN_HOME diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index 7dc414f7..5713f493 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -339,13 +339,15 @@ fi echo "Second Encrypted TX succeeded with Events: $(echo $SECOND_EVENT | jq) as expected." echo "Creating new General Enc Request in pep module on chain fairyring_test_1" -RESULT=$($BINARY tx pep request-general-keyshare 30s --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-keyshare 30s testing123 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 10 echo "Query general keyshare request on chain fairyring_test_1" -IDENTITY=$($BINARY query pep list-keyshare-req --node $CHAIN1_NODE -o json | jq -r '.keyshares[0].identity') +LIST_KEYSHARE_REQ=$($BINARY query pep list-keyshare-req --node $CHAIN1_NODE -o json) +IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].identity') +REQ_ID=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].request_id') echo "Identity for keyshare request 1 is: $IDENTITY" echo "Query account pep nonce before submitting encrypted tx from pep module on chain fairyring_test_1" @@ -380,28 +382,28 @@ rm -r unsigned2.json &> /dev/null sleep 10 echo "Submit general encrypted tx to pep module on chain fairyring_test_1" -RESULT=$($BINARY tx pep submit-general-encrypted-tx $CIPHER 0 --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep submit-general-encrypted-tx $CIPHER $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT sleep 6 echo "Query Keyshare request and check for encrypted tx" -TX=$($BINARY query pep show-keyshare-req 0 --node $CHAIN1_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') +TX=$($BINARY query pep show-keyshare-req $REQ_ID --node $CHAIN1_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') if [ "$TX" != "$CIPHER" ]; then echo "Submitting general encrypted tx failed. Expected: $CIPHER, got $TX" exit 1 fi echo "Submit 2nd general encrypted tx to pep module on chain fairyring_test_1" -RESULT=$($BINARY tx pep submit-general-encrypted-tx $CIPHER2 0 --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep submit-general-encrypted-tx $CIPHER2 $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT sleep 6 echo "Request Generation of Aggr keyshare" -RESULT=$($BINARY tx pep get-general-keyshare 0 --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep get-general-keyshare $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 300000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT diff --git a/scripts/tests/priv_gov.sh b/scripts/tests/priv_gov.sh index 22d682be..7f6c475b 100755 --- a/scripts/tests/priv_gov.sh +++ b/scripts/tests/priv_gov.sh @@ -160,7 +160,6 @@ EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') while true; do echo "Submitting General Key Share" - RESULT=$($BINARY tx keyshare create-general-key-share "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VAL1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_err $RESULT diff --git a/scripts/tests/start_multiple_validators.sh b/scripts/tests/start_multiple_validators.sh index af4e3646..cf97d73c 100755 --- a/scripts/tests/start_multiple_validators.sh +++ b/scripts/tests/start_multiple_validators.sh @@ -62,18 +62,18 @@ do WALLET1_ADDR=$($BINARY keys show wallet1 --home $CHAIN_DIR/$CHAIN_ID/$i --keyring-backend test -a) WALLET2_ADDR=$($BINARY keys show wallet2 --home $CHAIN_DIR/$CHAIN_ID/$i --keyring-backend test -a) - $BINARY add-genesis-account $VAL1_ADDR 1000000000000ufairy,1000000000000stake --home $CHAIN_DIR/$CHAIN_ID/$i - $BINARY add-genesis-account $WALLET1_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/$i - $BINARY add-genesis-account $WALLET2_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/$i + $BINARY genesis add-genesis-account $VAL1_ADDR 1000000000000ufairy,1000000000000stake --home $CHAIN_DIR/$CHAIN_ID/$i + $BINARY genesis add-genesis-account $WALLET1_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/$i + $BINARY genesis dd-genesis-account $WALLET2_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/$i if [ "$i" != "1" ]; then - $BINARY add-genesis-account $VAL1_ADDR 1000000000000ufairy,1000000000000stake --home $CHAIN_DIR/$CHAIN_ID/1 - $BINARY add-genesis-account $WALLET1_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/1 - $BINARY add-genesis-account $WALLET2_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/1 + $BINARY genesis add-genesis-account $VAL1_ADDR 1000000000000ufairy,1000000000000stake --home $CHAIN_DIR/$CHAIN_ID/1 + $BINARY genesis add-genesis-account $WALLET1_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/1 + $BINARY genesis add-genesis-account $WALLET2_ADDR 1000000000000ufairy --home $CHAIN_DIR/$CHAIN_ID/1 fi echo "[$i] Creating gentx..." - $BINARY gentx val1 100000000000stake --home $CHAIN_DIR/$CHAIN_ID/$i --chain-id $CHAIN_ID --keyring-backend test + $BINARY genesis gentx val1 100000000000stake --home $CHAIN_DIR/$CHAIN_ID/$i --chain-id $CHAIN_ID --keyring-backend test done for i in $(seq 2 $TOTAL_VALIDATOR_AMOUNT) @@ -84,7 +84,7 @@ done echo "Collecting gentx..." -$BINARY collect-gentxs --home $CHAIN_DIR/$CHAIN_ID/1 &> /dev/null +$BINARY genesis collect-gentxs --home $CHAIN_DIR/$CHAIN_ID/1 &> /dev/null echo "Creating persistent peers list..." PEERS_LIST="" diff --git a/ts-client/cosmos.auth.v1beta1/api.swagger.yml b/ts-client/cosmos.auth.v1beta1/api.swagger.yml index 7449fa0f..e826f4f1 100644 --- a/ts-client/cosmos.auth.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.auth.v1beta1/api.swagger.yml @@ -3,3 +3,658 @@ info: title: HTTP API Console cosmos.auth.v1beta1 name: '' description: '' +paths: + /cosmos/auth/v1beta1/account_info/{address}: + get: + operationId: Query_AccountInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + info: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the account address string. + in: path + required: true + type: string + tags: + - Query + /cosmos/auth/v1beta1/accounts: + get: + operationId: Query_Accounts + responses: + '200': + description: A successful response. + schema: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/auth/v1beta1/accounts/{address}: + get: + operationId: Query_Account + responses: + '200': + description: A successful response. + schema: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address defines the address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/auth/v1beta1/address_by_id/{id}: + get: + operationId: Query_AccountAddressByID + responses: + '200': + description: A successful response. + schema: + type: object + properties: + account_address: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: id + description: |- + Deprecated, use account_id instead + + id is the account number of the address to be queried. This field + should have been an uint64 (like all account numbers), and will be + updated to uint64 in a future version of the auth query. + in: path + required: true + type: string + format: int64 + - name: account_id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /cosmos/auth/v1beta1/bech32: + get: + operationId: Query_Bech32Prefix + responses: + '200': + description: A successful response. + schema: + type: object + properties: + bech32_prefix: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/auth/v1beta1/bech32/{address_bytes}: + get: + operationId: Query_AddressBytesToString + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address_string: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address_bytes + in: path + required: true + type: string + format: byte + tags: + - Query + /cosmos/auth/v1beta1/bech32/{address_string}: + get: + operationId: Query_AddressStringToBytes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address_bytes: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address_string + in: path + required: true + type: string + tags: + - Query + /cosmos/auth/v1beta1/module_accounts: + get: + operationId: Query_ModuleAccounts + responses: + '200': + description: A successful response. + schema: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/auth/v1beta1/module_accounts/{name}: + get: + operationId: Query_ModuleAccountByName + responses: + '200': + description: A successful response. + schema: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: name + in: path + required: true + type: string + tags: + - Query + /cosmos/auth/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + AddressBytesToStringResponse: + type: object + properties: + address_string: + type: string + AddressStringToBytesResponse: + type: object + properties: + address_bytes: + type: string + format: byte + BaseAccount: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + Bech32PrefixResponse: + type: object + properties: + bech32_prefix: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryAccountAddressByIDResponse: + type: object + properties: + account_address: + type: string + QueryAccountInfoResponse: + type: object + properties: + info: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + QueryAccountResponse: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryAccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryModuleAccountByNameResponse: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryModuleAccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + v1beta1.Params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + MsgUpdateParamsResponse: + type: object + Params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 diff --git a/ts-client/cosmos.auth.v1beta1/module.ts b/ts-client/cosmos.auth.v1beta1/module.ts index d6f663ce..03bcb325 100755 --- a/ts-client/cosmos.auth.v1beta1/module.ts +++ b/ts-client/cosmos.auth.v1beta1/module.ts @@ -6,99 +6,87 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; -import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; +import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; - -export { QueryAccountsResponse, QueryModuleAccountsRequest, QueryAccountInfoResponse, QueryAccountsRequest, QueryAccountRequest, AddressBytesToStringRequest, QueryAccountInfoRequest, ModuleCredential, MsgUpdateParams, Params, QueryParamsRequest, QueryModuleAccountByNameResponse, Bech32PrefixResponse, AddressStringToBytesResponse, GenesisState, MsgUpdateParamsResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, BaseAccount, QueryModuleAccountByNameRequest, Bech32PrefixRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, ModuleAccount, QueryAccountResponse, QueryParamsResponse, QueryModuleAccountsResponse }; -type sendQueryAccountsResponseParams = { - value: QueryAccountsResponse, - fee?: StdFee, - memo?: string -}; - -type sendQueryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest, - fee?: StdFee, - memo?: string -}; +export { Bech32PrefixResponse, MsgUpdateParams, GenesisState, QueryAccountResponse, QueryParamsRequest, QueryModuleAccountByNameRequest, QueryAccountAddressByIDResponse, QueryAccountsRequest, QueryModuleAccountsRequest, QueryModuleAccountByNameResponse, AddressBytesToStringRequest, QueryAccountAddressByIDRequest, QueryAccountsResponse, QueryAccountRequest, AddressStringToBytesRequest, AddressStringToBytesResponse, BaseAccount, Bech32PrefixRequest, AddressBytesToStringResponse, QueryAccountInfoRequest, QueryAccountInfoResponse, MsgUpdateParamsResponse, ModuleCredential, Params, QueryModuleAccountsResponse, ModuleAccount, QueryParamsResponse }; -type sendQueryAccountInfoResponseParams = { - value: QueryAccountInfoResponse, +type sendBech32PrefixResponseParams = { + value: Bech32PrefixResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryAccountRequestParams = { - value: QueryAccountRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendAddressBytesToStringRequestParams = { - value: AddressBytesToStringRequest, +type sendQueryAccountResponseParams = { + value: QueryAccountResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountInfoRequestParams = { - value: QueryAccountInfoRequest, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendModuleCredentialParams = { - value: ModuleCredential, +type sendQueryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryAccountAddressByIDResponseParams = { + value: QueryAccountAddressByIDResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest, fee?: StdFee, memo?: string }; @@ -109,38 +97,38 @@ type sendQueryModuleAccountByNameResponseParams = { memo?: string }; -type sendBech32PrefixResponseParams = { - value: Bech32PrefixResponse, +type sendAddressBytesToStringRequestParams = { + value: AddressBytesToStringRequest, fee?: StdFee, memo?: string }; -type sendAddressStringToBytesResponseParams = { - value: AddressStringToBytesResponse, +type sendQueryAccountAddressByIDRequestParams = { + value: QueryAccountAddressByIDRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAccountsResponseParams = { + value: QueryAccountsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryAccountRequestParams = { + value: QueryAccountRequest, fee?: StdFee, memo?: string }; -type sendQueryAccountAddressByIDRequestParams = { - value: QueryAccountAddressByIDRequest, +type sendAddressStringToBytesRequestParams = { + value: AddressStringToBytesRequest, fee?: StdFee, memo?: string }; -type sendQueryAccountAddressByIDResponseParams = { - value: QueryAccountAddressByIDResponse, +type sendAddressStringToBytesResponseParams = { + value: AddressStringToBytesResponse, fee?: StdFee, memo?: string }; @@ -151,12 +139,6 @@ type sendBaseAccountParams = { memo?: string }; -type sendQueryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest, - fee?: StdFee, - memo?: string -}; - type sendBech32PrefixRequestParams = { value: Bech32PrefixRequest, fee?: StdFee, @@ -169,26 +151,32 @@ type sendAddressBytesToStringResponseParams = { memo?: string }; -type sendAddressStringToBytesRequestParams = { - value: AddressStringToBytesRequest, +type sendQueryAccountInfoRequestParams = { + value: QueryAccountInfoRequest, fee?: StdFee, memo?: string }; -type sendModuleAccountParams = { - value: ModuleAccount, +type sendQueryAccountInfoResponseParams = { + value: QueryAccountInfoResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountResponseParams = { - value: QueryAccountResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendModuleCredentialParams = { + value: ModuleCredential, + fee?: StdFee, + memo?: string +}; + +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; @@ -199,87 +187,87 @@ type sendQueryModuleAccountsResponseParams = { memo?: string }; - -type queryAccountsResponseParams = { - value: QueryAccountsResponse, +type sendModuleAccountParams = { + value: ModuleAccount, + fee?: StdFee, + memo?: string }; -type queryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, + fee?: StdFee, + memo?: string }; -type queryAccountInfoResponseParams = { - value: QueryAccountInfoResponse, + +type bech32PrefixResponseParams = { + value: Bech32PrefixResponse, }; -type queryAccountsRequestParams = { - value: QueryAccountsRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryAccountRequestParams = { - value: QueryAccountRequest, +type genesisStateParams = { + value: GenesisState, }; -type addressBytesToStringRequestParams = { - value: AddressBytesToStringRequest, +type queryAccountResponseParams = { + value: QueryAccountResponse, }; -type queryAccountInfoRequestParams = { - value: QueryAccountInfoRequest, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type moduleCredentialParams = { - value: ModuleCredential, +type queryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryAccountAddressByIdresponseParams = { + value: QueryAccountAddressByIDResponse, }; -type paramsParams = { - value: Params, +type queryAccountsRequestParams = { + value: QueryAccountsRequest, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest, }; type queryModuleAccountByNameResponseParams = { value: QueryModuleAccountByNameResponse, }; -type bech32PrefixResponseParams = { - value: Bech32PrefixResponse, +type addressBytesToStringRequestParams = { + value: AddressBytesToStringRequest, }; -type addressStringToBytesResponseParams = { - value: AddressStringToBytesResponse, +type queryAccountAddressByIdrequestParams = { + value: QueryAccountAddressByIDRequest, }; -type genesisStateParams = { - value: GenesisState, +type queryAccountsResponseParams = { + value: QueryAccountsResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryAccountRequestParams = { + value: QueryAccountRequest, }; -type queryAccountAddressByIdrequestParams = { - value: QueryAccountAddressByIDRequest, +type addressStringToBytesRequestParams = { + value: AddressStringToBytesRequest, }; -type queryAccountAddressByIdresponseParams = { - value: QueryAccountAddressByIDResponse, +type addressStringToBytesResponseParams = { + value: AddressStringToBytesResponse, }; type baseAccountParams = { value: BaseAccount, }; -type queryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest, -}; - type bech32PrefixRequestParams = { value: Bech32PrefixRequest, }; @@ -288,26 +276,38 @@ type addressBytesToStringResponseParams = { value: AddressBytesToStringResponse, }; -type addressStringToBytesRequestParams = { - value: AddressStringToBytesRequest, +type queryAccountInfoRequestParams = { + value: QueryAccountInfoRequest, }; -type moduleAccountParams = { - value: ModuleAccount, +type queryAccountInfoResponseParams = { + value: QueryAccountInfoResponse, }; -type queryAccountResponseParams = { - value: QueryAccountResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type moduleCredentialParams = { + value: ModuleCredential, +}; + +type paramsParams = { + value: Params, }; type queryModuleAccountsResponseParams = { value: QueryModuleAccountsResponse, }; +type moduleAccountParams = { + value: ModuleAccount, +}; + +type queryParamsResponseParams = { + value: QueryParamsResponse, +}; + export const registry = new Registry(msgTypes); @@ -338,157 +338,129 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendQueryAccountsResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountsResponse({ value: QueryAccountsResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendQueryAccountsResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise { - if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountsRequest: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryModuleAccountsRequest({ value: QueryModuleAccountsRequest.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendQueryModuleAccountsRequest: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise { + async sendBech32PrefixResponse({ value, fee, memo }: sendBech32PrefixResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBech32PrefixResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountInfoResponse({ value: QueryAccountInfoResponse.fromPartial(value) }) + let msg = this.bech32PrefixResponse({ value: Bech32PrefixResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBech32PrefixResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendAddressBytesToStringRequest({ value, fee, memo }: sendAddressBytesToStringRequestParams): Promise { + async sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressBytesToStringRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.addressBytesToStringRequest({ value: AddressBytesToStringRequest.fromPartial(value) }) + let msg = this.queryAccountResponse({ value: QueryAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAddressBytesToStringRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountInfoRequest({ value, fee, memo }: sendQueryAccountInfoRequestParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountInfoRequest({ value: QueryAccountInfoRequest.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise { + async sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendModuleCredential: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.moduleCredential({ value: ModuleCredential.fromPartial(value) }) + let msg = this.queryModuleAccountByNameRequest({ value: QueryModuleAccountByNameRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModuleCredential: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryAccountAddressByIDResponse({ value, fee, memo }: sendQueryAccountAddressByIDResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryAccountAddressByIdresponse({ value: QueryAccountAddressByIDResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleAccountsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryModuleAccountsRequest({ value: QueryModuleAccountsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleAccountsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -506,87 +478,87 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendBech32PrefixResponse({ value, fee, memo }: sendBech32PrefixResponseParams): Promise { + async sendAddressBytesToStringRequest({ value, fee, memo }: sendAddressBytesToStringRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendBech32PrefixResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAddressBytesToStringRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.bech32PrefixResponse({ value: Bech32PrefixResponse.fromPartial(value) }) + let msg = this.addressBytesToStringRequest({ value: AddressBytesToStringRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBech32PrefixResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressBytesToStringRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise { + async sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.addressStringToBytesResponse({ value: AddressStringToBytesResponse.fromPartial(value) }) + let msg = this.queryAccountAddressByIdrequest({ value: QueryAccountAddressByIDRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAddressStringToBytesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryAccountsResponse({ value: QueryAccountsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise { + async sendAddressStringToBytesRequest({ value, fee, memo }: sendAddressStringToBytesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAddressStringToBytesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountAddressByIdrequest({ value: QueryAccountAddressByIDRequest.fromPartial(value) }) + let msg = this.addressStringToBytesRequest({ value: AddressStringToBytesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressStringToBytesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountAddressByIDResponse({ value, fee, memo }: sendQueryAccountAddressByIDResponseParams): Promise { + async sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAddressStringToBytesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountAddressByIdresponse({ value: QueryAccountAddressByIDResponse.fromPartial(value) }) + let msg = this.addressStringToBytesResponse({ value: AddressStringToBytesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressStringToBytesResponse: Could not broadcast Tx: '+ e.message) } }, @@ -604,101 +576,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise { + async sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBech32PrefixRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryModuleAccountByNameRequest({ value: QueryModuleAccountByNameRequest.fromPartial(value) }) + let msg = this.bech32PrefixRequest({ value: Bech32PrefixRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBech32PrefixRequest: Could not broadcast Tx: '+ e.message) } }, - async sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise { + async sendAddressBytesToStringResponse({ value, fee, memo }: sendAddressBytesToStringResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBech32PrefixRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAddressBytesToStringResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.bech32PrefixRequest({ value: Bech32PrefixRequest.fromPartial(value) }) + let msg = this.addressBytesToStringResponse({ value: AddressBytesToStringResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBech32PrefixRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressBytesToStringResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAddressBytesToStringResponse({ value, fee, memo }: sendAddressBytesToStringResponseParams): Promise { + async sendQueryAccountInfoRequest({ value, fee, memo }: sendQueryAccountInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressBytesToStringResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.addressBytesToStringResponse({ value: AddressBytesToStringResponse.fromPartial(value) }) + let msg = this.queryAccountInfoRequest({ value: QueryAccountInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAddressBytesToStringResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAddressStringToBytesRequest({ value, fee, memo }: sendAddressStringToBytesRequestParams): Promise { + async sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAccountInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.addressStringToBytesRequest({ value: AddressStringToBytesRequest.fromPartial(value) }) + let msg = this.queryAccountInfoResponse({ value: QueryAccountInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAddressStringToBytesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendModuleAccount({ value, fee, memo }: sendModuleAccountParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModuleAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.moduleAccount({ value: ModuleAccount.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModuleAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise { + async sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModuleCredential: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountResponse({ value: QueryAccountResponse.fromPartial(value) }) + let msg = this.moduleCredential({ value: ModuleCredential.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModuleCredential: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, @@ -716,92 +688,104 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - - queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial( value ) } + async sendModuleAccount({ value, fee, memo }: sendModuleAccountParams): Promise { + if (!signer) { + throw new Error('TxClient:sendModuleAccount: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.moduleAccount({ value: ModuleAccount.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendModuleAccount: Could not broadcast Tx: '+ e.message) } }, - queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial( value ) } + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject { + + bech32PrefixResponse({ value }: bech32PrefixResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message) } }, - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - addressBytesToStringRequest({ value }: addressBytesToStringRequestParams): EncodeObject { + queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", value: AddressBytesToStringRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressBytesToStringRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message) } }, - queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - moduleCredential({ value }: moduleCredentialParams): EncodeObject { + queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryAccountAddressByIdresponse({ value }: queryAccountAddressByIdresponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message) } }, @@ -813,51 +797,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - bech32PrefixResponse({ value }: bech32PrefixResponseParams): EncodeObject { + addressBytesToStringRequest({ value }: addressBytesToStringRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", value: AddressBytesToStringRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AddressBytesToStringRequest: Could not create message: ' + e.message) } }, - addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject { + queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) } }, - queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject { + addressStringToBytesRequest({ value }: addressStringToBytesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message) + throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message) } }, - queryAccountAddressByIdresponse({ value }: queryAccountAddressByIdresponseParams): EncodeObject { + addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message) } }, @@ -869,14 +853,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message) - } - }, - bech32PrefixRequest({ value }: bech32PrefixRequestParams): EncodeObject { try { return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", value: Bech32PrefixRequest.fromPartial( value ) } @@ -893,35 +869,43 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - addressStringToBytesRequest({ value }: addressStringToBytesRequestParams): EncodeObject { + queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message) } }, - moduleAccount({ value }: moduleAccountParams): EncodeObject { + queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", value: ModuleAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleAccount: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message) } }, - queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + moduleCredential({ value }: moduleCredentialParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message) + } + }, + + params({ value }: paramsParams): EncodeObject { + try { + return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, @@ -933,6 +917,22 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + moduleAccount({ value }: moduleAccountParams): EncodeObject { + try { + return { typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", value: ModuleAccount.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:ModuleAccount: Could not create message: ' + e.message) + } + }, + + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + } + }, + } }; diff --git a/ts-client/cosmos.auth.v1beta1/registry.ts b/ts-client/cosmos.auth.v1beta1/registry.ts index eff0a5a7..1041d290 100755 --- a/ts-client/cosmos.auth.v1beta1/registry.ts +++ b/ts-client/cosmos.auth.v1beta1/registry.ts @@ -1,60 +1,60 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; -import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; +import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], - ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], - ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], - ["/cosmos.auth.v1beta1.QueryAccountsRequest", QueryAccountsRequest], - ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.auth.v1beta1.AddressBytesToStringRequest", AddressBytesToStringRequest], - ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], - ["/cosmos.auth.v1beta1.ModuleCredential", ModuleCredential], + ["/cosmos.auth.v1beta1.Bech32PrefixResponse", Bech32PrefixResponse], ["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.auth.v1beta1.Params", Params], + ["/cosmos.auth.v1beta1.GenesisState", GenesisState], + ["/cosmos.auth.v1beta1.QueryAccountResponse", QueryAccountResponse], ["/cosmos.auth.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], + ["/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", QueryAccountAddressByIDResponse], + ["/cosmos.auth.v1beta1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], ["/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", QueryModuleAccountByNameResponse], - ["/cosmos.auth.v1beta1.Bech32PrefixResponse", Bech32PrefixResponse], - ["/cosmos.auth.v1beta1.AddressStringToBytesResponse", AddressStringToBytesResponse], - ["/cosmos.auth.v1beta1.GenesisState", GenesisState], - ["/cosmos.auth.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.auth.v1beta1.AddressBytesToStringRequest", AddressBytesToStringRequest], ["/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", QueryAccountAddressByIDRequest], - ["/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", QueryAccountAddressByIDResponse], + ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], + ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], + ["/cosmos.auth.v1beta1.AddressStringToBytesRequest", AddressStringToBytesRequest], + ["/cosmos.auth.v1beta1.AddressStringToBytesResponse", AddressStringToBytesResponse], ["/cosmos.auth.v1beta1.BaseAccount", BaseAccount], - ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], ["/cosmos.auth.v1beta1.Bech32PrefixRequest", Bech32PrefixRequest], ["/cosmos.auth.v1beta1.AddressBytesToStringResponse", AddressBytesToStringResponse], - ["/cosmos.auth.v1beta1.AddressStringToBytesRequest", AddressStringToBytesRequest], + ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], + ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], + ["/cosmos.auth.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.auth.v1beta1.ModuleCredential", ModuleCredential], + ["/cosmos.auth.v1beta1.Params", Params], + ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], ["/cosmos.auth.v1beta1.ModuleAccount", ModuleAccount], - ["/cosmos.auth.v1beta1.QueryAccountResponse", QueryAccountResponse], ["/cosmos.auth.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], ]; diff --git a/ts-client/cosmos.auth.v1beta1/rest.ts b/ts-client/cosmos.auth.v1beta1/rest.ts index 771c139a..00def294 100644 --- a/ts-client/cosmos.auth.v1beta1/rest.ts +++ b/ts-client/cosmos.auth.v1beta1/rest.ts @@ -9,6 +9,133 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface AddressBytesToStringResponse { + address_string?: string; +} + +export interface AddressStringToBytesResponse { + /** @format byte */ + address_bytes?: string; +} + +export interface BaseAccount { + address?: string; + pub_key?: { "@type"?: string }; + + /** @format uint64 */ + account_number?: string; + + /** @format uint64 */ + sequence?: string; +} + +export interface Bech32PrefixResponse { + bech32_prefix?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryAccountAddressByIDResponse { + account_address?: string; +} + +export interface QueryAccountInfoResponse { + info?: { address?: string; pub_key?: { "@type"?: string }; account_number?: string; sequence?: string }; +} + +export interface QueryAccountResponse { + account?: { "@type"?: string }; +} + +export interface QueryAccountsResponse { + accounts?: { "@type"?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryModuleAccountByNameResponse { + account?: { "@type"?: string }; +} + +export interface QueryModuleAccountsResponse { + accounts?: { "@type"?: string }[]; +} + +export interface QueryParamsResponse { + params?: { + max_memo_characters?: string; + tx_sig_limit?: string; + tx_size_cost_per_byte?: string; + sig_verify_cost_ed25519?: string; + sig_verify_cost_secp256k1?: string; + }; +} + +export interface V1Beta1Params { + /** @format uint64 */ + max_memo_characters?: string; + + /** @format uint64 */ + tx_sig_limit?: string; + + /** @format uint64 */ + tx_size_cost_per_byte?: string; + + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; +} + +export type MsgUpdateParamsResponse = object; + +export interface Params { + /** @format uint64 */ + max_memo_characters?: string; + + /** @format uint64 */ + tx_sig_limit?: string; + + /** @format uint64 */ + tx_size_cost_per_byte?: string; + + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +259,181 @@ export class HttpClient { /** * @title HTTP API Console cosmos.auth.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAccountInfo + * @request GET:/cosmos/auth/v1beta1/account_info/{address} + */ + queryAccountInfo = (address: string, params: RequestParams = {}) => + this.request< + { info?: { address?: string; pub_key?: { "@type"?: string }; account_number?: string; sequence?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/account_info/${address}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAccounts + * @request GET:/cosmos/auth/v1beta1/accounts + */ + queryAccounts = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { accounts?: { "@type"?: string }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/accounts`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAccount + * @request GET:/cosmos/auth/v1beta1/accounts/{address} + */ + queryAccount = (address: string, params: RequestParams = {}) => + this.request< + { account?: { "@type"?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/accounts/${address}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAccountAddressById + * @request GET:/cosmos/auth/v1beta1/address_by_id/{id} + */ + queryAccountAddressByID = (id: string, query?: { account_id?: string }, params: RequestParams = {}) => + this.request<{ account_address?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/auth/v1beta1/address_by_id/${id}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryBech32Prefix + * @request GET:/cosmos/auth/v1beta1/bech32 + */ + queryBech32Prefix = (params: RequestParams = {}) => + this.request<{ bech32_prefix?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/auth/v1beta1/bech32`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAddressBytesToString + * @request GET:/cosmos/auth/v1beta1/bech32/{address_bytes} + */ + queryAddressBytesToString = (addressBytes: string, params: RequestParams = {}) => + this.request<{ address_string?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/auth/v1beta1/bech32/${addressBytes}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAddressStringToBytes + * @request GET:/cosmos/auth/v1beta1/bech32/{address_string} + */ + queryAddressStringToBytes = (addressString: string, params: RequestParams = {}) => + this.request<{ address_bytes?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/auth/v1beta1/bech32/${addressString}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryModuleAccounts + * @request GET:/cosmos/auth/v1beta1/module_accounts + */ + queryModuleAccounts = (params: RequestParams = {}) => + this.request< + { accounts?: { "@type"?: string }[] }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/module_accounts`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryModuleAccountByName + * @request GET:/cosmos/auth/v1beta1/module_accounts/{name} + */ + queryModuleAccountByName = (name: string, params: RequestParams = {}) => + this.request< + { account?: { "@type"?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/module_accounts/${name}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/auth/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + max_memo_characters?: string; + tx_sig_limit?: string; + tx_size_cost_per_byte?: string; + sig_verify_cost_ed25519?: string; + sig_verify_cost_secp256k1?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/auth/v1beta1/params`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.authz.v1beta1/api.swagger.yml b/ts-client/cosmos.authz.v1beta1/api.swagger.yml index 77cee20c..852e4d44 100644 --- a/ts-client/cosmos.authz.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.authz.v1beta1/api.swagger.yml @@ -3,3 +3,446 @@ info: title: HTTP API Console cosmos.authz.v1beta1 name: '' description: '' +paths: + /cosmos/authz/v1beta1/grants: + get: + operationId: Query_Grants + responses: + '200': + description: A successful response. + schema: + type: object + properties: + grants: + type: array + items: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: granter + in: query + required: false + type: string + - name: grantee + in: query + required: false + type: string + - name: msg_type_url + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/authz/v1beta1/grants/grantee/{grantee}: + get: + operationId: Query_GranteeGrants + responses: + '200': + description: A successful response. + schema: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: grantee + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/authz/v1beta1/grants/granter/{granter}: + get: + operationId: Query_GranterGrants + responses: + '200': + description: A successful response. + schema: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: granter + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + GrantAuthorization: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGranteeGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGranterGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + MsgExecResponse: + type: object + properties: + results: + type: array + items: + type: string + format: byte + MsgGrantResponse: + type: object + MsgRevokeResponse: + type: object + v1beta1.Grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + additionalProperties: {} + expiration: + type: string + format: date-time diff --git a/ts-client/cosmos.authz.v1beta1/module.ts b/ts-client/cosmos.authz.v1beta1/module.ts index 71f87084..d40b0beb 100755 --- a/ts-client/cosmos.authz.v1beta1/module.ts +++ b/ts-client/cosmos.authz.v1beta1/module.ts @@ -6,127 +6,127 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; -import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; -import { Grant } from "./types/cosmos/authz/v1beta1/authz"; -import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -export { MsgGrantResponse, MsgExecResponse, MsgRevokeResponse, EventRevoke, GenesisState, MsgGrant, MsgExec, QueryGranterGrantsResponse, MsgRevoke, Grant, QueryGrantsRequest, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse, GrantQueueItem, EventGrant, GrantAuthorization, GenericAuthorization, QueryGrantsResponse, QueryGranterGrantsRequest }; +export { Grant, GenesisState, MsgExecResponse, QueryGranterGrantsResponse, QueryGranteeGrantsResponse, MsgGrantResponse, MsgRevoke, GrantAuthorization, QueryGranteeGrantsRequest, MsgExec, EventGrant, GenericAuthorization, GrantQueueItem, QueryGrantsRequest, MsgGrant, MsgRevokeResponse, EventRevoke, QueryGrantsResponse, QueryGranterGrantsRequest }; -type sendMsgGrantResponseParams = { - value: MsgGrantResponse, +type sendGrantParams = { + value: Grant, fee?: StdFee, memo?: string }; -type sendMsgExecResponseParams = { - value: MsgExecResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgRevokeResponseParams = { - value: MsgRevokeResponse, +type sendMsgExecResponseParams = { + value: MsgExecResponse, fee?: StdFee, memo?: string }; -type sendEventRevokeParams = { - value: EventRevoke, +type sendQueryGranterGrantsResponseParams = { + value: QueryGranterGrantsResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryGranteeGrantsResponseParams = { + value: QueryGranteeGrantsResponse, fee?: StdFee, memo?: string }; -type sendMsgGrantParams = { - value: MsgGrant, +type sendMsgGrantResponseParams = { + value: MsgGrantResponse, fee?: StdFee, memo?: string }; -type sendMsgExecParams = { - value: MsgExec, +type sendMsgRevokeParams = { + value: MsgRevoke, fee?: StdFee, memo?: string }; -type sendQueryGranterGrantsResponseParams = { - value: QueryGranterGrantsResponse, +type sendGrantAuthorizationParams = { + value: GrantAuthorization, fee?: StdFee, memo?: string }; -type sendMsgRevokeParams = { - value: MsgRevoke, +type sendQueryGranteeGrantsRequestParams = { + value: QueryGranteeGrantsRequest, fee?: StdFee, memo?: string }; -type sendGrantParams = { - value: Grant, +type sendMsgExecParams = { + value: MsgExec, fee?: StdFee, memo?: string }; -type sendQueryGrantsRequestParams = { - value: QueryGrantsRequest, +type sendEventGrantParams = { + value: EventGrant, fee?: StdFee, memo?: string }; -type sendQueryGranteeGrantsRequestParams = { - value: QueryGranteeGrantsRequest, +type sendGenericAuthorizationParams = { + value: GenericAuthorization, fee?: StdFee, memo?: string }; -type sendQueryGranteeGrantsResponseParams = { - value: QueryGranteeGrantsResponse, +type sendGrantQueueItemParams = { + value: GrantQueueItem, fee?: StdFee, memo?: string }; -type sendGrantQueueItemParams = { - value: GrantQueueItem, +type sendQueryGrantsRequestParams = { + value: QueryGrantsRequest, fee?: StdFee, memo?: string }; -type sendEventGrantParams = { - value: EventGrant, +type sendMsgGrantParams = { + value: MsgGrant, fee?: StdFee, memo?: string }; -type sendGrantAuthorizationParams = { - value: GrantAuthorization, +type sendMsgRevokeResponseParams = { + value: MsgRevokeResponse, fee?: StdFee, memo?: string }; -type sendGenericAuthorizationParams = { - value: GenericAuthorization, +type sendEventRevokeParams = { + value: EventRevoke, fee?: StdFee, memo?: string }; @@ -144,72 +144,72 @@ type sendQueryGranterGrantsRequestParams = { }; -type msgGrantResponseParams = { - value: MsgGrantResponse, -}; - -type msgExecResponseParams = { - value: MsgExecResponse, -}; - -type msgRevokeResponseParams = { - value: MsgRevokeResponse, -}; - -type eventRevokeParams = { - value: EventRevoke, +type grantParams = { + value: Grant, }; type genesisStateParams = { value: GenesisState, }; -type msgGrantParams = { - value: MsgGrant, -}; - -type msgExecParams = { - value: MsgExec, +type msgExecResponseParams = { + value: MsgExecResponse, }; type queryGranterGrantsResponseParams = { value: QueryGranterGrantsResponse, }; -type msgRevokeParams = { - value: MsgRevoke, +type queryGranteeGrantsResponseParams = { + value: QueryGranteeGrantsResponse, }; -type grantParams = { - value: Grant, +type msgGrantResponseParams = { + value: MsgGrantResponse, }; -type queryGrantsRequestParams = { - value: QueryGrantsRequest, +type msgRevokeParams = { + value: MsgRevoke, +}; + +type grantAuthorizationParams = { + value: GrantAuthorization, }; type queryGranteeGrantsRequestParams = { value: QueryGranteeGrantsRequest, }; -type queryGranteeGrantsResponseParams = { - value: QueryGranteeGrantsResponse, +type msgExecParams = { + value: MsgExec, +}; + +type eventGrantParams = { + value: EventGrant, +}; + +type genericAuthorizationParams = { + value: GenericAuthorization, }; type grantQueueItemParams = { value: GrantQueueItem, }; -type eventGrantParams = { - value: EventGrant, +type queryGrantsRequestParams = { + value: QueryGrantsRequest, }; -type grantAuthorizationParams = { - value: GrantAuthorization, +type msgGrantParams = { + value: MsgGrant, }; -type genericAuthorizationParams = { - value: GenericAuthorization, +type msgRevokeResponseParams = { + value: MsgRevokeResponse, +}; + +type eventRevokeParams = { + value: EventRevoke, }; type queryGrantsResponseParams = { @@ -250,241 +250,241 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise { + async sendGrant({ value, fee, memo }: sendGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGrantResponse({ value: MsgGrantResponse.fromPartial(value) }) + let msg = this.grant({ value: Grant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGrantResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise { + async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRevokeResponse({ value: MsgRevokeResponse.fromPartial(value) }) + let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise { + async sendQueryGranterGrantsResponse({ value, fee, memo }: sendQueryGranterGrantsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventRevoke: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGranterGrantsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventRevoke({ value: EventRevoke.fromPartial(value) }) + let msg = this.queryGranterGrantsResponse({ value: QueryGranterGrantsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventRevoke: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGranterGrantsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryGranteeGrantsResponse({ value, fee, memo }: sendQueryGranteeGrantsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGranteeGrantsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryGranteeGrantsResponse({ value: QueryGranteeGrantsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGranteeGrantsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise { + async sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGrantResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGrant({ value: MsgGrant.fromPartial(value) }) + let msg = this.msgGrantResponse({ value: MsgGrantResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { + async sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevoke: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExec({ value: MsgExec.fromPartial(value) }) + let msg = this.msgRevoke({ value: MsgRevoke.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGranterGrantsResponse({ value, fee, memo }: sendQueryGranterGrantsResponseParams): Promise { + async sendGrantAuthorization({ value, fee, memo }: sendGrantAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGranterGrantsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGrantAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGranterGrantsResponse({ value: QueryGranterGrantsResponse.fromPartial(value) }) + let msg = this.grantAuthorization({ value: GrantAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGranterGrantsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrantAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise { + async sendQueryGranteeGrantsRequest({ value, fee, memo }: sendQueryGranteeGrantsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevoke: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGranteeGrantsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRevoke({ value: MsgRevoke.fromPartial(value) }) + let msg = this.queryGranteeGrantsRequest({ value: QueryGranteeGrantsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGranteeGrantsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGrant({ value, fee, memo }: sendGrantParams): Promise { + async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.grant({ value: Grant.fromPartial(value) }) + let msg = this.msgExec({ value: MsgExec.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise { + async sendEventGrant({ value, fee, memo }: sendEventGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGrantsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGrantsRequest({ value: QueryGrantsRequest.fromPartial(value) }) + let msg = this.eventGrant({ value: EventGrant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGrantsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventGrant: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGranteeGrantsRequest({ value, fee, memo }: sendQueryGranteeGrantsRequestParams): Promise { + async sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGranteeGrantsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenericAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGranteeGrantsRequest({ value: QueryGranteeGrantsRequest.fromPartial(value) }) + let msg = this.genericAuthorization({ value: GenericAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGranteeGrantsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenericAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGranteeGrantsResponse({ value, fee, memo }: sendQueryGranteeGrantsResponseParams): Promise { + async sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGranteeGrantsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGrantQueueItem: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGranteeGrantsResponse({ value: QueryGranteeGrantsResponse.fromPartial(value) }) + let msg = this.grantQueueItem({ value: GrantQueueItem.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGranteeGrantsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrantQueueItem: Could not broadcast Tx: '+ e.message) } }, - async sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise { + async sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrantQueueItem: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGrantsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.grantQueueItem({ value: GrantQueueItem.fromPartial(value) }) + let msg = this.queryGrantsRequest({ value: QueryGrantsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGrantQueueItem: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGrantsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendEventGrant({ value, fee, memo }: sendEventGrantParams): Promise { + async sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventGrant({ value: EventGrant.fromPartial(value) }) + let msg = this.msgGrant({ value: MsgGrant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: '+ e.message) } }, - async sendGrantAuthorization({ value, fee, memo }: sendGrantAuthorizationParams): Promise { + async sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrantAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.grantAuthorization({ value: GrantAuthorization.fromPartial(value) }) + let msg = this.msgRevokeResponse({ value: MsgRevokeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGrantAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise { + async sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenericAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventRevoke: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genericAuthorization({ value: GenericAuthorization.fromPartial(value) }) + let msg = this.eventRevoke({ value: EventRevoke.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenericAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventRevoke: Could not broadcast Tx: '+ e.message) } }, @@ -517,139 +517,139 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject { + grant({ value }: grantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", value: MsgGrantResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Grant: Could not create message: ' + e.message) } }, - msgExecResponse({ value }: msgExecResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject { + msgExecResponse({ value }: msgExecResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) } }, - eventRevoke({ value }: eventRevokeParams): EncodeObject { + queryGranterGrantsResponse({ value }: queryGranterGrantsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", value: QueryGranterGrantsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranterGrantsResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryGranteeGrantsResponse({ value }: queryGranteeGrantsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", value: QueryGranteeGrantsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranteeGrantsResponse: Could not create message: ' + e.message) } }, - msgGrant({ value }: msgGrantParams): EncodeObject { + msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", value: MsgGrantResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantResponse: Could not create message: ' + e.message) } }, - msgExec({ value }: msgExecParams): EncodeObject { + msgRevoke({ value }: msgRevokeParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message) } }, - queryGranterGrantsResponse({ value }: queryGranterGrantsResponseParams): EncodeObject { + grantAuthorization({ value }: grantAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", value: QueryGranterGrantsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", value: GrantAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGranterGrantsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GrantAuthorization: Could not create message: ' + e.message) } }, - msgRevoke({ value }: msgRevokeParams): EncodeObject { + queryGranteeGrantsRequest({ value }: queryGranteeGrantsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message) } }, - grant({ value }: grantParams): EncodeObject { + msgExec({ value }: msgExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Grant: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) } }, - queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject { + eventGrant({ value }: eventGrantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EventGrant: Could not create message: ' + e.message) } }, - queryGranteeGrantsRequest({ value }: queryGranteeGrantsRequestParams): EncodeObject { + genericAuthorization({ value }: genericAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message) } }, - queryGranteeGrantsResponse({ value }: queryGranteeGrantsResponseParams): EncodeObject { + grantQueueItem({ value }: grantQueueItemParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", value: QueryGranteeGrantsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGranteeGrantsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GrantQueueItem: Could not create message: ' + e.message) } }, - grantQueueItem({ value }: grantQueueItemParams): EncodeObject { + queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GrantQueueItem: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message) } }, - eventGrant({ value }: eventGrantParams): EncodeObject { + msgGrant({ value }: msgGrantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventGrant: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message) } }, - grantAuthorization({ value }: grantAuthorizationParams): EncodeObject { + msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", value: GrantAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GrantAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message) } }, - genericAuthorization({ value }: genericAuthorizationParams): EncodeObject { + eventRevoke({ value }: eventRevokeParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.authz.v1beta1/registry.ts b/ts-client/cosmos.authz.v1beta1/registry.ts index 9def213c..95a477ad 100755 --- a/ts-client/cosmos.authz.v1beta1/registry.ts +++ b/ts-client/cosmos.authz.v1beta1/registry.ts @@ -1,42 +1,42 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; -import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; -import { Grant } from "./types/cosmos/authz/v1beta1/authz"; -import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], - ["/cosmos.authz.v1beta1.MsgExecResponse", MsgExecResponse], - ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], - ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], + ["/cosmos.authz.v1beta1.Grant", Grant], ["/cosmos.authz.v1beta1.GenesisState", GenesisState], - ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], - ["/cosmos.authz.v1beta1.MsgExec", MsgExec], + ["/cosmos.authz.v1beta1.MsgExecResponse", MsgExecResponse], ["/cosmos.authz.v1beta1.QueryGranterGrantsResponse", QueryGranterGrantsResponse], + ["/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", QueryGranteeGrantsResponse], + ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke], - ["/cosmos.authz.v1beta1.Grant", Grant], - ["/cosmos.authz.v1beta1.QueryGrantsRequest", QueryGrantsRequest], + ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], ["/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", QueryGranteeGrantsRequest], - ["/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", QueryGranteeGrantsResponse], - ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], + ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.EventGrant", EventGrant], - ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], ["/cosmos.authz.v1beta1.GenericAuthorization", GenericAuthorization], + ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], + ["/cosmos.authz.v1beta1.QueryGrantsRequest", QueryGrantsRequest], + ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], + ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], + ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], ["/cosmos.authz.v1beta1.QueryGrantsResponse", QueryGrantsResponse], ["/cosmos.authz.v1beta1.QueryGranterGrantsRequest", QueryGranterGrantsRequest], diff --git a/ts-client/cosmos.authz.v1beta1/rest.ts b/ts-client/cosmos.authz.v1beta1/rest.ts index cf18ef4e..db680557 100644 --- a/ts-client/cosmos.authz.v1beta1/rest.ts +++ b/ts-client/cosmos.authz.v1beta1/rest.ts @@ -9,6 +9,84 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Grant { + authorization?: { "@type"?: string }; + + /** @format date-time */ + expiration?: string; +} + +export interface GrantAuthorization { + granter?: string; + grantee?: string; + authorization?: { "@type"?: string }; + + /** @format date-time */ + expiration?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryGranteeGrantsResponse { + grants?: { granter?: string; grantee?: string; authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGranterGrantsResponse { + grants?: { granter?: string; grantee?: string; authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGrantsResponse { + grants?: { authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface MsgExecResponse { + results?: string[]; +} + +export type MsgGrantResponse = object; + +export type MsgRevokeResponse = object; + +export interface V1Beta1Grant { + authorization?: { "@type"?: string }; + + /** @format date-time */ + expiration?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +210,99 @@ export class HttpClient { /** * @title HTTP API Console cosmos.authz.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryGrants + * @request GET:/cosmos/authz/v1beta1/grants + */ + queryGrants = ( + query?: { + granter?: string; + grantee?: string; + msg_type_url?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + grants?: { authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/authz/v1beta1/grants`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGranteeGrants + * @request GET:/cosmos/authz/v1beta1/grants/grantee/{grantee} + */ + queryGranteeGrants = ( + grantee: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + grants?: { granter?: string; grantee?: string; authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/authz/v1beta1/grants/grantee/${grantee}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGranterGrants + * @request GET:/cosmos/authz/v1beta1/grants/granter/{granter} + */ + queryGranterGrants = ( + granter: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + grants?: { granter?: string; grantee?: string; authorization?: { "@type"?: string }; expiration?: string }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/authz/v1beta1/grants/granter/${granter}`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.bank.v1beta1/api.swagger.yml b/ts-client/cosmos.bank.v1beta1/api.swagger.yml index 4e6ba16b..80f1bafb 100644 --- a/ts-client/cosmos.bank.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.bank.v1beta1/api.swagger.yml @@ -3,3 +3,1358 @@ info: title: HTTP API Console cosmos.bank.v1beta1 name: '' description: '' +paths: + /cosmos/bank/v1beta1/balances/{address}: + get: + operationId: Query_AllBalances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + - name: resolve_denom + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/balances/{address}/by_denom: + get: + operationId: Query_Balance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balance: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: denom + in: query + required: false + type: string + tags: + - Query + /cosmos/bank/v1beta1/denom_owners/{denom}: + get: + operationId: Query_DenomOwners + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + description: >- + denom defines the coin denomination to query all account holders + for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/denom_owners_by_query: + get: + operationId: Query_DenomOwnersByQuery + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/denoms_metadata: + get: + operationId: Query_DenomsMetadata + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadatas: + type: array + items: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/denoms_metadata/{denom}: + get: + operationId: Query_DenomMetadata + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + description: denom is the coin denom to query the metadata for. + in: path + required: true + type: string + tags: + - Query + /cosmos/bank/v1beta1/denoms_metadata_by_query_string: + get: + operationId: Query_DenomMetadataByQueryString + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + in: query + required: false + type: string + tags: + - Query + /cosmos/bank/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + default_send_enabled: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/bank/v1beta1/send_enabled: + get: + operationId: Query_SendEnabled + responses: + '200': + description: A successful response. + schema: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denoms + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/spendable_balances/{address}: + get: + operationId: Query_SpendableBalances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query spendable balances for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom: + get: + operationId: Query_SpendableBalanceByDenom + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balance: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: denom + in: query + required: false + type: string + tags: + - Query + /cosmos/bank/v1beta1/supply: + get: + operationId: Query_TotalSupply + responses: + '200': + description: A successful response. + schema: + type: object + properties: + supply: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/supply/by_denom: + get: + operationId: Query_SupplyOf + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + in: query + required: false + type: string + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + DenomOwner: + type: object + properties: + address: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + DenomUnit: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + Metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryAllBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryBalanceResponse: + type: object + properties: + balance: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDenomMetadataByQueryStringResponse: + type: object + properties: + metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + QueryDenomMetadataResponse: + type: object + properties: + metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + QueryDenomOwnersByQueryResponse: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryDenomOwnersResponse: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryDenomsMetadataResponse: + type: object + properties: + metadatas: + type: array + items: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + exponent: + type: integer + format: int64 + aliases: + type: array + items: + type: string + base: + type: string + display: + type: string + name: + type: string + symbol: + type: string + uri: + type: string + uri_hash: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + default_send_enabled: + type: boolean + QuerySendEnabledResponse: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QuerySpendableBalanceByDenomResponse: + type: object + properties: + balance: + type: object + properties: + denom: + type: string + amount: + type: string + QuerySpendableBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QuerySupplyOfResponse: + type: object + properties: + amount: + type: object + properties: + denom: + type: string + amount: + type: string + QueryTotalSupplyResponse: + type: object + properties: + supply: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + v1beta1.Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + default_send_enabled: + type: boolean + v1beta1.SendEnabled: + type: object + properties: + denom: + type: string + enabled: + type: boolean + Input: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + MsgMultiSendResponse: + type: object + MsgSendResponse: + type: object + MsgSetSendEnabledResponse: + type: object + MsgUpdateParamsResponse: + type: object + Output: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + default_send_enabled: + type: boolean + SendEnabled: + type: object + properties: + denom: + type: string + enabled: + type: boolean diff --git a/ts-client/cosmos.bank.v1beta1/module.ts b/ts-client/cosmos.bank.v1beta1/module.ts index 31b1461c..34e68be1 100755 --- a/ts-client/cosmos.bank.v1beta1/module.ts +++ b/ts-client/cosmos.bank.v1beta1/module.ts @@ -6,63 +6,57 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; -import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; -import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; -import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; -import { Supply } from "./types/cosmos/bank/v1beta1/bank"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; +import { Supply } from "./types/cosmos/bank/v1beta1/bank"; import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; +import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; +import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; -export { QueryAllBalancesResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, SendEnabled, MsgSetSendEnabled, QueryDenomsMetadataRequest, Input, DenomUnit, MsgMultiSendResponse, QueryParamsRequest, QueryDenomOwnersRequest, QueryDenomOwnersByQueryResponse, QueryAllBalancesRequest, QuerySupplyOfRequest, MsgMultiSend, QueryBalanceResponse, QueryBalanceRequest, QueryDenomsMetadataResponse, QueryDenomMetadataByQueryStringRequest, Output, SendAuthorization, MsgUpdateParams, QueryDenomMetadataByQueryStringResponse, Supply, GenesisState, QuerySupplyOfResponse, QueryDenomMetadataRequest, Metadata, QueryDenomOwnersResponse, DenomOwner, QueryDenomOwnersByQueryRequest, MsgSendResponse, MsgUpdateParamsResponse, QueryParamsResponse, QuerySendEnabledResponse, QuerySpendableBalancesResponse, QueryTotalSupplyResponse, QuerySpendableBalancesRequest, QueryDenomMetadataResponse, QuerySendEnabledRequest, Balance, MsgSend, MsgSetSendEnabledResponse, Params, QueryTotalSupplyRequest }; - -type sendQueryAllBalancesResponseParams = { - value: QueryAllBalancesResponse, - fee?: StdFee, - memo?: string -}; +export { MsgMultiSend, QuerySpendableBalanceByDenomResponse, QueryAllBalancesRequest, QuerySendEnabledRequest, Metadata, MsgMultiSendResponse, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, DenomUnit, QuerySpendableBalanceByDenomRequest, QuerySupplyOfRequest, QueryParamsResponse, QueryDenomOwnersResponse, QueryDenomOwnersByQueryResponse, Supply, QueryTotalSupplyResponse, QueryDenomMetadataByQueryStringRequest, GenesisState, QueryAllBalancesResponse, MsgSetSendEnabledResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryDenomOwnersByQueryRequest, Balance, Params, QueryBalanceResponse, QueryTotalSupplyRequest, QueryDenomMetadataByQueryStringResponse, QuerySupplyOfResponse, MsgUpdateParams, QueryParamsRequest, QuerySendEnabledResponse, Output, MsgUpdateParamsResponse, MsgSetSendEnabled, QueryBalanceRequest, QueryDenomMetadataResponse, MsgSend, MsgSendResponse, QueryDenomMetadataRequest, DenomOwner, SendEnabled, QueryDenomsMetadataRequest, SendAuthorization, Input }; -type sendQuerySpendableBalanceByDenomRequestParams = { - value: QuerySpendableBalanceByDenomRequest, +type sendMsgMultiSendParams = { + value: MsgMultiSend, fee?: StdFee, memo?: string }; @@ -73,32 +67,20 @@ type sendQuerySpendableBalanceByDenomResponseParams = { memo?: string }; -type sendSendEnabledParams = { - value: SendEnabled, - fee?: StdFee, - memo?: string -}; - -type sendMsgSetSendEnabledParams = { - value: MsgSetSendEnabled, - fee?: StdFee, - memo?: string -}; - -type sendQueryDenomsMetadataRequestParams = { - value: QueryDenomsMetadataRequest, +type sendQueryAllBalancesRequestParams = { + value: QueryAllBalancesRequest, fee?: StdFee, memo?: string }; -type sendInputParams = { - value: Input, +type sendQuerySendEnabledRequestParams = { + value: QuerySendEnabledRequest, fee?: StdFee, memo?: string }; -type sendDenomUnitParams = { - value: DenomUnit, +type sendMetadataParams = { + value: Metadata, fee?: StdFee, memo?: string }; @@ -109,8 +91,8 @@ type sendMsgMultiSendResponseParams = { memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse, fee?: StdFee, memo?: string }; @@ -121,14 +103,14 @@ type sendQueryDenomOwnersRequestParams = { memo?: string }; -type sendQueryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse, +type sendDenomUnitParams = { + value: DenomUnit, fee?: StdFee, memo?: string }; -type sendQueryAllBalancesRequestParams = { - value: QueryAllBalancesRequest, +type sendQuerySpendableBalanceByDenomRequestParams = { + value: QuerySpendableBalanceByDenomRequest, fee?: StdFee, memo?: string }; @@ -139,122 +121,122 @@ type sendQuerySupplyOfRequestParams = { memo?: string }; -type sendMsgMultiSendParams = { - value: MsgMultiSend, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryBalanceResponseParams = { - value: QueryBalanceResponse, +type sendQueryDenomOwnersResponseParams = { + value: QueryDenomOwnersResponse, fee?: StdFee, memo?: string }; -type sendQueryBalanceRequestParams = { - value: QueryBalanceRequest, +type sendQueryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse, +type sendSupplyParams = { + value: Supply, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest, +type sendQueryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse, fee?: StdFee, memo?: string }; -type sendOutputParams = { - value: Output, +type sendQueryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest, fee?: StdFee, memo?: string }; -type sendSendAuthorizationParams = { - value: SendAuthorization, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryAllBalancesResponseParams = { + value: QueryAllBalancesResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse, +type sendMsgSetSendEnabledResponseParams = { + value: MsgSetSendEnabledResponse, fee?: StdFee, memo?: string }; -type sendSupplyParams = { - value: Supply, +type sendQuerySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQuerySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse, fee?: StdFee, memo?: string }; -type sendQuerySupplyOfResponseParams = { - value: QuerySupplyOfResponse, +type sendQueryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest, +type sendBalanceParams = { + value: Balance, fee?: StdFee, memo?: string }; -type sendMetadataParams = { - value: Metadata, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersResponseParams = { - value: QueryDenomOwnersResponse, +type sendQueryBalanceResponseParams = { + value: QueryBalanceResponse, fee?: StdFee, memo?: string }; -type sendDenomOwnerParams = { - value: DenomOwner, +type sendQueryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest, +type sendQueryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse, fee?: StdFee, memo?: string }; -type sendMsgSendResponseParams = { - value: MsgSendResponse, +type sendQuerySupplyOfResponseParams = { + value: QuerySupplyOfResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; @@ -265,20 +247,26 @@ type sendQuerySendEnabledResponseParams = { memo?: string }; -type sendQuerySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse, +type sendOutputParams = { + value: Output, fee?: StdFee, memo?: string }; -type sendQueryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQuerySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest, +type sendMsgSetSendEnabledParams = { + value: MsgSetSendEnabled, + fee?: StdFee, + memo?: string +}; + +type sendQueryBalanceRequestParams = { + value: QueryBalanceRequest, fee?: StdFee, memo?: string }; @@ -289,221 +277,233 @@ type sendQueryDenomMetadataResponseParams = { memo?: string }; -type sendQuerySendEnabledRequestParams = { - value: QuerySendEnabledRequest, +type sendMsgSendParams = { + value: MsgSend, fee?: StdFee, memo?: string }; -type sendBalanceParams = { - value: Balance, +type sendMsgSendResponseParams = { + value: MsgSendResponse, fee?: StdFee, memo?: string }; -type sendMsgSendParams = { - value: MsgSend, +type sendQueryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest, fee?: StdFee, memo?: string }; -type sendMsgSetSendEnabledResponseParams = { - value: MsgSetSendEnabledResponse, +type sendDenomOwnerParams = { + value: DenomOwner, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendSendEnabledParams = { + value: SendEnabled, fee?: StdFee, memo?: string }; -type sendQueryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest, +type sendQueryDenomsMetadataRequestParams = { + value: QueryDenomsMetadataRequest, fee?: StdFee, memo?: string }; - -type queryAllBalancesResponseParams = { - value: QueryAllBalancesResponse, +type sendSendAuthorizationParams = { + value: SendAuthorization, + fee?: StdFee, + memo?: string }; -type querySpendableBalanceByDenomRequestParams = { - value: QuerySpendableBalanceByDenomRequest, +type sendInputParams = { + value: Input, + fee?: StdFee, + memo?: string }; -type querySpendableBalanceByDenomResponseParams = { - value: QuerySpendableBalanceByDenomResponse, -}; -type sendEnabledParams = { - value: SendEnabled, +type msgMultiSendParams = { + value: MsgMultiSend, }; -type msgSetSendEnabledParams = { - value: MsgSetSendEnabled, +type querySpendableBalanceByDenomResponseParams = { + value: QuerySpendableBalanceByDenomResponse, }; -type queryDenomsMetadataRequestParams = { - value: QueryDenomsMetadataRequest, +type queryAllBalancesRequestParams = { + value: QueryAllBalancesRequest, }; -type inputParams = { - value: Input, +type querySendEnabledRequestParams = { + value: QuerySendEnabledRequest, }; -type denomUnitParams = { - value: DenomUnit, +type metadataParams = { + value: Metadata, }; type msgMultiSendResponseParams = { value: MsgMultiSendResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse, }; type queryDenomOwnersRequestParams = { value: QueryDenomOwnersRequest, }; -type queryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse, +type denomUnitParams = { + value: DenomUnit, }; -type queryAllBalancesRequestParams = { - value: QueryAllBalancesRequest, +type querySpendableBalanceByDenomRequestParams = { + value: QuerySpendableBalanceByDenomRequest, }; type querySupplyOfRequestParams = { value: QuerySupplyOfRequest, }; -type msgMultiSendParams = { - value: MsgMultiSend, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryBalanceResponseParams = { - value: QueryBalanceResponse, +type queryDenomOwnersResponseParams = { + value: QueryDenomOwnersResponse, }; -type queryBalanceRequestParams = { - value: QueryBalanceRequest, +type queryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse, }; -type queryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse, +type supplyParams = { + value: Supply, }; -type queryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest, +type queryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse, }; -type outputParams = { - value: Output, +type queryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest, }; -type sendAuthorizationParams = { - value: SendAuthorization, +type genesisStateParams = { + value: GenesisState, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryAllBalancesResponseParams = { + value: QueryAllBalancesResponse, }; -type queryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse, +type msgSetSendEnabledResponseParams = { + value: MsgSetSendEnabledResponse, }; -type supplyParams = { - value: Supply, +type querySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest, }; -type genesisStateParams = { - value: GenesisState, +type querySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse, }; -type querySupplyOfResponseParams = { - value: QuerySupplyOfResponse, +type queryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest, }; -type queryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest, +type balanceParams = { + value: Balance, }; -type metadataParams = { - value: Metadata, +type paramsParams = { + value: Params, }; -type queryDenomOwnersResponseParams = { - value: QueryDenomOwnersResponse, +type queryBalanceResponseParams = { + value: QueryBalanceResponse, }; -type denomOwnerParams = { - value: DenomOwner, +type queryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest, }; -type queryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest, +type queryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse, }; -type msgSendResponseParams = { - value: MsgSendResponse, +type querySupplyOfResponseParams = { + value: QuerySupplyOfResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type querySendEnabledResponseParams = { value: QuerySendEnabledResponse, }; -type querySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse, +type outputParams = { + value: Output, }; -type queryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type querySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest, +type msgSetSendEnabledParams = { + value: MsgSetSendEnabled, +}; + +type queryBalanceRequestParams = { + value: QueryBalanceRequest, }; type queryDenomMetadataResponseParams = { value: QueryDenomMetadataResponse, }; -type querySendEnabledRequestParams = { - value: QuerySendEnabledRequest, +type msgSendParams = { + value: MsgSend, }; -type balanceParams = { - value: Balance, +type msgSendResponseParams = { + value: MsgSendResponse, }; -type msgSendParams = { - value: MsgSend, +type queryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest, }; -type msgSetSendEnabledResponseParams = { - value: MsgSetSendEnabledResponse, +type denomOwnerParams = { + value: DenomOwner, }; -type paramsParams = { - value: Params, +type sendEnabledParams = { + value: SendEnabled, }; -type queryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest, +type queryDenomsMetadataRequestParams = { + value: QueryDenomsMetadataRequest, +}; + +type sendAuthorizationParams = { + value: SendAuthorization, +}; + +type inputParams = { + value: Input, }; @@ -536,31 +536,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryAllBalancesResponse({ value, fee, memo }: sendQueryAllBalancesResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendQueryAllBalancesResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllBalancesResponse({ value: QueryAllBalancesResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendQueryAllBalancesResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: sendQuerySpendableBalanceByDenomRequestParams): Promise { + async sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgMultiSend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpendableBalanceByDenomRequest({ value: QuerySpendableBalanceByDenomRequest.fromPartial(value) }) + let msg = this.msgMultiSend({ value: MsgMultiSend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgMultiSend: Could not broadcast Tx: '+ e.message) } }, @@ -578,73 +564,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendSendEnabled({ value, fee, memo }: sendSendEnabledParams): Promise { - if (!signer) { - throw new Error('TxClient:sendSendEnabled: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.sendEnabled({ value: SendEnabled.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendSendEnabled: Could not broadcast Tx: '+ e.message) - } - }, - - async sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabled: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgSetSendEnabled: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryDenomsMetadataRequest({ value, fee, memo }: sendQueryDenomsMetadataRequestParams): Promise { + async sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomsMetadataRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllBalancesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomsMetadataRequest({ value: QueryDenomsMetadataRequest.fromPartial(value) }) + let msg = this.queryAllBalancesRequest({ value: QueryAllBalancesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomsMetadataRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllBalancesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendInput({ value, fee, memo }: sendInputParams): Promise { + async sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendInput: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySendEnabledRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.input({ value: Input.fromPartial(value) }) + let msg = this.querySendEnabledRequest({ value: QuerySendEnabledRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendInput: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySendEnabledRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise { + async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendDenomUnit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMetadata: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.denomUnit({ value: DenomUnit.fromPartial(value) }) + let msg = this.metadata({ value: Metadata.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDenomUnit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) } }, @@ -662,17 +620,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomsMetadataResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryDenomsMetadataResponse({ value: QueryDenomsMetadataResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomsMetadataResponse: Could not broadcast Tx: '+ e.message) } }, @@ -690,31 +648,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise { + async sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDenomUnit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomOwnersByQueryResponse({ value: QueryDenomOwnersByQueryResponse.fromPartial(value) }) + let msg = this.denomUnit({ value: DenomUnit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDenomUnit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise { + async sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: sendQuerySpendableBalanceByDenomRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllBalancesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllBalancesRequest({ value: QueryAllBalancesRequest.fromPartial(value) }) + let msg = this.querySpendableBalanceByDenomRequest({ value: QuerySpendableBalanceByDenomRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllBalancesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Could not broadcast Tx: '+ e.message) } }, @@ -732,59 +690,73 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryDenomOwnersResponse({ value, fee, memo }: sendQueryDenomOwnersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgMultiSend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomOwnersResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgMultiSend({ value: MsgMultiSend.fromPartial(value) }) + let msg = this.queryDenomOwnersResponse({ value: QueryDenomOwnersResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgMultiSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { + async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }) + let msg = this.queryDenomOwnersByQueryResponse({ value: QueryDenomOwnersByQueryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { + async sendSupply({ value, fee, memo }: sendSupplyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSupply: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }) + let msg = this.supply({ value: Supply.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSupply: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise { + async sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomsMetadataResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalSupplyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomsMetadataResponse({ value: QueryDenomsMetadataResponse.fromPartial(value) }) + let msg = this.queryTotalSupplyResponse({ value: QueryTotalSupplyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomsMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalSupplyResponse: Could not broadcast Tx: '+ e.message) } }, @@ -802,269 +774,269 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendOutput({ value, fee, memo }: sendOutputParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendOutput: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.output({ value: Output.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendOutput: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise { + async sendQueryAllBalancesResponse({ value, fee, memo }: sendQueryAllBalancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSendAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllBalancesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.sendAuthorization({ value: SendAuthorization.fromPartial(value) }) + let msg = this.queryAllBalancesResponse({ value: QueryAllBalancesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSendAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllBalancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSetSendEnabledResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetSendEnabledResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise { + async sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpendableBalancesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomMetadataByQueryStringResponse({ value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }) + let msg = this.querySpendableBalancesRequest({ value: QuerySpendableBalancesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalancesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSupply({ value, fee, memo }: sendSupplyParams): Promise { + async sendQuerySpendableBalancesResponse({ value, fee, memo }: sendQuerySpendableBalancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSupply: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpendableBalancesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.supply({ value: Supply.fromPartial(value) }) + let msg = this.querySpendableBalancesResponse({ value: QuerySpendableBalancesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSupply: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: sendQueryDenomOwnersByQueryRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryDenomOwnersByQueryRequest({ value: QueryDenomOwnersByQueryRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise { + async sendBalance({ value, fee, memo }: sendBalanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySupplyOfResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBalance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySupplyOfResponse({ value: QuerySupplyOfResponse.fromPartial(value) }) + let msg = this.balance({ value: Balance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySupplyOfResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBalance: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomMetadataRequest({ value: QueryDenomMetadataRequest.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomMetadataRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { + async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadata: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBalanceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.metadata({ value: Metadata.fromPartial(value) }) + let msg = this.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersResponse({ value, fee, memo }: sendQueryDenomOwnersResponseParams): Promise { + async sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalSupplyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomOwnersResponse({ value: QueryDenomOwnersResponse.fromPartial(value) }) + let msg = this.queryTotalSupplyRequest({ value: QueryTotalSupplyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomOwnersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalSupplyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDenomOwner({ value, fee, memo }: sendDenomOwnerParams): Promise { + async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDenomOwner: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.denomOwner({ value: DenomOwner.fromPartial(value) }) + let msg = this.queryDenomMetadataByQueryStringResponse({ value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDenomOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: sendQueryDenomOwnersByQueryRequestParams): Promise { + async sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySupplyOfResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomOwnersByQueryRequest({ value: QueryDenomOwnersByQueryRequest.fromPartial(value) }) + let msg = this.querySupplyOfResponse({ value: QuerySupplyOfResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySupplyOfResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendResponse({ value, fee, memo }: sendMsgSendResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSendResponse({ value: MsgSendResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQuerySendEnabledResponse({ value, fee, memo }: sendQuerySendEnabledResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySendEnabledResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.querySendEnabledResponse({ value: QuerySendEnabledResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySendEnabledResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySendEnabledResponse({ value, fee, memo }: sendQuerySendEnabledResponseParams): Promise { + async sendOutput({ value, fee, memo }: sendOutputParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendOutput: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySendEnabledResponse({ value: QuerySendEnabledResponse.fromPartial(value) }) + let msg = this.output({ value: Output.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySendEnabledResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendOutput: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpendableBalancesResponse({ value, fee, memo }: sendQuerySpendableBalancesResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpendableBalancesResponse({ value: QuerySpendableBalancesResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpendableBalancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise { + async sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSetSendEnabled: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalSupplyResponse({ value: QueryTotalSupplyResponse.fromPartial(value) }) + let msg = this.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalSupplyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetSendEnabled: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise { + async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBalanceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpendableBalancesRequest({ value: QuerySpendableBalancesRequest.fromPartial(value) }) + let msg = this.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpendableBalancesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1082,152 +1054,156 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise { + async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySendEnabledRequest({ value: QuerySendEnabledRequest.fromPartial(value) }) + let msg = this.msgSend({ value: MsgSend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySendEnabledRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: '+ e.message) } }, - async sendBalance({ value, fee, memo }: sendBalanceParams): Promise { + async sendMsgSendResponse({ value, fee, memo }: sendMsgSendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBalance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSendResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.balance({ value: Balance.fromPartial(value) }) + let msg = this.msgSendResponse({ value: MsgSendResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBalance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { + async sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomMetadataRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSend({ value: MsgSend.fromPartial(value) }) + let msg = this.queryDenomMetadataRequest({ value: QueryDenomMetadataRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomMetadataRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise { + async sendDenomOwner({ value, fee, memo }: sendDenomOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabledResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDenomOwner: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.fromPartial(value) }) + let msg = this.denomOwner({ value: DenomOwner.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSetSendEnabledResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDenomOwner: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendSendEnabled({ value, fee, memo }: sendSendEnabledParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSendEnabled: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.sendEnabled({ value: SendEnabled.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSendEnabled: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise { + async sendQueryDenomsMetadataRequest({ value, fee, memo }: sendQueryDenomsMetadataRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomsMetadataRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalSupplyRequest({ value: QueryTotalSupplyRequest.fromPartial(value) }) + let msg = this.queryDenomsMetadataRequest({ value: QueryDenomsMetadataRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalSupplyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomsMetadataRequest: Could not broadcast Tx: '+ e.message) } }, - - queryAllBalancesResponse({ value }: queryAllBalancesResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial( value ) } + async sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise { + if (!signer) { + throw new Error('TxClient:sendSendAuthorization: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.sendAuthorization({ value: SendAuthorization.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendSendAuthorization: Could not broadcast Tx: '+ e.message) } }, - querySpendableBalanceByDenomRequest({ value }: querySpendableBalanceByDenomRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", value: QuerySpendableBalanceByDenomRequest.fromPartial( value ) } + async sendInput({ value, fee, memo }: sendInputParams): Promise { + if (!signer) { + throw new Error('TxClient:sendInput: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.input({ value: Input.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalanceByDenomRequest: Could not create message: ' + e.message) + throw new Error('TxClient:sendInput: Could not broadcast Tx: '+ e.message) } }, - querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message) - } - }, - sendEnabled({ value }: sendEnabledParams): EncodeObject { + msgMultiSend({ value }: msgMultiSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message) + throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message) } }, - msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject { + querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message) } }, - queryDenomsMetadataRequest({ value }: queryDenomsMetadataRequestParams): EncodeObject { + queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", value: QueryDenomsMetadataRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomsMetadataRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message) } }, - input({ value }: inputParams): EncodeObject { + querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Input: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message) } }, - denomUnit({ value }: denomUnitParams): EncodeObject { + metadata({ value }: metadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message) + throw new Error('TxClient:Metadata: Could not create message: ' + e.message) } }, @@ -1239,11 +1215,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message) } }, @@ -1255,19 +1231,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject { + denomUnit({ value }: denomUnitParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message) } }, - queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject { + querySpendableBalanceByDenomRequest({ value }: querySpendableBalanceByDenomRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", value: QuerySpendableBalanceByDenomRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalanceByDenomRequest: Could not create message: ' + e.message) } }, @@ -1279,163 +1255,163 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgMultiSend({ value }: msgMultiSendParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject { + queryDenomOwnersResponse({ value }: queryDenomOwnersResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", value: QueryDenomOwnersResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomOwnersResponse: Could not create message: ' + e.message) } }, - queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject { + queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message) } }, - queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject { + supply({ value }: supplyParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Supply", value: Supply.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Supply: Could not create message: ' + e.message) } }, - queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject { + queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalSupplyResponse: Could not create message: ' + e.message) } }, - output({ value }: outputParams): EncodeObject { + queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Output: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message) } }, - sendAuthorization({ value }: sendAuthorizationParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryAllBalancesResponse({ value }: queryAllBalancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message) } }, - queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject { + msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetSendEnabledResponse: Could not create message: ' + e.message) } }, - supply({ value }: supplyParams): EncodeObject { + querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Supply", value: Supply.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Supply: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + querySpendableBalancesResponse({ value }: querySpendableBalancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message) } }, - querySupplyOfResponse({ value }: querySupplyOfResponseParams): EncodeObject { + queryDenomOwnersByQueryRequest({ value }: queryDenomOwnersByQueryRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", value: QuerySupplyOfResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", value: QueryDenomOwnersByQueryRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySupplyOfResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomOwnersByQueryRequest: Could not create message: ' + e.message) } }, - queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject { + balance({ value }: balanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Balance: Could not create message: ' + e.message) } }, - metadata({ value }: metadataParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryDenomOwnersResponse({ value }: queryDenomOwnersResponseParams): EncodeObject { + queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", value: QueryDenomOwnersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message) } }, - denomOwner({ value }: denomOwnerParams): EncodeObject { + queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message) } }, - queryDenomOwnersByQueryRequest({ value }: queryDenomOwnersByQueryRequestParams): EncodeObject { + queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", value: QueryDenomOwnersByQueryRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersByQueryRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message) } }, - msgSendResponse({ value }: msgSendResponseParams): EncodeObject { + querySupplyOfResponse({ value }: querySupplyOfResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", value: QuerySupplyOfResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySupplyOfResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, @@ -1447,27 +1423,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - querySpendableBalancesResponse({ value }: querySpendableBalancesResponseParams): EncodeObject { + output({ value }: outputParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Output: Could not create message: ' + e.message) } }, - queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalSupplyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject { + msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message) + } + }, + + queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message) } }, @@ -1479,51 +1463,67 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject { + msgSend({ value }: msgSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) } }, - balance({ value }: balanceParams): EncodeObject { + msgSendResponse({ value }: msgSendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Balance: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message) } }, - msgSend({ value }: msgSendParams): EncodeObject { + queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message) } }, - msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject { + denomOwner({ value }: denomOwnerParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetSendEnabledResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + sendEnabled({ value }: sendEnabledParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message) } }, - queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject { + queryDenomsMetadataRequest({ value }: queryDenomsMetadataRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", value: QueryDenomsMetadataRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomsMetadataRequest: Could not create message: ' + e.message) + } + }, + + sendAuthorization({ value }: sendAuthorizationParams): EncodeObject { + try { + return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message) + } + }, + + input({ value }: inputParams): EncodeObject { + try { + return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:Input: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.bank.v1beta1/registry.ts b/ts-client/cosmos.bank.v1beta1/registry.ts index 9a35b975..dfd5c22c 100755 --- a/ts-client/cosmos.bank.v1beta1/registry.ts +++ b/ts-client/cosmos.bank.v1beta1/registry.ts @@ -1,96 +1,96 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; -import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; -import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; -import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; -import { Supply } from "./types/cosmos/bank/v1beta1/bank"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; +import { Supply } from "./types/cosmos/bank/v1beta1/bank"; import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; +import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; +import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.bank.v1beta1.QueryAllBalancesResponse", QueryAllBalancesResponse], - ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], + ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", QuerySpendableBalanceByDenomResponse], - ["/cosmos.bank.v1beta1.SendEnabled", SendEnabled], - ["/cosmos.bank.v1beta1.MsgSetSendEnabled", MsgSetSendEnabled], - ["/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", QueryDenomsMetadataRequest], - ["/cosmos.bank.v1beta1.Input", Input], - ["/cosmos.bank.v1beta1.DenomUnit", DenomUnit], + ["/cosmos.bank.v1beta1.QueryAllBalancesRequest", QueryAllBalancesRequest], + ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], + ["/cosmos.bank.v1beta1.Metadata", Metadata], ["/cosmos.bank.v1beta1.MsgMultiSendResponse", MsgMultiSendResponse], - ["/cosmos.bank.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], ["/cosmos.bank.v1beta1.QueryDenomOwnersRequest", QueryDenomOwnersRequest], - ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", QueryDenomOwnersByQueryResponse], - ["/cosmos.bank.v1beta1.QueryAllBalancesRequest", QueryAllBalancesRequest], + ["/cosmos.bank.v1beta1.DenomUnit", DenomUnit], + ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], ["/cosmos.bank.v1beta1.QuerySupplyOfRequest", QuerySupplyOfRequest], - ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], - ["/cosmos.bank.v1beta1.QueryBalanceResponse", QueryBalanceResponse], - ["/cosmos.bank.v1beta1.QueryBalanceRequest", QueryBalanceRequest], - ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], - ["/cosmos.bank.v1beta1.Output", Output], - ["/cosmos.bank.v1beta1.SendAuthorization", SendAuthorization], - ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], - ["/cosmos.bank.v1beta1.Supply", Supply], - ["/cosmos.bank.v1beta1.GenesisState", GenesisState], - ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], - ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], - ["/cosmos.bank.v1beta1.Metadata", Metadata], - ["/cosmos.bank.v1beta1.QueryDenomOwnersResponse", QueryDenomOwnersResponse], - ["/cosmos.bank.v1beta1.DenomOwner", DenomOwner], - ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", QueryDenomOwnersByQueryRequest], - ["/cosmos.bank.v1beta1.MsgSendResponse", MsgSendResponse], - ["/cosmos.bank.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.bank.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.bank.v1beta1.QuerySendEnabledResponse", QuerySendEnabledResponse], - ["/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", QuerySpendableBalancesResponse], + ["/cosmos.bank.v1beta1.QueryDenomOwnersResponse", QueryDenomOwnersResponse], + ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", QueryDenomOwnersByQueryResponse], + ["/cosmos.bank.v1beta1.Supply", Supply], ["/cosmos.bank.v1beta1.QueryTotalSupplyResponse", QueryTotalSupplyResponse], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], + ["/cosmos.bank.v1beta1.GenesisState", GenesisState], + ["/cosmos.bank.v1beta1.QueryAllBalancesResponse", QueryAllBalancesResponse], + ["/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", MsgSetSendEnabledResponse], ["/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", QuerySpendableBalancesRequest], - ["/cosmos.bank.v1beta1.QueryDenomMetadataResponse", QueryDenomMetadataResponse], - ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], + ["/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", QuerySpendableBalancesResponse], + ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", QueryDenomOwnersByQueryRequest], ["/cosmos.bank.v1beta1.Balance", Balance], - ["/cosmos.bank.v1beta1.MsgSend", MsgSend], - ["/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", MsgSetSendEnabledResponse], ["/cosmos.bank.v1beta1.Params", Params], + ["/cosmos.bank.v1beta1.QueryBalanceResponse", QueryBalanceResponse], ["/cosmos.bank.v1beta1.QueryTotalSupplyRequest", QueryTotalSupplyRequest], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], + ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], + ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.bank.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.bank.v1beta1.QuerySendEnabledResponse", QuerySendEnabledResponse], + ["/cosmos.bank.v1beta1.Output", Output], + ["/cosmos.bank.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.bank.v1beta1.MsgSetSendEnabled", MsgSetSendEnabled], + ["/cosmos.bank.v1beta1.QueryBalanceRequest", QueryBalanceRequest], + ["/cosmos.bank.v1beta1.QueryDenomMetadataResponse", QueryDenomMetadataResponse], + ["/cosmos.bank.v1beta1.MsgSend", MsgSend], + ["/cosmos.bank.v1beta1.MsgSendResponse", MsgSendResponse], + ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], + ["/cosmos.bank.v1beta1.DenomOwner", DenomOwner], + ["/cosmos.bank.v1beta1.SendEnabled", SendEnabled], + ["/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", QueryDenomsMetadataRequest], + ["/cosmos.bank.v1beta1.SendAuthorization", SendAuthorization], + ["/cosmos.bank.v1beta1.Input", Input], ]; diff --git a/ts-client/cosmos.bank.v1beta1/rest.ts b/ts-client/cosmos.bank.v1beta1/rest.ts index 952674bd..1add3491 100644 --- a/ts-client/cosmos.bank.v1beta1/rest.ts +++ b/ts-client/cosmos.bank.v1beta1/rest.ts @@ -9,6 +9,191 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export interface DenomOwner { + address?: string; + balance?: { denom?: string; amount?: string }; +} + +export interface DenomUnit { + denom?: string; + + /** @format int64 */ + exponent?: number; + aliases?: string[]; +} + +export interface Metadata { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryAllBalancesResponse { + balances?: { denom?: string; amount?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryBalanceResponse { + balance?: { denom?: string; amount?: string }; +} + +export interface QueryDenomMetadataByQueryStringResponse { + metadata?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }; +} + +export interface QueryDenomMetadataResponse { + metadata?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }; +} + +export interface QueryDenomOwnersByQueryResponse { + denom_owners?: { address?: string; balance?: { denom?: string; amount?: string } }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryDenomOwnersResponse { + denom_owners?: { address?: string; balance?: { denom?: string; amount?: string } }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryDenomsMetadataResponse { + metadatas?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryParamsResponse { + params?: { send_enabled?: { denom?: string; enabled?: boolean }[]; default_send_enabled?: boolean }; +} + +export interface QuerySendEnabledResponse { + send_enabled?: { denom?: string; enabled?: boolean }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QuerySpendableBalanceByDenomResponse { + balance?: { denom?: string; amount?: string }; +} + +export interface QuerySpendableBalancesResponse { + balances?: { denom?: string; amount?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QuerySupplyOfResponse { + amount?: { denom?: string; amount?: string }; +} + +export interface QueryTotalSupplyResponse { + supply?: { denom?: string; amount?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface V1Beta1Params { + send_enabled?: { denom?: string; enabled?: boolean }[]; + default_send_enabled?: boolean; +} + +export interface V1Beta1SendEnabled { + denom?: string; + enabled?: boolean; +} + +export interface Input { + address?: string; + coins?: { denom?: string; amount?: string }[]; +} + +export type MsgMultiSendResponse = object; + +export type MsgSendResponse = object; + +export type MsgSetSendEnabledResponse = object; + +export type MsgUpdateParamsResponse = object; + +export interface Output { + address?: string; + coins?: { denom?: string; amount?: string }[]; +} + +export interface Params { + send_enabled?: { denom?: string; enabled?: boolean }[]; + default_send_enabled?: boolean; +} + +export interface SendEnabled { + denom?: string; + enabled?: boolean; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +317,345 @@ export class HttpClient { /** * @title HTTP API Console cosmos.bank.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAllBalances + * @request GET:/cosmos/bank/v1beta1/balances/{address} + */ + queryAllBalances = ( + address: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + resolve_denom?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { balances?: { denom?: string; amount?: string }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryBalance + * @request GET:/cosmos/bank/v1beta1/balances/{address}/by_denom + */ + queryBalance = (address: string, query?: { denom?: string }, params: RequestParams = {}) => + this.request< + { balance?: { denom?: string; amount?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}/by_denom`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDenomOwners + * @request GET:/cosmos/bank/v1beta1/denom_owners/{denom} + */ + queryDenomOwners = ( + denom: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + denom_owners?: { address?: string; balance?: { denom?: string; amount?: string } }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/denom_owners/${denom}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDenomOwnersByQuery + * @request GET:/cosmos/bank/v1beta1/denom_owners_by_query + */ + queryDenomOwnersByQuery = ( + query?: { + denom?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + denom_owners?: { address?: string; balance?: { denom?: string; amount?: string } }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/denom_owners_by_query`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDenomsMetadata + * @request GET:/cosmos/bank/v1beta1/denoms_metadata + */ + queryDenomsMetadata = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + metadatas?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDenomMetadata + * @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom} + */ + queryDenomMetadata = (denom: string, params: RequestParams = {}) => + this.request< + { + metadata?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata/${denom}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDenomMetadataByQueryString + * @request GET:/cosmos/bank/v1beta1/denoms_metadata_by_query_string + */ + queryDenomMetadataByQueryString = (query?: { denom?: string }, params: RequestParams = {}) => + this.request< + { + metadata?: { + description?: string; + denom_units?: { denom?: string; exponent?: number; aliases?: string[] }[]; + base?: string; + display?: string; + name?: string; + symbol?: string; + uri?: string; + uri_hash?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata_by_query_string`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/bank/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { params?: { send_enabled?: { denom?: string; enabled?: boolean }[]; default_send_enabled?: boolean } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/params`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySendEnabled + * @request GET:/cosmos/bank/v1beta1/send_enabled + */ + querySendEnabled = ( + query?: { + denoms?: string[]; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { send_enabled?: { denom?: string; enabled?: boolean }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/send_enabled`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySpendableBalances + * @request GET:/cosmos/bank/v1beta1/spendable_balances/{address} + */ + querySpendableBalances = ( + address: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { balances?: { denom?: string; amount?: string }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/spendable_balances/${address}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySpendableBalanceByDenom + * @request GET:/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom + */ + querySpendableBalanceByDenom = (address: string, query?: { denom?: string }, params: RequestParams = {}) => + this.request< + { balance?: { denom?: string; amount?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/spendable_balances/${address}/by_denom`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryTotalSupply + * @request GET:/cosmos/bank/v1beta1/supply + */ + queryTotalSupply = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { supply?: { denom?: string; amount?: string }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/supply`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySupplyOf + * @request GET:/cosmos/bank/v1beta1/supply/by_denom + */ + querySupplyOf = (query?: { denom?: string }, params: RequestParams = {}) => + this.request< + { amount?: { denom?: string; amount?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/bank/v1beta1/supply/by_denom`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.base.node.v1beta1/api.swagger.yml b/ts-client/cosmos.base.node.v1beta1/api.swagger.yml index 90b06057..94fd205c 100644 --- a/ts-client/cosmos.base.node.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.base.node.v1beta1/api.swagger.yml @@ -3,3 +3,139 @@ info: title: HTTP API Console cosmos.base.node.v1beta1 name: '' description: '' +paths: + /cosmos/base/node/v1beta1/config: + get: + operationId: Service_Config + responses: + '200': + description: A successful response. + schema: + type: object + properties: + minimum_gas_price: + type: string + pruning_keep_recent: + type: string + pruning_interval: + type: string + halt_height: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Service + /cosmos/base/node/v1beta1/status: + get: + operationId: Service_Status + responses: + '200': + description: A successful response. + schema: + type: object + properties: + earliest_store_height: + type: string + format: uint64 + height: + type: string + format: uint64 + timestamp: + type: string + format: date-time + app_hash: + type: string + format: byte + validator_hash: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Service +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + ConfigResponse: + type: object + properties: + minimum_gas_price: + type: string + pruning_keep_recent: + type: string + pruning_interval: + type: string + halt_height: + type: string + format: uint64 + StatusResponse: + type: object + properties: + earliest_store_height: + type: string + format: uint64 + height: + type: string + format: uint64 + timestamp: + type: string + format: date-time + app_hash: + type: string + format: byte + validator_hash: + type: string + format: byte + rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} diff --git a/ts-client/cosmos.base.node.v1beta1/rest.ts b/ts-client/cosmos.base.node.v1beta1/rest.ts index ba1d4529..ddd9b9c1 100644 --- a/ts-client/cosmos.base.node.v1beta1/rest.ts +++ b/ts-client/cosmos.base.node.v1beta1/rest.ts @@ -9,6 +9,43 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface ConfigResponse { + minimum_gas_price?: string; + pruning_keep_recent?: string; + pruning_interval?: string; + + /** @format uint64 */ + halt_height?: string; +} + +export interface StatusResponse { + /** @format uint64 */ + earliest_store_height?: string; + + /** @format uint64 */ + height?: string; + + /** @format date-time */ + timestamp?: string; + + /** @format byte */ + app_hash?: string; + + /** @format byte */ + validator_hash?: string; +} + +export interface RpcStatus { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +169,44 @@ export class HttpClient { /** * @title HTTP API Console cosmos.base.node.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Service + * @name ServiceConfig + * @request GET:/cosmos/base/node/v1beta1/config + */ + serviceConfig = (params: RequestParams = {}) => + this.request< + { minimum_gas_price?: string; pruning_keep_recent?: string; pruning_interval?: string; halt_height?: string }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/node/v1beta1/config`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceStatus + * @request GET:/cosmos/base/node/v1beta1/status + */ + serviceStatus = (params: RequestParams = {}) => + this.request< + { + earliest_store_height?: string; + height?: string; + timestamp?: string; + app_hash?: string; + validator_hash?: string; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/node/v1beta1/status`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.base.tendermint.v1beta1/api.swagger.yml b/ts-client/cosmos.base.tendermint.v1beta1/api.swagger.yml index cb3f90d3..b66212bf 100644 --- a/ts-client/cosmos.base.tendermint.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.base.tendermint.v1beta1/api.swagger.yml @@ -3,3 +3,6847 @@ info: title: HTTP API Console cosmos.base.tendermint.v1beta1 name: '' description: '' +paths: + /cosmos/base/tendermint/v1beta1/abci_query: + get: + operationId: Service_ABCIQuery + responses: + '200': + description: A successful response. + schema: + type: object + properties: + code: + type: integer + format: int64 + log: + type: string + info: + type: string + index: + type: string + format: int64 + key: + type: string + format: byte + value: + type: string + format: byte + proof_ops: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + height: + type: string + format: int64 + codespace: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: data + in: query + required: false + type: string + format: byte + - name: path + in: query + required: false + type: string + - name: height + in: query + required: false + type: string + format: int64 + - name: prove + in: query + required: false + type: boolean + tags: + - Service + /cosmos/base/tendermint/v1beta1/blocks/latest: + get: + operationId: Service_GetLatestBlock + responses: + '200': + description: A successful response. + schema: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Service + /cosmos/base/tendermint/v1beta1/blocks/{height}: + get: + operationId: Service_GetBlockByHeight + responses: + '200': + description: A successful response. + schema: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: height + in: path + required: true + type: string + format: int64 + tags: + - Service + /cosmos/base/tendermint/v1beta1/node_info: + get: + operationId: Service_GetNodeInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + default_node_info: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + application_version: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + version: + type: string + sum: + type: string + cosmos_sdk_version: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Service + /cosmos/base/tendermint/v1beta1/syncing: + get: + operationId: Service_GetSyncing + responses: + '200': + description: A successful response. + schema: + type: object + properties: + syncing: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Service + /cosmos/base/tendermint/v1beta1/validatorsets/latest: + get: + operationId: Service_GetLatestValidatorSet + responses: + '200': + description: A successful response. + schema: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Service + /cosmos/base/tendermint/v1beta1/validatorsets/{height}: + get: + operationId: Service_GetValidatorSetByHeight + responses: + '200': + description: A successful response. + schema: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: height + in: path + required: true + type: string + format: int64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Service +definitions: + ABCIQueryResponse: + type: object + properties: + code: + type: integer + format: int64 + log: + type: string + info: + type: string + index: + type: string + format: int64 + key: + type: string + format: byte + value: + type: string + format: byte + proof_ops: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + height: + type: string + format: int64 + codespace: + type: string + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + BlockID: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + BlockIDFlag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + Commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + CommitSig: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + Data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + DefaultNodeInfo: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + DefaultNodeInfoOther: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + DuplicateVoteEvidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + Evidence: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + EvidenceList: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + GetBlockByHeightResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + GetLatestBlockResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + GetLatestValidatorSetResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + GetNodeInfoResponse: + type: object + properties: + default_node_info: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + application_version: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + version: + type: string + sum: + type: string + cosmos_sdk_version: + type: string + GetSyncingResponse: + type: object + properties: + syncing: + type: boolean + GetValidatorSetByHeightResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + LightBlock: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + LightClientAttackEvidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + Module: + type: object + properties: + path: + type: string + version: + type: string + sum: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + ProtocolVersion: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + PublicKey: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + SignedHeader: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + SignedMsgType: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + ValidatorSet: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + VersionInfo: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + version: + type: string + sum: + type: string + cosmos_sdk_version: + type: string + Vote: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + types.Block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + types.Header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + types.Validator: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + v1beta1.Block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + v1beta1.Header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + v1beta1.ProofOp: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + v1beta1.ProofOps: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + v1beta1.Validator: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 diff --git a/ts-client/cosmos.base.tendermint.v1beta1/module.ts b/ts-client/cosmos.base.tendermint.v1beta1/module.ts index e2bb51f0..77ffac84 100755 --- a/ts-client/cosmos.base.tendermint.v1beta1/module.ts +++ b/ts-client/cosmos.base.tendermint.v1beta1/module.ts @@ -6,111 +6,105 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOp } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ProofOp } from "./types/cosmos/base/tendermint/v1beta1/query"; -export { GetLatestValidatorSetResponse, GetBlockByHeightRequest, GetLatestBlockRequest, GetNodeInfoResponse, ABCIQueryRequest, GetBlockByHeightResponse, VersionInfo, Validator, GetSyncingRequest, ProofOp, Header, GetSyncingResponse, GetNodeInfoRequest, ABCIQueryResponse, GetLatestBlockResponse, Module, Block, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ProofOps, GetLatestValidatorSetRequest }; - -type sendGetLatestValidatorSetResponseParams = { - value: GetLatestValidatorSetResponse, - fee?: StdFee, - memo?: string -}; +export { GetSyncingRequest, GetNodeInfoRequest, Header, GetBlockByHeightResponse, GetBlockByHeightRequest, GetSyncingResponse, Module, ABCIQueryResponse, GetValidatorSetByHeightRequest, Block, GetLatestBlockRequest, ProofOps, GetLatestValidatorSetRequest, GetLatestBlockResponse, VersionInfo, GetValidatorSetByHeightResponse, Validator, ABCIQueryRequest, GetLatestValidatorSetResponse, GetNodeInfoResponse, ProofOp }; -type sendGetBlockByHeightRequestParams = { - value: GetBlockByHeightRequest, +type sendGetSyncingRequestParams = { + value: GetSyncingRequest, fee?: StdFee, memo?: string }; -type sendGetLatestBlockRequestParams = { - value: GetLatestBlockRequest, +type sendGetNodeInfoRequestParams = { + value: GetNodeInfoRequest, fee?: StdFee, memo?: string }; -type sendGetNodeInfoResponseParams = { - value: GetNodeInfoResponse, +type sendHeaderParams = { + value: Header, fee?: StdFee, memo?: string }; -type sendABCIQueryRequestParams = { - value: ABCIQueryRequest, +type sendGetBlockByHeightResponseParams = { + value: GetBlockByHeightResponse, fee?: StdFee, memo?: string }; -type sendGetBlockByHeightResponseParams = { - value: GetBlockByHeightResponse, +type sendGetBlockByHeightRequestParams = { + value: GetBlockByHeightRequest, fee?: StdFee, memo?: string }; -type sendVersionInfoParams = { - value: VersionInfo, +type sendGetSyncingResponseParams = { + value: GetSyncingResponse, fee?: StdFee, memo?: string }; -type sendValidatorParams = { - value: Validator, +type sendModuleParams = { + value: Module, fee?: StdFee, memo?: string }; -type sendGetSyncingRequestParams = { - value: GetSyncingRequest, +type sendABCIQueryResponseParams = { + value: ABCIQueryResponse, fee?: StdFee, memo?: string }; -type sendProofOpParams = { - value: ProofOp, +type sendGetValidatorSetByHeightRequestParams = { + value: GetValidatorSetByHeightRequest, fee?: StdFee, memo?: string }; -type sendHeaderParams = { - value: Header, +type sendBlockParams = { + value: Block, fee?: StdFee, memo?: string }; -type sendGetSyncingResponseParams = { - value: GetSyncingResponse, +type sendGetLatestBlockRequestParams = { + value: GetLatestBlockRequest, fee?: StdFee, memo?: string }; -type sendGetNodeInfoRequestParams = { - value: GetNodeInfoRequest, +type sendProofOpsParams = { + value: ProofOps, fee?: StdFee, memo?: string }; -type sendABCIQueryResponseParams = { - value: ABCIQueryResponse, +type sendGetLatestValidatorSetRequestParams = { + value: GetLatestValidatorSetRequest, fee?: StdFee, memo?: string }; @@ -121,125 +115,131 @@ type sendGetLatestBlockResponseParams = { memo?: string }; -type sendModuleParams = { - value: Module, +type sendVersionInfoParams = { + value: VersionInfo, fee?: StdFee, memo?: string }; -type sendBlockParams = { - value: Block, +type sendGetValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse, fee?: StdFee, memo?: string }; -type sendGetValidatorSetByHeightRequestParams = { - value: GetValidatorSetByHeightRequest, +type sendValidatorParams = { + value: Validator, fee?: StdFee, memo?: string }; -type sendGetValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse, +type sendABCIQueryRequestParams = { + value: ABCIQueryRequest, fee?: StdFee, memo?: string }; -type sendProofOpsParams = { - value: ProofOps, +type sendGetLatestValidatorSetResponseParams = { + value: GetLatestValidatorSetResponse, fee?: StdFee, memo?: string }; -type sendGetLatestValidatorSetRequestParams = { - value: GetLatestValidatorSetRequest, +type sendGetNodeInfoResponseParams = { + value: GetNodeInfoResponse, fee?: StdFee, memo?: string }; - -type getLatestValidatorSetResponseParams = { - value: GetLatestValidatorSetResponse, +type sendProofOpParams = { + value: ProofOp, + fee?: StdFee, + memo?: string }; -type getBlockByHeightRequestParams = { - value: GetBlockByHeightRequest, -}; -type getLatestBlockRequestParams = { - value: GetLatestBlockRequest, +type getSyncingRequestParams = { + value: GetSyncingRequest, }; -type getNodeInfoResponseParams = { - value: GetNodeInfoResponse, +type getNodeInfoRequestParams = { + value: GetNodeInfoRequest, }; -type abciqueryRequestParams = { - value: ABCIQueryRequest, +type headerParams = { + value: Header, }; type getBlockByHeightResponseParams = { value: GetBlockByHeightResponse, }; -type versionInfoParams = { - value: VersionInfo, +type getBlockByHeightRequestParams = { + value: GetBlockByHeightRequest, }; -type validatorParams = { - value: Validator, +type getSyncingResponseParams = { + value: GetSyncingResponse, }; -type getSyncingRequestParams = { - value: GetSyncingRequest, +type moduleParams = { + value: Module, }; -type proofOpParams = { - value: ProofOp, +type abciqueryResponseParams = { + value: ABCIQueryResponse, }; -type headerParams = { - value: Header, +type getValidatorSetByHeightRequestParams = { + value: GetValidatorSetByHeightRequest, }; -type getSyncingResponseParams = { - value: GetSyncingResponse, +type blockParams = { + value: Block, }; -type getNodeInfoRequestParams = { - value: GetNodeInfoRequest, +type getLatestBlockRequestParams = { + value: GetLatestBlockRequest, }; -type abciqueryResponseParams = { - value: ABCIQueryResponse, +type proofOpsParams = { + value: ProofOps, +}; + +type getLatestValidatorSetRequestParams = { + value: GetLatestValidatorSetRequest, }; type getLatestBlockResponseParams = { value: GetLatestBlockResponse, }; -type moduleParams = { - value: Module, +type versionInfoParams = { + value: VersionInfo, }; -type blockParams = { - value: Block, +type getValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse, }; -type getValidatorSetByHeightRequestParams = { - value: GetValidatorSetByHeightRequest, +type validatorParams = { + value: Validator, }; -type getValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse, +type abciqueryRequestParams = { + value: ABCIQueryRequest, }; -type proofOpsParams = { - value: ProofOps, +type getLatestValidatorSetResponseParams = { + value: GetLatestValidatorSetResponse, }; -type getLatestValidatorSetRequestParams = { - value: GetLatestValidatorSetRequest, +type getNodeInfoResponseParams = { + value: GetNodeInfoResponse, +}; + +type proofOpParams = { + value: ProofOp, }; @@ -272,466 +272,466 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGetLatestValidatorSetResponse({ value, fee, memo }: sendGetLatestValidatorSetResponseParams): Promise { + async sendGetSyncingRequest({ value, fee, memo }: sendGetSyncingRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetSyncingRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getLatestValidatorSetResponse({ value: GetLatestValidatorSetResponse.fromPartial(value) }) + let msg = this.getSyncingRequest({ value: GetSyncingRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetLatestValidatorSetResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetSyncingRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise { + async sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockByHeightRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetNodeInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getBlockByHeightRequest({ value: GetBlockByHeightRequest.fromPartial(value) }) + let msg = this.getNodeInfoRequest({ value: GetNodeInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetBlockByHeightRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetNodeInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestBlockRequest({ value, fee, memo }: sendGetLatestBlockRequestParams): Promise { + async sendHeader({ value, fee, memo }: sendHeaderParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestBlockRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendHeader: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getLatestBlockRequest({ value: GetLatestBlockRequest.fromPartial(value) }) + let msg = this.header({ value: Header.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetLatestBlockRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHeader: Could not broadcast Tx: '+ e.message) } }, - async sendGetNodeInfoResponse({ value, fee, memo }: sendGetNodeInfoResponseParams): Promise { + async sendGetBlockByHeightResponse({ value, fee, memo }: sendGetBlockByHeightResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetNodeInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetBlockByHeightResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getNodeInfoResponse({ value: GetNodeInfoResponse.fromPartial(value) }) + let msg = this.getBlockByHeightResponse({ value: GetBlockByHeightResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetNodeInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockByHeightResponse: Could not broadcast Tx: '+ e.message) } }, - async sendABCIQueryRequest({ value, fee, memo }: sendABCIQueryRequestParams): Promise { + async sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendABCIQueryRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetBlockByHeightRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.abciqueryRequest({ value: ABCIQueryRequest.fromPartial(value) }) + let msg = this.getBlockByHeightRequest({ value: GetBlockByHeightRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendABCIQueryRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockByHeightRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockByHeightResponse({ value, fee, memo }: sendGetBlockByHeightResponseParams): Promise { + async sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockByHeightResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetSyncingResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getBlockByHeightResponse({ value: GetBlockByHeightResponse.fromPartial(value) }) + let msg = this.getSyncingResponse({ value: GetSyncingResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetBlockByHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetSyncingResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise { + async sendModule({ value, fee, memo }: sendModuleParams): Promise { if (!signer) { - throw new Error('TxClient:sendVersionInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModule: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.versionInfo({ value: VersionInfo.fromPartial(value) }) + let msg = this.module({ value: Module.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVersionInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModule: Could not broadcast Tx: '+ e.message) } }, - async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { + async sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendABCIQueryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validator({ value: Validator.fromPartial(value) }) + let msg = this.abciqueryResponse({ value: ABCIQueryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendABCIQueryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetSyncingRequest({ value, fee, memo }: sendGetSyncingRequestParams): Promise { + async sendGetValidatorSetByHeightRequest({ value, fee, memo }: sendGetValidatorSetByHeightRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetSyncingRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getSyncingRequest({ value: GetSyncingRequest.fromPartial(value) }) + let msg = this.getValidatorSetByHeightRequest({ value: GetValidatorSetByHeightRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetSyncingRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Could not broadcast Tx: '+ e.message) } }, - async sendProofOp({ value, fee, memo }: sendProofOpParams): Promise { + async sendBlock({ value, fee, memo }: sendBlockParams): Promise { if (!signer) { - throw new Error('TxClient:sendProofOp: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBlock: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.proofOp({ value: ProofOp.fromPartial(value) }) + let msg = this.block({ value: Block.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendProofOp: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBlock: Could not broadcast Tx: '+ e.message) } }, - async sendHeader({ value, fee, memo }: sendHeaderParams): Promise { + async sendGetLatestBlockRequest({ value, fee, memo }: sendGetLatestBlockRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendHeader: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetLatestBlockRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.header({ value: Header.fromPartial(value) }) + let msg = this.getLatestBlockRequest({ value: GetLatestBlockRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendHeader: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestBlockRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise { + async sendProofOps({ value, fee, memo }: sendProofOpsParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetSyncingResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendProofOps: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getSyncingResponse({ value: GetSyncingResponse.fromPartial(value) }) + let msg = this.proofOps({ value: ProofOps.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetSyncingResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProofOps: Could not broadcast Tx: '+ e.message) } }, - async sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise { + async sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetNodeInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetLatestValidatorSetRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getNodeInfoRequest({ value: GetNodeInfoRequest.fromPartial(value) }) + let msg = this.getLatestValidatorSetRequest({ value: GetLatestValidatorSetRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetNodeInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestValidatorSetRequest: Could not broadcast Tx: '+ e.message) } }, - async sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise { + async sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendABCIQueryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetLatestBlockResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.abciqueryResponse({ value: ABCIQueryResponse.fromPartial(value) }) + let msg = this.getLatestBlockResponse({ value: GetLatestBlockResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendABCIQueryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestBlockResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise { + async sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestBlockResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVersionInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getLatestBlockResponse({ value: GetLatestBlockResponse.fromPartial(value) }) + let msg = this.versionInfo({ value: VersionInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetLatestBlockResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVersionInfo: Could not broadcast Tx: '+ e.message) } }, - async sendModule({ value, fee, memo }: sendModuleParams): Promise { + async sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModule: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.module({ value: Module.fromPartial(value) }) + let msg = this.getValidatorSetByHeightResponse({ value: GetValidatorSetByHeightResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModule: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Could not broadcast Tx: '+ e.message) } }, - async sendBlock({ value, fee, memo }: sendBlockParams): Promise { + async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendBlock: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.block({ value: Block.fromPartial(value) }) + let msg = this.validator({ value: Validator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBlock: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) } }, - async sendGetValidatorSetByHeightRequest({ value, fee, memo }: sendGetValidatorSetByHeightRequestParams): Promise { + async sendABCIQueryRequest({ value, fee, memo }: sendABCIQueryRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendABCIQueryRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getValidatorSetByHeightRequest({ value: GetValidatorSetByHeightRequest.fromPartial(value) }) + let msg = this.abciqueryRequest({ value: ABCIQueryRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendABCIQueryRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise { + async sendGetLatestValidatorSetResponse({ value, fee, memo }: sendGetLatestValidatorSetResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetLatestValidatorSetResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getValidatorSetByHeightResponse({ value: GetValidatorSetByHeightResponse.fromPartial(value) }) + let msg = this.getLatestValidatorSetResponse({ value: GetLatestValidatorSetResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestValidatorSetResponse: Could not broadcast Tx: '+ e.message) } }, - async sendProofOps({ value, fee, memo }: sendProofOpsParams): Promise { + async sendGetNodeInfoResponse({ value, fee, memo }: sendGetNodeInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendProofOps: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetNodeInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.proofOps({ value: ProofOps.fromPartial(value) }) + let msg = this.getNodeInfoResponse({ value: GetNodeInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendProofOps: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetNodeInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise { + async sendProofOp({ value, fee, memo }: sendProofOpParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendProofOp: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getLatestValidatorSetRequest({ value: GetLatestValidatorSetRequest.fromPartial(value) }) + let msg = this.proofOp({ value: ProofOp.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetLatestValidatorSetRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProofOp: Could not broadcast Tx: '+ e.message) } }, - getLatestValidatorSetResponse({ value }: getLatestValidatorSetResponseParams): EncodeObject { + getSyncingRequest({ value }: getSyncingRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", value: GetLatestValidatorSetResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestValidatorSetResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message) } }, - getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject { + getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", value: GetBlockByHeightRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", value: GetNodeInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockByHeightRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message) } }, - getLatestBlockRequest({ value }: getLatestBlockRequestParams): EncodeObject { + header({ value }: headerParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", value: GetLatestBlockRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Header", value: Header.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestBlockRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Header: Could not create message: ' + e.message) } }, - getNodeInfoResponse({ value }: getNodeInfoResponseParams): EncodeObject { + getBlockByHeightResponse({ value }: getBlockByHeightResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", value: GetNodeInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", value: GetBlockByHeightResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetNodeInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockByHeightResponse: Could not create message: ' + e.message) } }, - abciqueryRequest({ value }: abciqueryRequestParams): EncodeObject { + getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", value: GetBlockByHeightRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockByHeightRequest: Could not create message: ' + e.message) } }, - getBlockByHeightResponse({ value }: getBlockByHeightResponseParams): EncodeObject { + getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", value: GetBlockByHeightResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockByHeightResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message) } }, - versionInfo({ value }: versionInfoParams): EncodeObject { + module({ value }: moduleParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo", value: VersionInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Module", value: Module.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:VersionInfo: Could not create message: ' + e.message) + throw new Error('TxClient:Module: Could not create message: ' + e.message) } }, - validator({ value }: validatorParams): EncodeObject { + abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message) + throw new Error('TxClient:ABCIQueryResponse: Could not create message: ' + e.message) } }, - getSyncingRequest({ value }: getSyncingRequestParams): EncodeObject { + getValidatorSetByHeightRequest({ value }: getValidatorSetByHeightRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", value: GetValidatorSetByHeightRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetValidatorSetByHeightRequest: Could not create message: ' + e.message) } }, - proofOp({ value }: proofOpParams): EncodeObject { + block({ value }: blockParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ProofOp: Could not create message: ' + e.message) + throw new Error('TxClient:Block: Could not create message: ' + e.message) } }, - header({ value }: headerParams): EncodeObject { + getLatestBlockRequest({ value }: getLatestBlockRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Header", value: Header.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", value: GetLatestBlockRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Header: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestBlockRequest: Could not create message: ' + e.message) } }, - getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject { + proofOps({ value }: proofOpsParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ProofOps: Could not create message: ' + e.message) } }, - getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject { + getLatestValidatorSetRequest({ value }: getLatestValidatorSetRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", value: GetNodeInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", value: GetLatestValidatorSetRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestValidatorSetRequest: Could not create message: ' + e.message) } }, - abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject { + getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", value: GetLatestBlockResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ABCIQueryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message) } }, - getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject { + versionInfo({ value }: versionInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", value: GetLatestBlockResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo", value: VersionInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message) + throw new Error('TxClient:VersionInfo: Could not create message: ' + e.message) } }, - module({ value }: moduleParams): EncodeObject { + getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Module", value: Module.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", value: GetValidatorSetByHeightResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Module: Could not create message: ' + e.message) + throw new Error('TxClient:GetValidatorSetByHeightResponse: Could not create message: ' + e.message) } }, - block({ value }: blockParams): EncodeObject { + validator({ value }: validatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Block: Could not create message: ' + e.message) + throw new Error('TxClient:Validator: Could not create message: ' + e.message) } }, - getValidatorSetByHeightRequest({ value }: getValidatorSetByHeightRequestParams): EncodeObject { + abciqueryRequest({ value }: abciqueryRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", value: GetValidatorSetByHeightRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetValidatorSetByHeightRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message) } }, - getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject { + getLatestValidatorSetResponse({ value }: getLatestValidatorSetResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", value: GetValidatorSetByHeightResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", value: GetLatestValidatorSetResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetValidatorSetByHeightResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestValidatorSetResponse: Could not create message: ' + e.message) } }, - proofOps({ value }: proofOpsParams): EncodeObject { + getNodeInfoResponse({ value }: getNodeInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", value: GetNodeInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ProofOps: Could not create message: ' + e.message) + throw new Error('TxClient:GetNodeInfoResponse: Could not create message: ' + e.message) } }, - getLatestValidatorSetRequest({ value }: getLatestValidatorSetRequestParams): EncodeObject { + proofOp({ value }: proofOpParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", value: GetLatestValidatorSetRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestValidatorSetRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ProofOp: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.base.tendermint.v1beta1/registry.ts b/ts-client/cosmos.base.tendermint.v1beta1/registry.ts index d0dca4bc..ffbe178c 100755 --- a/ts-client/cosmos.base.tendermint.v1beta1/registry.ts +++ b/ts-client/cosmos.base.tendermint.v1beta1/registry.ts @@ -1,48 +1,48 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOp } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; +import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ProofOp } from "./types/cosmos/base/tendermint/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", GetLatestValidatorSetResponse], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], - ["/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", GetLatestBlockRequest], - ["/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", GetNodeInfoResponse], - ["/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", ABCIQueryRequest], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], - ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], - ["/cosmos.base.tendermint.v1beta1.Validator", Validator], ["/cosmos.base.tendermint.v1beta1.GetSyncingRequest", GetSyncingRequest], - ["/cosmos.base.tendermint.v1beta1.ProofOp", ProofOp], + ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], ["/cosmos.base.tendermint.v1beta1.Header", Header], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], ["/cosmos.base.tendermint.v1beta1.GetSyncingResponse", GetSyncingResponse], - ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], - ["/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", ABCIQueryResponse], - ["/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", GetLatestBlockResponse], ["/cosmos.base.tendermint.v1beta1.Module", Module], - ["/cosmos.base.tendermint.v1beta1.Block", Block], + ["/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", ABCIQueryResponse], ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", GetValidatorSetByHeightRequest], - ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.Block", Block], + ["/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", GetLatestBlockRequest], ["/cosmos.base.tendermint.v1beta1.ProofOps", ProofOps], ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", GetLatestValidatorSetRequest], + ["/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", GetLatestBlockResponse], + ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], + ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.Validator", Validator], + ["/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", ABCIQueryRequest], + ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", GetLatestValidatorSetResponse], + ["/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", GetNodeInfoResponse], + ["/cosmos.base.tendermint.v1beta1.ProofOp", ProofOp], ]; diff --git a/ts-client/cosmos.base.tendermint.v1beta1/rest.ts b/ts-client/cosmos.base.tendermint.v1beta1/rest.ts index 07fa8f51..24b28457 100644 --- a/ts-client/cosmos.base.tendermint.v1beta1/rest.ts +++ b/ts-client/cosmos.base.tendermint.v1beta1/rest.ts @@ -9,6 +9,1591 @@ * --------------------------------------------------------------- */ +export interface ABCIQueryResponse { + /** @format int64 */ + code?: number; + log?: string; + info?: string; + + /** @format int64 */ + index?: string; + + /** @format byte */ + key?: string; + + /** @format byte */ + value?: string; + proof_ops?: { ops?: { type?: string; key?: string; data?: string }[] }; + + /** @format int64 */ + height?: string; + codespace?: string; +} + +export interface Any { + "@type"?: string; +} + +export interface BlockID { + /** @format byte */ + hash?: string; + part_set_header?: { total?: number; hash?: string }; +} + +export enum BlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = "BLOCK_ID_FLAG_UNKNOWN", + BLOCK_ID_FLAG_ABSENT = "BLOCK_ID_FLAG_ABSENT", + BLOCK_ID_FLAG_COMMIT = "BLOCK_ID_FLAG_COMMIT", + BLOCK_ID_FLAG_NIL = "BLOCK_ID_FLAG_NIL", +} + +export interface Commit { + /** @format int64 */ + height?: string; + + /** @format int32 */ + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; +} + +export interface CommitSig { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + + /** @format byte */ + validator_address?: string; + + /** @format date-time */ + timestamp?: string; + + /** @format byte */ + signature?: string; +} + +export interface Consensus { + /** @format uint64 */ + block?: string; + + /** @format uint64 */ + app?: string; +} + +export interface Data { + txs?: string[]; +} + +export interface DefaultNodeInfo { + protocol_version?: { p2p?: string; block?: string; app?: string }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + + /** @format byte */ + channels?: string; + moniker?: string; + other?: { tx_index?: string; rpc_address?: string }; +} + +export interface DefaultNodeInfoOther { + tx_index?: string; + rpc_address?: string; +} + +export interface DuplicateVoteEvidence { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + + /** @format int64 */ + total_voting_power?: string; + + /** @format int64 */ + validator_power?: string; + + /** @format date-time */ + timestamp?: string; +} + +export interface Evidence { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; +} + +export interface EvidenceList { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; +} + +export interface GetBlockByHeightResponse { + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + sdk_block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; +} + +export interface GetLatestBlockResponse { + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + sdk_block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; +} + +export interface GetLatestValidatorSetResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + pub_key?: { "@type"?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface GetNodeInfoResponse { + default_node_info?: { + protocol_version?: { p2p?: string; block?: string; app?: string }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + channels?: string; + moniker?: string; + other?: { tx_index?: string; rpc_address?: string }; + }; + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { path?: string; version?: string; sum?: string }[]; + cosmos_sdk_version?: string; + }; +} + +export interface GetSyncingResponse { + syncing?: boolean; +} + +export interface GetValidatorSetByHeightResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + pub_key?: { "@type"?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface LightBlock { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; +} + +export interface LightClientAttackEvidence { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + + /** @format int64 */ + total_voting_power?: string; + + /** @format date-time */ + timestamp?: string; +} + +export interface Module { + path?: string; + version?: string; + sum?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface PartSetHeader { + /** @format int64 */ + total?: number; + + /** @format byte */ + hash?: string; +} + +export interface ProtocolVersion { + /** @format uint64 */ + p2p?: string; + + /** @format uint64 */ + block?: string; + + /** @format uint64 */ + app?: string; +} + +export interface PublicKey { + /** @format byte */ + ed25519?: string; + + /** @format byte */ + secp256k1?: string; +} + +export interface SignedHeader { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; +} + +export enum SignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = "SIGNED_MSG_TYPE_UNKNOWN", + SIGNED_MSG_TYPE_PREVOTE = "SIGNED_MSG_TYPE_PREVOTE", + SIGNED_MSG_TYPE_PRECOMMIT = "SIGNED_MSG_TYPE_PRECOMMIT", + SIGNED_MSG_TYPE_PROPOSAL = "SIGNED_MSG_TYPE_PROPOSAL", +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface ValidatorSet { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + + /** @format int64 */ + total_voting_power?: string; +} + +export interface VersionInfo { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { path?: string; version?: string; sum?: string }[]; + cosmos_sdk_version?: string; +} + +export interface Vote { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + + /** @format int64 */ + height?: string; + + /** @format int32 */ + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format date-time */ + timestamp?: string; + + /** @format byte */ + validator_address?: string; + + /** @format int32 */ + validator_index?: number; + + /** @format byte */ + signature?: string; + + /** @format byte */ + extension?: string; + + /** @format byte */ + extension_signature?: string; +} + +export interface TypesBlock { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; +} + +export interface TypesHeader { + version?: { block?: string; app?: string }; + chain_id?: string; + + /** @format int64 */ + height?: string; + + /** @format date-time */ + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format byte */ + last_commit_hash?: string; + + /** @format byte */ + data_hash?: string; + + /** @format byte */ + validators_hash?: string; + + /** @format byte */ + next_validators_hash?: string; + + /** @format byte */ + consensus_hash?: string; + + /** @format byte */ + app_hash?: string; + + /** @format byte */ + last_results_hash?: string; + + /** @format byte */ + evidence_hash?: string; + + /** @format byte */ + proposer_address?: string; +} + +export interface TypesValidator { + /** @format byte */ + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + + /** @format int64 */ + voting_power?: string; + + /** @format int64 */ + proposer_priority?: string; +} + +export interface V1Beta1Block { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; +} + +export interface V1Beta1Header { + version?: { block?: string; app?: string }; + chain_id?: string; + + /** @format int64 */ + height?: string; + + /** @format date-time */ + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format byte */ + last_commit_hash?: string; + + /** @format byte */ + data_hash?: string; + + /** @format byte */ + validators_hash?: string; + + /** @format byte */ + next_validators_hash?: string; + + /** @format byte */ + consensus_hash?: string; + + /** @format byte */ + app_hash?: string; + + /** @format byte */ + last_results_hash?: string; + + /** @format byte */ + evidence_hash?: string; + proposer_address?: string; +} + +export interface V1Beta1ProofOp { + type?: string; + + /** @format byte */ + key?: string; + + /** @format byte */ + data?: string; +} + +export interface V1Beta1ProofOps { + ops?: { type?: string; key?: string; data?: string }[]; +} + +export interface V1Beta1Validator { + address?: string; + pub_key?: { "@type"?: string }; + + /** @format int64 */ + voting_power?: string; + + /** @format int64 */ + proposer_priority?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +1717,742 @@ export class HttpClient { /** * @title HTTP API Console cosmos.base.tendermint.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Service + * @name ServiceAbciQuery + * @request GET:/cosmos/base/tendermint/v1beta1/abci_query + */ + serviceABCIQuery = ( + query?: { data?: string; path?: string; height?: string; prove?: boolean }, + params: RequestParams = {}, + ) => + this.request< + { + code?: number; + log?: string; + info?: string; + index?: string; + key?: string; + value?: string; + proof_ops?: { ops?: { type?: string; key?: string; data?: string }[] }; + height?: string; + codespace?: string; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/abci_query`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetLatestBlock + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/latest + */ + serviceGetLatestBlock = (params: RequestParams = {}) => + this.request< + { + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + sdk_block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/latest`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetBlockByHeight + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/{height} + */ + serviceGetBlockByHeight = (height: string, params: RequestParams = {}) => + this.request< + { + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + sdk_block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/${height}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetNodeInfo + * @request GET:/cosmos/base/tendermint/v1beta1/node_info + */ + serviceGetNodeInfo = (params: RequestParams = {}) => + this.request< + { + default_node_info?: { + protocol_version?: { p2p?: string; block?: string; app?: string }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + channels?: string; + moniker?: string; + other?: { tx_index?: string; rpc_address?: string }; + }; + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { path?: string; version?: string; sum?: string }[]; + cosmos_sdk_version?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/node_info`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetSyncing + * @request GET:/cosmos/base/tendermint/v1beta1/syncing + */ + serviceGetSyncing = (params: RequestParams = {}) => + this.request<{ syncing?: boolean }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/base/tendermint/v1beta1/syncing`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetLatestValidatorSet + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/latest + */ + serviceGetLatestValidatorSet = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + block_height?: string; + validators?: { + address?: string; + pub_key?: { "@type"?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/latest`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetValidatorSetByHeight + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/{height} + */ + serviceGetValidatorSetByHeight = ( + height: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + block_height?: string; + validators?: { + address?: string; + pub_key?: { "@type"?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/${height}`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.circuit.v1/api.swagger.yml b/ts-client/cosmos.circuit.v1/api.swagger.yml index efc91065..fbfbc848 100644 --- a/ts-client/cosmos.circuit.v1/api.swagger.yml +++ b/ts-client/cosmos.circuit.v1/api.swagger.yml @@ -3,3 +3,335 @@ info: title: HTTP API Console cosmos.circuit.v1 name: '' description: '' +paths: + /cosmos/circuit/v1/accounts: + get: + operationId: Query_Accounts + responses: + '200': + description: A successful response. + schema: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + address: + type: string + permissions: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/circuit/v1/accounts/{address}: + get: + operationId: Query_Account + responses: + '200': + description: A successful response. + schema: + type: object + properties: + permission: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + in: path + required: true + type: string + tags: + - Query + /cosmos/circuit/v1/disable_list: + get: + operationId: Query_DisabledList + responses: + '200': + description: A successful response. + schema: + type: object + properties: + disabled_list: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + AccountResponse: + type: object + properties: + permission: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + AccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + address: + type: string + permissions: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + DisabledListResponse: + type: object + properties: + disabled_list: + type: array + items: + type: string + GenesisAccountPermissions: + type: object + properties: + address: + type: string + permissions: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + Level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + Permissions: + type: object + properties: + level: + type: string + enum: + - LEVEL_NONE_UNSPECIFIED + - LEVEL_SOME_MSGS + - LEVEL_ALL_MSGS + - LEVEL_SUPER_ADMIN + default: LEVEL_NONE_UNSPECIFIED + limit_type_urls: + type: array + items: + type: string + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + MsgAuthorizeCircuitBreakerResponse: + type: object + properties: + success: + type: boolean + MsgResetCircuitBreakerResponse: + type: object + properties: + success: + type: boolean + MsgTripCircuitBreakerResponse: + type: object + properties: + success: + type: boolean diff --git a/ts-client/cosmos.circuit.v1/module.ts b/ts-client/cosmos.circuit.v1/module.ts index 27d1ca5c..cbbd9c46 100755 --- a/ts-client/cosmos.circuit.v1/module.ts +++ b/ts-client/cosmos.circuit.v1/module.ts @@ -6,33 +6,27 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { AccountResponse } from "./types/cosmos/circuit/v1/query"; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; -import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; +import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; - +import { Permissions } from "./types/cosmos/circuit/v1/types"; -export { MsgResetCircuitBreaker, QueryAccountsRequest, MsgAuthorizeCircuitBreaker, MsgAuthorizeCircuitBreakerResponse, GenesisAccountPermissions, GenesisState, AccountResponse, AccountsResponse, DisabledListResponse, MsgTripCircuitBreakerResponse, Permissions, QueryAccountRequest, MsgTripCircuitBreaker, MsgResetCircuitBreakerResponse, QueryDisabledListRequest }; -type sendMsgResetCircuitBreakerParams = { - value: MsgResetCircuitBreaker, - fee?: StdFee, - memo?: string -}; +export { DisabledListResponse, MsgAuthorizeCircuitBreaker, MsgAuthorizeCircuitBreakerResponse, GenesisAccountPermissions, QueryDisabledListRequest, AccountResponse, GenesisState, QueryAccountsRequest, AccountsResponse, MsgTripCircuitBreaker, MsgTripCircuitBreakerResponse, MsgResetCircuitBreaker, QueryAccountRequest, MsgResetCircuitBreakerResponse, Permissions }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest, +type sendDisabledListResponseParams = { + value: DisabledListResponse, fee?: StdFee, memo?: string }; @@ -55,8 +49,8 @@ type sendGenesisAccountPermissionsParams = { memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryDisabledListRequestParams = { + value: QueryDisabledListRequest, fee?: StdFee, memo?: string }; @@ -67,14 +61,26 @@ type sendAccountResponseParams = { memo?: string }; +type sendGenesisStateParams = { + value: GenesisState, + fee?: StdFee, + memo?: string +}; + +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest, + fee?: StdFee, + memo?: string +}; + type sendAccountsResponseParams = { value: AccountsResponse, fee?: StdFee, memo?: string }; -type sendDisabledListResponseParams = { - value: DisabledListResponse, +type sendMsgTripCircuitBreakerParams = { + value: MsgTripCircuitBreaker, fee?: StdFee, memo?: string }; @@ -85,8 +91,8 @@ type sendMsgTripCircuitBreakerResponseParams = { memo?: string }; -type sendPermissionsParams = { - value: Permissions, +type sendMsgResetCircuitBreakerParams = { + value: MsgResetCircuitBreaker, fee?: StdFee, memo?: string }; @@ -97,31 +103,21 @@ type sendQueryAccountRequestParams = { memo?: string }; -type sendMsgTripCircuitBreakerParams = { - value: MsgTripCircuitBreaker, - fee?: StdFee, - memo?: string -}; - type sendMsgResetCircuitBreakerResponseParams = { value: MsgResetCircuitBreakerResponse, fee?: StdFee, memo?: string }; -type sendQueryDisabledListRequestParams = { - value: QueryDisabledListRequest, +type sendPermissionsParams = { + value: Permissions, fee?: StdFee, memo?: string }; -type msgResetCircuitBreakerParams = { - value: MsgResetCircuitBreaker, -}; - -type queryAccountsRequestParams = { - value: QueryAccountsRequest, +type disabledListResponseParams = { + value: DisabledListResponse, }; type msgAuthorizeCircuitBreakerParams = { @@ -136,44 +132,48 @@ type genesisAccountPermissionsParams = { value: GenesisAccountPermissions, }; -type genesisStateParams = { - value: GenesisState, +type queryDisabledListRequestParams = { + value: QueryDisabledListRequest, }; type accountResponseParams = { value: AccountResponse, }; +type genesisStateParams = { + value: GenesisState, +}; + +type queryAccountsRequestParams = { + value: QueryAccountsRequest, +}; + type accountsResponseParams = { value: AccountsResponse, }; -type disabledListResponseParams = { - value: DisabledListResponse, +type msgTripCircuitBreakerParams = { + value: MsgTripCircuitBreaker, }; type msgTripCircuitBreakerResponseParams = { value: MsgTripCircuitBreakerResponse, }; -type permissionsParams = { - value: Permissions, +type msgResetCircuitBreakerParams = { + value: MsgResetCircuitBreaker, }; type queryAccountRequestParams = { value: QueryAccountRequest, }; -type msgTripCircuitBreakerParams = { - value: MsgTripCircuitBreaker, -}; - type msgResetCircuitBreakerResponseParams = { value: MsgResetCircuitBreakerResponse, }; -type queryDisabledListRequestParams = { - value: QueryDisabledListRequest, +type permissionsParams = { + value: Permissions, }; @@ -206,31 +206,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgResetCircuitBreaker: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgResetCircuitBreaker: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { + async sendDisabledListResponse({ value, fee, memo }: sendDisabledListResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDisabledListResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }) + let msg = this.disabledListResponse({ value: DisabledListResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDisabledListResponse: Could not broadcast Tx: '+ e.message) } }, @@ -276,17 +262,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDisabledListRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryDisabledListRequest({ value: QueryDisabledListRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDisabledListRequest: Could not broadcast Tx: '+ e.message) } }, @@ -304,6 +290,34 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + if (!signer) { + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) + } + }, + async sendAccountsResponse({ value, fee, memo }: sendAccountsResponseParams): Promise { if (!signer) { throw new Error('TxClient:sendAccountsResponse: Unable to sign Tx. Signer is not present.') @@ -318,17 +332,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendDisabledListResponse({ value, fee, memo }: sendDisabledListResponseParams): Promise { + async sendMsgTripCircuitBreaker({ value, fee, memo }: sendMsgTripCircuitBreakerParams): Promise { if (!signer) { - throw new Error('TxClient:sendDisabledListResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTripCircuitBreaker: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.disabledListResponse({ value: DisabledListResponse.fromPartial(value) }) + let msg = this.msgTripCircuitBreaker({ value: MsgTripCircuitBreaker.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDisabledListResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTripCircuitBreaker: Could not broadcast Tx: '+ e.message) } }, @@ -346,17 +360,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendPermissions({ value, fee, memo }: sendPermissionsParams): Promise { + async sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise { if (!signer) { - throw new Error('TxClient:sendPermissions: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgResetCircuitBreaker: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.permissions({ value: Permissions.fromPartial(value) }) + let msg = this.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPermissions: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgResetCircuitBreaker: Could not broadcast Tx: '+ e.message) } }, @@ -374,20 +388,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgTripCircuitBreaker({ value, fee, memo }: sendMsgTripCircuitBreakerParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgTripCircuitBreaker: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTripCircuitBreaker({ value: MsgTripCircuitBreaker.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgTripCircuitBreaker: Could not broadcast Tx: '+ e.message) - } - }, - async sendMsgResetCircuitBreakerResponse({ value, fee, memo }: sendMsgResetCircuitBreakerResponseParams): Promise { if (!signer) { throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Unable to sign Tx. Signer is not present.') @@ -402,34 +402,26 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise { + async sendPermissions({ value, fee, memo }: sendPermissionsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDisabledListRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPermissions: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDisabledListRequest({ value: QueryDisabledListRequest.fromPartial(value) }) + let msg = this.permissions({ value: Permissions.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDisabledListRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPermissions: Could not broadcast Tx: '+ e.message) } }, - msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject { - try { - return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message) - } - }, - - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { + disabledListResponse({ value }: disabledListResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message) } }, @@ -457,11 +449,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message) } }, @@ -473,6 +465,22 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + genesisState({ value }: genesisStateParams): EncodeObject { + try { + return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + } + }, + + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) + } + }, + accountsResponse({ value }: accountsResponseParams): EncodeObject { try { return { typeUrl: "/cosmos.circuit.v1.AccountsResponse", value: AccountsResponse.fromPartial( value ) } @@ -481,11 +489,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - disabledListResponse({ value }: disabledListResponseParams): EncodeObject { + msgTripCircuitBreaker({ value }: msgTripCircuitBreakerParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker", value: MsgTripCircuitBreaker.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTripCircuitBreaker: Could not create message: ' + e.message) } }, @@ -497,11 +505,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - permissions({ value }: permissionsParams): EncodeObject { + msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.Permissions", value: Permissions.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Permissions: Could not create message: ' + e.message) + throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message) } }, @@ -513,14 +521,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgTripCircuitBreaker({ value }: msgTripCircuitBreakerParams): EncodeObject { - try { - return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker", value: MsgTripCircuitBreaker.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgTripCircuitBreaker: Could not create message: ' + e.message) - } - }, - msgResetCircuitBreakerResponse({ value }: msgResetCircuitBreakerResponseParams): EncodeObject { try { return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", value: MsgResetCircuitBreakerResponse.fromPartial( value ) } @@ -529,11 +529,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject { + permissions({ value }: permissionsParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.Permissions", value: Permissions.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Permissions: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.circuit.v1/registry.ts b/ts-client/cosmos.circuit.v1/registry.ts index 4866b3d0..990a684d 100755 --- a/ts-client/cosmos.circuit.v1/registry.ts +++ b/ts-client/cosmos.circuit.v1/registry.ts @@ -1,36 +1,36 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { AccountResponse } from "./types/cosmos/circuit/v1/query"; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; -import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; +import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; +import { Permissions } from "./types/cosmos/circuit/v1/types"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker], - ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.circuit.v1.DisabledListResponse", DisabledListResponse], ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", MsgAuthorizeCircuitBreaker], ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", MsgAuthorizeCircuitBreakerResponse], ["/cosmos.circuit.v1.GenesisAccountPermissions", GenesisAccountPermissions], - ["/cosmos.circuit.v1.GenesisState", GenesisState], + ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], ["/cosmos.circuit.v1.AccountResponse", AccountResponse], + ["/cosmos.circuit.v1.GenesisState", GenesisState], + ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], ["/cosmos.circuit.v1.AccountsResponse", AccountsResponse], - ["/cosmos.circuit.v1.DisabledListResponse", DisabledListResponse], + ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], ["/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", MsgTripCircuitBreakerResponse], - ["/cosmos.circuit.v1.Permissions", Permissions], + ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker], ["/cosmos.circuit.v1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], ["/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", MsgResetCircuitBreakerResponse], - ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], + ["/cosmos.circuit.v1.Permissions", Permissions], ]; diff --git a/ts-client/cosmos.circuit.v1/rest.ts b/ts-client/cosmos.circuit.v1/rest.ts index 24e59543..7be7cc1b 100644 --- a/ts-client/cosmos.circuit.v1/rest.ts +++ b/ts-client/cosmos.circuit.v1/rest.ts @@ -9,6 +9,92 @@ * --------------------------------------------------------------- */ +export interface AccountResponse { + permission?: { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; + }; +} + +export interface AccountsResponse { + accounts?: { + address?: string; + permissions?: { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; + }; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface Any { + "@type"?: string; +} + +export interface DisabledListResponse { + disabled_list?: string[]; +} + +export interface GenesisAccountPermissions { + address?: string; + permissions?: { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; + }; +} + +export enum Level { + LEVEL_NONE_UNSPECIFIED = "LEVEL_NONE_UNSPECIFIED", + LEVEL_SOME_MSGS = "LEVEL_SOME_MSGS", + LEVEL_ALL_MSGS = "LEVEL_ALL_MSGS", + LEVEL_SUPER_ADMIN = "LEVEL_SUPER_ADMIN", +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface Permissions { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface MsgAuthorizeCircuitBreakerResponse { + success?: boolean; +} + +export interface MsgResetCircuitBreakerResponse { + success?: boolean; +} + +export interface MsgTripCircuitBreakerResponse { + success?: boolean; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +218,76 @@ export class HttpClient { /** * @title HTTP API Console cosmos.circuit.v1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAccounts + * @request GET:/cosmos/circuit/v1/accounts + */ + queryAccounts = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + accounts?: { + address?: string; + permissions?: { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; + }; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/circuit/v1/accounts`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAccount + * @request GET:/cosmos/circuit/v1/accounts/{address} + */ + queryAccount = (address: string, params: RequestParams = {}) => + this.request< + { + permission?: { + level?: "LEVEL_NONE_UNSPECIFIED" | "LEVEL_SOME_MSGS" | "LEVEL_ALL_MSGS" | "LEVEL_SUPER_ADMIN"; + limit_type_urls?: string[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/circuit/v1/accounts/${address}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDisabledList + * @request GET:/cosmos/circuit/v1/disable_list + */ + queryDisabledList = (params: RequestParams = {}) => + this.request<{ disabled_list?: string[] }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/circuit/v1/disable_list`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.consensus.v1/api.swagger.yml b/ts-client/cosmos.consensus.v1/api.swagger.yml index 77b00680..6180057a 100644 --- a/ts-client/cosmos.consensus.v1/api.swagger.yml +++ b/ts-client/cosmos.consensus.v1/api.swagger.yml @@ -3,3 +3,226 @@ info: title: HTTP API Console cosmos.consensus.v1 name: '' description: '' +paths: + /cosmos/consensus/v1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + block: + type: object + properties: + max_bytes: + type: string + format: int64 + max_gas: + type: string + format: int64 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + max_age_duration: + type: string + max_bytes: + type: string + format: int64 + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + version: + type: object + properties: + app: + type: string + format: uint64 + abci: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + ABCIParams: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + BlockParams: + type: object + properties: + max_bytes: + type: string + format: int64 + max_gas: + type: string + format: int64 + ConsensusParams: + type: object + properties: + block: + type: object + properties: + max_bytes: + type: string + format: int64 + max_gas: + type: string + format: int64 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + max_age_duration: + type: string + max_bytes: + type: string + format: int64 + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + version: + type: object + properties: + app: + type: string + format: uint64 + abci: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + EvidenceParams: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + max_age_duration: + type: string + max_bytes: + type: string + format: int64 + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + block: + type: object + properties: + max_bytes: + type: string + format: int64 + max_gas: + type: string + format: int64 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + max_age_duration: + type: string + max_bytes: + type: string + format: int64 + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + version: + type: object + properties: + app: + type: string + format: uint64 + abci: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + ValidatorParams: + type: object + properties: + pub_key_types: + type: array + items: + type: string + VersionParams: + type: object + properties: + app: + type: string + format: uint64 + MsgUpdateParamsResponse: + type: object diff --git a/ts-client/cosmos.consensus.v1/module.ts b/ts-client/cosmos.consensus.v1/module.ts index a77fa635..195de805 100755 --- a/ts-client/cosmos.consensus.v1/module.ts +++ b/ts-client/cosmos.consensus.v1/module.ts @@ -6,19 +6,13 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; import { QueryParamsRequest } from "./types/cosmos/consensus/v1/query"; import { QueryParamsResponse } from "./types/cosmos/consensus/v1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/consensus/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; -export { MsgUpdateParams, QueryParamsRequest, QueryParamsResponse, MsgUpdateParamsResponse }; - -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, - fee?: StdFee, - memo?: string -}; +export { QueryParamsRequest, QueryParamsResponse, MsgUpdateParamsResponse, MsgUpdateParams }; type sendQueryParamsRequestParams = { value: QueryParamsRequest, @@ -38,11 +32,13 @@ type sendMsgUpdateParamsResponseParams = { memo?: string }; - -type msgUpdateParamsParams = { +type sendMsgUpdateParamsParams = { value: MsgUpdateParams, + fee?: StdFee, + memo?: string }; + type queryParamsRequestParams = { value: QueryParamsRequest, }; @@ -55,6 +51,10 @@ type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, }; +type msgUpdateParamsParams = { + value: MsgUpdateParams, +}; + export const registry = new Registry(msgTypes); @@ -85,20 +85,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) - } - }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') @@ -141,15 +127,21 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { - try { - return { typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { return { typeUrl: "/cosmos.consensus.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } @@ -174,6 +166,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + try { + return { typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + } + }, + } }; diff --git a/ts-client/cosmos.consensus.v1/registry.ts b/ts-client/cosmos.consensus.v1/registry.ts index 7fb9932c..6a2aede9 100755 --- a/ts-client/cosmos.consensus.v1/registry.ts +++ b/ts-client/cosmos.consensus.v1/registry.ts @@ -1,14 +1,14 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; import { QueryParamsRequest } from "./types/cosmos/consensus/v1/query"; import { QueryParamsResponse } from "./types/cosmos/consensus/v1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/consensus/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.consensus.v1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.consensus.v1.QueryParamsResponse", QueryParamsResponse], ["/cosmos.consensus.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams], ]; diff --git a/ts-client/cosmos.consensus.v1/rest.ts b/ts-client/cosmos.consensus.v1/rest.ts index bf0a4853..abf70717 100644 --- a/ts-client/cosmos.consensus.v1/rest.ts +++ b/ts-client/cosmos.consensus.v1/rest.ts @@ -9,6 +9,68 @@ * --------------------------------------------------------------- */ +export interface ABCIParams { + /** @format int64 */ + vote_extensions_enable_height?: string; +} + +export interface Any { + "@type"?: string; +} + +export interface BlockParams { + /** @format int64 */ + max_bytes?: string; + + /** @format int64 */ + max_gas?: string; +} + +export interface ConsensusParams { + block?: { max_bytes?: string; max_gas?: string }; + evidence?: { max_age_num_blocks?: string; max_age_duration?: string; max_bytes?: string }; + validator?: { pub_key_types?: string[] }; + version?: { app?: string }; + abci?: { vote_extensions_enable_height?: string }; +} + +export interface EvidenceParams { + /** @format int64 */ + max_age_num_blocks?: string; + max_age_duration?: string; + + /** @format int64 */ + max_bytes?: string; +} + +export interface QueryParamsResponse { + params?: { + block?: { max_bytes?: string; max_gas?: string }; + evidence?: { max_age_num_blocks?: string; max_age_duration?: string; max_bytes?: string }; + validator?: { pub_key_types?: string[] }; + version?: { app?: string }; + abci?: { vote_extensions_enable_height?: string }; + }; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface ValidatorParams { + pub_key_types?: string[]; +} + +export interface VersionParams { + /** @format uint64 */ + app?: string; +} + +export type MsgUpdateParamsResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +194,29 @@ export class HttpClient { /** * @title HTTP API Console cosmos.consensus.v1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/consensus/v1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + block?: { max_bytes?: string; max_gas?: string }; + evidence?: { max_age_num_blocks?: string; max_age_duration?: string; max_bytes?: string }; + validator?: { pub_key_types?: string[] }; + version?: { app?: string }; + abci?: { vote_extensions_enable_height?: string }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/consensus/v1/params`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.crisis.v1beta1/api.swagger.yml b/ts-client/cosmos.crisis.v1beta1/api.swagger.yml index cc062585..50cd918e 100644 --- a/ts-client/cosmos.crisis.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.crisis.v1beta1/api.swagger.yml @@ -3,3 +3,37 @@ info: title: HTTP API Console cosmos.crisis.v1beta1 name: '' description: '' +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + MsgUpdateParamsResponse: + type: object + MsgVerifyInvariantResponse: + type: object diff --git a/ts-client/cosmos.crisis.v1beta1/module.ts b/ts-client/cosmos.crisis.v1beta1/module.ts index 19623b2b..4efe8f56 100755 --- a/ts-client/cosmos.crisis.v1beta1/module.ts +++ b/ts-client/cosmos.crisis.v1beta1/module.ts @@ -6,20 +6,14 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgVerifyInvariantResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/crisis/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; -export { MsgUpdateParamsResponse, GenesisState, MsgVerifyInvariant, MsgVerifyInvariantResponse, MsgUpdateParams }; - -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, - fee?: StdFee, - memo?: string -}; +export { GenesisState, MsgVerifyInvariant, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse }; type sendGenesisStateParams = { value: GenesisState, @@ -45,11 +39,13 @@ type sendMsgUpdateParamsParams = { memo?: string }; - -type msgUpdateParamsResponseParams = { +type sendMsgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, + fee?: StdFee, + memo?: string }; + type genesisStateParams = { value: GenesisState, }; @@ -66,6 +62,10 @@ type msgUpdateParamsParams = { value: MsgUpdateParams, }; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, +}; + export const registry = new Registry(msgTypes); @@ -96,20 +96,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) - } - }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') @@ -166,15 +152,21 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, + genesisState({ value }: genesisStateParams): EncodeObject { try { return { typeUrl: "/cosmos.crisis.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } @@ -207,6 +199,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + } + }, + } }; diff --git a/ts-client/cosmos.crisis.v1beta1/registry.ts b/ts-client/cosmos.crisis.v1beta1/registry.ts index fab3a435..d9e06a8c 100755 --- a/ts-client/cosmos.crisis.v1beta1/registry.ts +++ b/ts-client/cosmos.crisis.v1beta1/registry.ts @@ -1,16 +1,16 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgVerifyInvariantResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/crisis/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.crisis.v1beta1.GenesisState", GenesisState], ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant], ["/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse", MsgVerifyInvariantResponse], ["/cosmos.crisis.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ]; diff --git a/ts-client/cosmos.crisis.v1beta1/rest.ts b/ts-client/cosmos.crisis.v1beta1/rest.ts index 74b6cd74..20e70a87 100644 --- a/ts-client/cosmos.crisis.v1beta1/rest.ts +++ b/ts-client/cosmos.crisis.v1beta1/rest.ts @@ -9,6 +9,26 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export type MsgUpdateParamsResponse = object; + +export type MsgVerifyInvariantResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; diff --git a/ts-client/cosmos.distribution.v1beta1/api.swagger.yml b/ts-client/cosmos.distribution.v1beta1/api.swagger.yml index d09d59d9..6ce3278d 100644 --- a/ts-client/cosmos.distribution.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.distribution.v1beta1/api.swagger.yml @@ -3,3 +3,820 @@ info: title: HTTP API Console cosmos.distribution.v1beta1 name: '' description: '' +paths: + /cosmos/distribution/v1beta1/community_pool: + get: + operationId: Query_CommunityPool + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pool: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards: + get: + operationId: Query_DelegationTotalRewards + responses: + '200': + description: A successful response. + schema: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + validator_address: + type: string + reward: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + total: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_address + description: delegator_address defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}: + get: + operationId: Query_DelegationRewards + responses: + '200': + description: A successful response. + schema: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_address + description: delegator_address defines the delegator address to query for. + in: path + required: true + type: string + - name: validator_address + description: validator_address defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators: + get: + operationId: Query_DelegatorValidators + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validators: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_address + description: delegator_address defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address: + get: + operationId: Query_DelegatorWithdrawAddress + responses: + '200': + description: A successful response. + schema: + type: object + properties: + withdraw_address: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_address + description: delegator_address defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/distribution/v1beta1/validators/{validator_address}: + get: + operationId: Query_ValidatorDistributionInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + operator_address: + type: string + self_bond_rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_address + description: validator_address defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/validators/{validator_address}/commission: + get: + operationId: Query_ValidatorCommission + responses: + '200': + description: A successful response. + schema: + type: object + properties: + commission: + type: object + properties: + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_address + description: validator_address defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards: + get: + operationId: Query_ValidatorOutstandingRewards + responses: + '200': + description: A successful response. + schema: + type: object + properties: + rewards: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_address + description: validator_address defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/distribution/v1beta1/validators/{validator_address}/slashes: + get: + operationId: Query_ValidatorSlashes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + slashes: + type: array + items: + type: object + properties: + validator_period: + type: string + format: uint64 + fraction: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_address + description: validator_address defines the validator address to query for. + in: path + required: true + type: string + - name: starting_height + in: query + required: false + type: string + format: uint64 + - name: ending_height + in: query + required: false + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + DecCoin: + type: object + properties: + denom: + type: string + amount: + type: string + DelegationDelegatorReward: + type: object + properties: + validator_address: + type: string + reward: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryCommunityPoolResponse: + type: object + properties: + pool: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDelegationRewardsResponse: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDelegationTotalRewardsResponse: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + validator_address: + type: string + reward: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + total: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDelegatorValidatorsResponse: + type: object + properties: + validators: + type: array + items: + type: string + QueryDelegatorWithdrawAddressResponse: + type: object + properties: + withdraw_address: + type: string + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean + QueryValidatorCommissionResponse: + type: object + properties: + commission: + type: object + properties: + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryValidatorDistributionInfoResponse: + type: object + properties: + operator_address: + type: string + self_bond_rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryValidatorOutstandingRewardsResponse: + type: object + properties: + rewards: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryValidatorSlashesResponse: + type: object + properties: + slashes: + type: array + items: + type: object + properties: + validator_period: + type: string + format: uint64 + fraction: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + ValidatorAccumulatedCommission: + type: object + properties: + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + ValidatorSlashEvent: + type: object + properties: + validator_period: + type: string + format: uint64 + fraction: + type: string + v1beta1.Params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean + v1beta1.ValidatorOutstandingRewards: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + MsgCommunityPoolSpendResponse: + type: object + MsgDepositValidatorRewardsPoolResponse: + type: object + MsgFundCommunityPoolResponse: + type: object + MsgSetWithdrawAddressResponse: + type: object + MsgUpdateParamsResponse: + type: object + MsgWithdrawDelegatorRewardResponse: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + MsgWithdrawValidatorCommissionResponse: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + Params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean diff --git a/ts-client/cosmos.distribution.v1beta1/module.ts b/ts-client/cosmos.distribution.v1beta1/module.ts index 02cc4c79..f7c27c9f 100755 --- a/ts-client/cosmos.distribution.v1beta1/module.ts +++ b/ts-client/cosmos.distribution.v1beta1/module.ts @@ -6,222 +6,222 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; -export { MsgWithdrawDelegatorRewardResponse, ValidatorSlashEvent, QueryDelegatorValidatorsRequest, QueryValidatorCommissionResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, CommunityPoolSpendProposalWithDeposit, ValidatorAccumulatedCommissionRecord, ValidatorCurrentRewards, ValidatorAccumulatedCommission, MsgSetWithdrawAddressResponse, MsgFundCommunityPoolResponse, QueryDelegationRewardsRequest, QueryCommunityPoolRequest, DelegationDelegatorReward, MsgFundCommunityPool, DelegatorStartingInfoRecord, Params, ValidatorCurrentRewardsRecord, GenesisState, QueryValidatorOutstandingRewardsResponse, MsgWithdrawValidatorCommissionResponse, MsgCommunityPoolSpend, DelegatorWithdrawInfo, QueryDelegationRewardsResponse, ValidatorHistoricalRewards, QueryValidatorOutstandingRewardsRequest, QueryValidatorSlashesRequest, MsgUpdateParamsResponse, QueryParamsResponse, QueryDelegatorValidatorsResponse, ValidatorOutstandingRewardsRecord, QueryValidatorDistributionInfoRequest, QueryDelegationTotalRewardsResponse, MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgDepositValidatorRewardsPoolResponse, CommunityPoolSpendProposal, QueryCommunityPoolResponse, DelegatorStartingInfo, MsgDepositValidatorRewardsPool, QueryValidatorDistributionInfoResponse, QueryParamsRequest, MsgCommunityPoolSpendResponse, ValidatorHistoricalRewardsRecord, MsgWithdrawValidatorCommission, QueryValidatorCommissionRequest, ValidatorSlashEventRecord, QueryValidatorSlashesResponse, ValidatorOutstandingRewards, ValidatorSlashEvents, MsgUpdateParams, FeePool, QueryDelegationTotalRewardsRequest }; +export { QueryParamsResponse, QueryDelegationTotalRewardsRequest, DelegationDelegatorReward, ValidatorCurrentRewards, MsgSetWithdrawAddress, MsgFundCommunityPool, MsgCommunityPoolSpendResponse, QueryCommunityPoolResponse, QueryParamsRequest, QueryDelegationRewardsRequest, CommunityPoolSpendProposalWithDeposit, MsgDepositValidatorRewardsPool, QueryValidatorOutstandingRewardsResponse, QueryDelegatorValidatorsRequest, FeePool, QueryValidatorCommissionResponse, QueryDelegatorWithdrawAddressResponse, GenesisState, MsgWithdrawDelegatorRewardResponse, QueryValidatorDistributionInfoResponse, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolRequest, CommunityPoolSpendProposal, MsgSetWithdrawAddressResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorCommissionRequest, QueryValidatorSlashesRequest, ValidatorOutstandingRewardsRecord, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, ValidatorSlashEventRecord, DelegatorWithdrawInfo, MsgWithdrawDelegatorReward, MsgCommunityPoolSpend, ValidatorOutstandingRewards, ValidatorSlashEvents, MsgWithdrawValidatorCommissionResponse, QueryValidatorSlashesResponse, DelegatorStartingInfo, MsgUpdateParams, QueryDelegationTotalRewardsResponse, Params, MsgWithdrawValidatorCommission, QueryValidatorDistributionInfoRequest, ValidatorHistoricalRewards, MsgUpdateParamsResponse, QueryDelegationRewardsResponse, ValidatorAccumulatedCommissionRecord, DelegatorStartingInfoRecord, MsgFundCommunityPoolResponse, MsgDepositValidatorRewardsPoolResponse, ValidatorAccumulatedCommission, ValidatorSlashEvent }; -type sendMsgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventParams = { - value: ValidatorSlashEvent, +type sendQueryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type sendDelegationDelegatorRewardParams = { + value: DelegationDelegatorReward, fee?: StdFee, memo?: string }; -type sendQueryValidatorCommissionResponseParams = { - value: QueryValidatorCommissionResponse, +type sendValidatorCurrentRewardsParams = { + value: ValidatorCurrentRewards, fee?: StdFee, memo?: string }; -type sendQueryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest, +type sendMsgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress, fee?: StdFee, memo?: string }; -type sendQueryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse, +type sendMsgFundCommunityPoolParams = { + value: MsgFundCommunityPool, fee?: StdFee, memo?: string }; -type sendCommunityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit, +type sendMsgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse, fee?: StdFee, memo?: string }; -type sendValidatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord, +type sendQueryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse, fee?: StdFee, memo?: string }; -type sendValidatorCurrentRewardsParams = { - value: ValidatorCurrentRewards, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendValidatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission, +type sendQueryDelegationRewardsRequestParams = { + value: QueryDelegationRewardsRequest, fee?: StdFee, memo?: string }; -type sendMsgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse, +type sendCommunityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit, fee?: StdFee, memo?: string }; -type sendMsgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse, +type sendMsgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool, fee?: StdFee, memo?: string }; -type sendQueryDelegationRewardsRequestParams = { - value: QueryDelegationRewardsRequest, +type sendQueryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse, fee?: StdFee, memo?: string }; -type sendQueryCommunityPoolRequestParams = { - value: QueryCommunityPoolRequest, +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, fee?: StdFee, memo?: string }; -type sendDelegationDelegatorRewardParams = { - value: DelegationDelegatorReward, +type sendFeePoolParams = { + value: FeePool, fee?: StdFee, memo?: string }; -type sendMsgFundCommunityPoolParams = { - value: MsgFundCommunityPool, +type sendQueryValidatorCommissionResponseParams = { + value: QueryValidatorCommissionResponse, fee?: StdFee, memo?: string }; -type sendDelegatorStartingInfoRecordParams = { - value: DelegatorStartingInfoRecord, +type sendQueryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendValidatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord, +type sendMsgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse, +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, fee?: StdFee, memo?: string }; -type sendMsgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse, +type sendQueryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest, fee?: StdFee, memo?: string }; -type sendMsgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend, +type sendQueryCommunityPoolRequestParams = { + value: QueryCommunityPoolRequest, fee?: StdFee, memo?: string }; -type sendDelegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo, +type sendCommunityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal, fee?: StdFee, memo?: string }; -type sendQueryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse, +type sendMsgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse, fee?: StdFee, memo?: string }; -type sendValidatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards, +type sendQueryValidatorOutstandingRewardsRequestParams = { + value: QueryValidatorOutstandingRewardsRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorOutstandingRewardsRequestParams = { - value: QueryValidatorOutstandingRewardsRequest, +type sendQueryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest, fee?: StdFee, memo?: string }; @@ -232,68 +232,68 @@ type sendQueryValidatorSlashesRequestParams = { memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendValidatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendValidatorHistoricalRewardsRecordParams = { + value: ValidatorHistoricalRewardsRecord, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type sendValidatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord, fee?: StdFee, memo?: string }; -type sendValidatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord, +type sendValidatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord, fee?: StdFee, memo?: string }; -type sendQueryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest, +type sendDelegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo, fee?: StdFee, memo?: string }; -type sendQueryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse, +type sendMsgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward, fee?: StdFee, memo?: string }; -type sendMsgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress, +type sendMsgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend, fee?: StdFee, memo?: string }; -type sendMsgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward, +type sendValidatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards, fee?: StdFee, memo?: string }; -type sendMsgDepositValidatorRewardsPoolResponseParams = { - value: MsgDepositValidatorRewardsPoolResponse, +type sendValidatorSlashEventsParams = { + value: ValidatorSlashEvents, fee?: StdFee, memo?: string }; -type sendCommunityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal, +type sendMsgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse, fee?: StdFee, memo?: string }; -type sendQueryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse, +type sendQueryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse, fee?: StdFee, memo?: string }; @@ -304,305 +304,305 @@ type sendDelegatorStartingInfoParams = { memo?: string }; -type sendMsgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse, +type sendQueryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendMsgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse, +type sendMsgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission, fee?: StdFee, memo?: string }; -type sendValidatorHistoricalRewardsRecordParams = { - value: ValidatorHistoricalRewardsRecord, +type sendQueryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest, fee?: StdFee, memo?: string }; -type sendMsgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission, +type sendValidatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards, fee?: StdFee, memo?: string }; -type sendQueryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord, +type sendQueryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse, +type sendValidatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord, fee?: StdFee, memo?: string }; -type sendValidatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards, +type sendDelegatorStartingInfoRecordParams = { + value: DelegatorStartingInfoRecord, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventsParams = { - value: ValidatorSlashEvents, +type sendMsgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendMsgDepositValidatorRewardsPoolResponseParams = { + value: MsgDepositValidatorRewardsPoolResponse, fee?: StdFee, memo?: string }; -type sendFeePoolParams = { - value: FeePool, +type sendValidatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission, fee?: StdFee, memo?: string }; -type sendQueryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest, +type sendValidatorSlashEventParams = { + value: ValidatorSlashEvent, fee?: StdFee, memo?: string }; -type msgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse, -}; - -type validatorSlashEventParams = { - value: ValidatorSlashEvent, -}; - -type queryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, -}; - -type queryValidatorCommissionResponseParams = { - value: QueryValidatorCommissionResponse, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest, +type queryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest, }; -type queryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse, +type delegationDelegatorRewardParams = { + value: DelegationDelegatorReward, }; -type communityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit, +type validatorCurrentRewardsParams = { + value: ValidatorCurrentRewards, }; -type validatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord, +type msgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress, }; -type validatorCurrentRewardsParams = { - value: ValidatorCurrentRewards, +type msgFundCommunityPoolParams = { + value: MsgFundCommunityPool, }; -type validatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission, +type msgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse, }; -type msgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse, +type queryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse, }; -type msgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryDelegationRewardsRequestParams = { value: QueryDelegationRewardsRequest, }; -type queryCommunityPoolRequestParams = { - value: QueryCommunityPoolRequest, +type communityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit, }; -type delegationDelegatorRewardParams = { - value: DelegationDelegatorReward, +type msgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool, }; -type msgFundCommunityPoolParams = { - value: MsgFundCommunityPool, +type queryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse, }; -type delegatorStartingInfoRecordParams = { - value: DelegatorStartingInfoRecord, +type queryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, }; -type paramsParams = { - value: Params, +type feePoolParams = { + value: FeePool, }; -type validatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord, +type queryValidatorCommissionResponseParams = { + value: QueryValidatorCommissionResponse, +}; + +type queryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse, }; type genesisStateParams = { value: GenesisState, }; -type queryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse, +type msgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse, }; -type msgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse, +type queryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse, }; -type msgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend, +type queryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, }; -type delegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo, +type queryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest, }; -type queryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse, +type queryCommunityPoolRequestParams = { + value: QueryCommunityPoolRequest, }; -type validatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards, +type communityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal, +}; + +type msgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse, }; type queryValidatorOutstandingRewardsRequestParams = { value: QueryValidatorOutstandingRewardsRequest, }; +type queryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest, +}; + type queryValidatorSlashesRequestParams = { value: QueryValidatorSlashesRequest, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type validatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type validatorHistoricalRewardsRecordParams = { + value: ValidatorHistoricalRewardsRecord, }; -type queryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type validatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord, }; -type validatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord, +type validatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord, }; -type queryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest, +type delegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo, }; -type queryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse, +type msgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward, }; -type msgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress, +type msgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend, }; -type msgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward, +type validatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards, }; -type msgDepositValidatorRewardsPoolResponseParams = { - value: MsgDepositValidatorRewardsPoolResponse, +type validatorSlashEventsParams = { + value: ValidatorSlashEvents, }; -type communityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal, +type msgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse, }; -type queryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse, +type queryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse, }; type delegatorStartingInfoParams = { value: DelegatorStartingInfo, }; -type msgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse, +type queryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type paramsParams = { + value: Params, }; -type msgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse, +type msgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission, }; -type validatorHistoricalRewardsRecordParams = { - value: ValidatorHistoricalRewardsRecord, +type queryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest, }; -type msgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission, +type validatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards, }; -type queryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type validatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord, +type queryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse, }; -type queryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse, +type validatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord, }; -type validatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards, +type delegatorStartingInfoRecordParams = { + value: DelegatorStartingInfoRecord, }; -type validatorSlashEventsParams = { - value: ValidatorSlashEvents, +type msgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type msgDepositValidatorRewardsPoolResponseParams = { + value: MsgDepositValidatorRewardsPoolResponse, }; -type feePoolParams = { - value: FeePool, +type validatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission, }; -type queryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest, +type validatorSlashEventParams = { + value: ValidatorSlashEvent, }; @@ -635,269 +635,241 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgWithdrawDelegatorRewardResponse({ value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise { - if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvent: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorSlashEvent({ value: ValidatorSlashEvent.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendValidatorSlashEvent: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise { + async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorCommissionResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorCommissionResponse({ value: QueryValidatorCommissionResponse.fromPartial(value) }) + let msg = this.queryDelegationTotalRewardsRequest({ value: QueryDelegationTotalRewardsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise { + async sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegationDelegatorReward: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorWithdrawAddressRequest({ value: QueryDelegatorWithdrawAddressRequest.fromPartial(value) }) + let msg = this.delegationDelegatorReward({ value: DelegationDelegatorReward.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegationDelegatorReward: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: sendQueryDelegatorWithdrawAddressResponseParams): Promise { + async sendValidatorCurrentRewards({ value, fee, memo }: sendValidatorCurrentRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorCurrentRewards: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorWithdrawAddressResponse({ value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }) + let msg = this.validatorCurrentRewards({ value: ValidatorCurrentRewards.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorCurrentRewards: Could not broadcast Tx: '+ e.message) } }, - async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise { + async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.communityPoolSpendProposalWithDeposit({ value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }) + let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: sendValidatorAccumulatedCommissionRecordParams): Promise { + async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorAccumulatedCommissionRecord({ value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }) + let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorCurrentRewards({ value, fee, memo }: sendValidatorCurrentRewardsParams): Promise { + async sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewards: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorCurrentRewards({ value: ValidatorCurrentRewards.fromPartial(value) }) + let msg = this.msgCommunityPoolSpendResponse({ value: MsgCommunityPoolSpendResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorCurrentRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise { + async sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommission: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCommunityPoolResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorAccumulatedCommission({ value: ValidatorAccumulatedCommission.fromPartial(value) }) + let msg = this.queryCommunityPoolResponse({ value: QueryCommunityPoolResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorAccumulatedCommission: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommunityPoolResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSetWithdrawAddressResponse({ value: MsgSetWithdrawAddressResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise { + async sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationRewardsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFundCommunityPoolResponse({ value: MsgFundCommunityPoolResponse.fromPartial(value) }) + let msg = this.queryDelegationRewardsRequest({ value: QueryDelegationRewardsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise { + async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationRewardsRequest({ value: QueryDelegationRewardsRequest.fromPartial(value) }) + let msg = this.communityPoolSpendProposalWithDeposit({ value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise { + async sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCommunityPoolRequest({ value: QueryCommunityPoolRequest.fromPartial(value) }) + let msg = this.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCommunityPoolRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: '+ e.message) } }, - async sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise { + async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegationDelegatorReward: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegationDelegatorReward({ value: DelegationDelegatorReward.fromPartial(value) }) + let msg = this.queryValidatorOutstandingRewardsResponse({ value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegationDelegatorReward: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) }) + let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise { + async sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfoRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendFeePool: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegatorStartingInfoRecord({ value: DelegatorStartingInfoRecord.fromPartial(value) }) + let msg = this.feePool({ value: FeePool.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegatorStartingInfoRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFeePool: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorCommissionResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryValidatorCommissionResponse({ value: QueryValidatorCommissionResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise { + async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: sendQueryDelegatorWithdrawAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorCurrentRewardsRecord({ value: ValidatorCurrentRewardsRecord.fromPartial(value) }) + let msg = this.queryDelegatorWithdrawAddressResponse({ value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) } }, @@ -915,213 +887,213 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise { + async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorOutstandingRewardsResponse({ value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }) + let msg = this.msgWithdrawDelegatorRewardResponse({ value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise { + async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgWithdrawValidatorCommissionResponse({ value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }) + let msg = this.queryValidatorDistributionInfoResponse({ value: QueryValidatorDistributionInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) }) + let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise { + async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorWithdrawInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegatorWithdrawInfo({ value: DelegatorWithdrawInfo.fromPartial(value) }) + let msg = this.queryDelegatorWithdrawAddressRequest({ value: QueryDelegatorWithdrawAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegatorWithdrawInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise { + async sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCommunityPoolRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationRewardsResponse({ value: QueryDelegationRewardsResponse.fromPartial(value) }) + let msg = this.queryCommunityPoolRequest({ value: QueryCommunityPoolRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationRewardsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommunityPoolRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise { + async sendCommunityPoolSpendProposal({ value, fee, memo }: sendCommunityPoolSpendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewards: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCommunityPoolSpendProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorHistoricalRewards({ value: ValidatorHistoricalRewards.fromPartial(value) }) + let msg = this.communityPoolSpendProposal({ value: CommunityPoolSpendProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorHistoricalRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommunityPoolSpendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise { + async sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorOutstandingRewardsRequest({ value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }) + let msg = this.msgSetWithdrawAddressResponse({ value: MsgSetWithdrawAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise { + async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorSlashesRequest({ value: QueryValidatorSlashesRequest.fromPartial(value) }) + let msg = this.queryValidatorOutstandingRewardsRequest({ value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorSlashesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorCommissionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryValidatorCommissionRequest({ value: QueryValidatorCommissionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorCommissionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorSlashesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.queryValidatorSlashesRequest({ value: QueryValidatorSlashesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorSlashesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { + async sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }) + let msg = this.validatorOutstandingRewardsRecord({ value: ValidatorOutstandingRewardsRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise { + async sendValidatorHistoricalRewardsRecord({ value, fee, memo }: sendValidatorHistoricalRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorOutstandingRewardsRecord({ value: ValidatorOutstandingRewardsRecord.fromPartial(value) }) + let msg = this.validatorHistoricalRewardsRecord({ value: ValidatorHistoricalRewardsRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise { + async sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorDistributionInfoRequest({ value: QueryValidatorDistributionInfoRequest.fromPartial(value) }) + let msg = this.validatorCurrentRewardsRecord({ value: ValidatorCurrentRewardsRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: sendQueryDelegationTotalRewardsResponseParams): Promise { + async sendValidatorSlashEventRecord({ value, fee, memo }: sendValidatorSlashEventRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorSlashEventRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationTotalRewardsResponse({ value: QueryDelegationTotalRewardsResponse.fromPartial(value) }) + let msg = this.validatorSlashEventRecord({ value: ValidatorSlashEventRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSlashEventRecord: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise { + async sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegatorWithdrawInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) }) + let msg = this.delegatorWithdrawInfo({ value: DelegatorWithdrawInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorWithdrawInfo: Could not broadcast Tx: '+ e.message) } }, @@ -1139,129 +1111,129 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise { + async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCommunityPoolSpend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDepositValidatorRewardsPoolResponse({ value: MsgDepositValidatorRewardsPoolResponse.fromPartial(value) }) + let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message) } }, - async sendCommunityPoolSpendProposal({ value, fee, memo }: sendCommunityPoolSpendProposalParams): Promise { + async sendValidatorOutstandingRewards({ value, fee, memo }: sendValidatorOutstandingRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorOutstandingRewards: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.communityPoolSpendProposal({ value: CommunityPoolSpendProposal.fromPartial(value) }) + let msg = this.validatorOutstandingRewards({ value: ValidatorOutstandingRewards.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCommunityPoolSpendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorOutstandingRewards: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise { + async sendValidatorSlashEvents({ value, fee, memo }: sendValidatorSlashEventsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorSlashEvents: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCommunityPoolResponse({ value: QueryCommunityPoolResponse.fromPartial(value) }) + let msg = this.validatorSlashEvents({ value: ValidatorSlashEvents.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCommunityPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSlashEvents: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise { + async sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegatorStartingInfo({ value: DelegatorStartingInfo.fromPartial(value) }) + let msg = this.msgWithdrawValidatorCommissionResponse({ value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegatorStartingInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise { + async sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorSlashesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.fromPartial(value) }) + let msg = this.queryValidatorSlashesResponse({ value: QueryValidatorSlashesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorSlashesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise { + async sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegatorStartingInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorDistributionInfoResponse({ value: QueryValidatorDistributionInfoResponse.fromPartial(value) }) + let msg = this.delegatorStartingInfo({ value: DelegatorStartingInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorStartingInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise { + async sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: sendQueryDelegationTotalRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCommunityPoolSpendResponse({ value: MsgCommunityPoolSpendResponse.fromPartial(value) }) + let msg = this.queryDelegationTotalRewardsResponse({ value: QueryDelegationTotalRewardsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorHistoricalRewardsRecord({ value, fee, memo }: sendValidatorHistoricalRewardsRecordParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorHistoricalRewardsRecord({ value: ValidatorHistoricalRewardsRecord.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, @@ -1279,212 +1251,216 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise { + async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorCommissionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorCommissionRequest({ value: QueryValidatorCommissionRequest.fromPartial(value) }) + let msg = this.queryValidatorDistributionInfoRequest({ value: QueryValidatorDistributionInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorCommissionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSlashEventRecord({ value, fee, memo }: sendValidatorSlashEventRecordParams): Promise { + async sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEventRecord: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorHistoricalRewards: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorSlashEventRecord({ value: ValidatorSlashEventRecord.fromPartial(value) }) + let msg = this.validatorHistoricalRewards({ value: ValidatorHistoricalRewards.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorSlashEventRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorHistoricalRewards: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorSlashesResponse({ value: QueryValidatorSlashesResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorSlashesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorOutstandingRewards({ value, fee, memo }: sendValidatorOutstandingRewardsParams): Promise { + async sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewards: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationRewardsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorOutstandingRewards({ value: ValidatorOutstandingRewards.fromPartial(value) }) + let msg = this.queryDelegationRewardsResponse({ value: QueryDelegationRewardsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorOutstandingRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSlashEvents({ value, fee, memo }: sendValidatorSlashEventsParams): Promise { + async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: sendValidatorAccumulatedCommissionRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvents: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorSlashEvents({ value: ValidatorSlashEvents.fromPartial(value) }) + let msg = this.validatorAccumulatedCommissionRecord({ value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorSlashEvents: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegatorStartingInfoRecord: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.delegatorStartingInfoRecord({ value: DelegatorStartingInfoRecord.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorStartingInfoRecord: Could not broadcast Tx: '+ e.message) } }, - async sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise { + async sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendFeePool: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.feePool({ value: FeePool.fromPartial(value) }) + let msg = this.msgFundCommunityPoolResponse({ value: MsgFundCommunityPoolResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendFeePool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise { + async sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationTotalRewardsRequest({ value: QueryDelegationTotalRewardsRequest.fromPartial(value) }) + let msg = this.msgDepositValidatorRewardsPoolResponse({ value: MsgDepositValidatorRewardsPoolResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Could not broadcast Tx: '+ e.message) } }, - - msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message) + async sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise { + if (!signer) { + throw new Error('TxClient:sendValidatorAccumulatedCommission: Unable to sign Tx. Signer is not present.') } - }, - - validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject { - try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial( value ) } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.validatorAccumulatedCommission({ value: ValidatorAccumulatedCommission.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message) + throw new Error('TxClient:sendValidatorAccumulatedCommission: Could not broadcast Tx: '+ e.message) } }, - queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } + async sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise { + if (!signer) { + throw new Error('TxClient:sendValidatorSlashEvent: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.validatorSlashEvent({ value: ValidatorSlashEvent.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:sendValidatorSlashEvent: Could not broadcast Tx: '+ e.message) } }, - queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject { + + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", value: QueryValidatorCommissionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorCommissionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject { + queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message) } }, - queryDelegatorWithdrawAddressResponse({ value }: queryDelegatorWithdrawAddressResponseParams): EncodeObject { + delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message) } }, - communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject { + validatorCurrentRewards({ value }: validatorCurrentRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message) } }, - validatorAccumulatedCommissionRecord({ value }: validatorAccumulatedCommissionRecordParams): EncodeObject { + msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message) } }, - validatorCurrentRewards({ value }: validatorCurrentRewardsParams): EncodeObject { + msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message) } }, - validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject { + msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message) } }, - msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject { + queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommunityPoolResponse: Could not create message: ' + e.message) } }, - msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, @@ -1496,51 +1472,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject { + communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message) + throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message) } }, - delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject { + msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message) } }, - msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject { + queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message) } }, - delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject { + queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + feePool({ value }: feePoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:FeePool: Could not create message: ' + e.message) } }, - validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject { + queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", value: QueryValidatorCommissionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorCommissionResponse: Could not create message: ' + e.message) + } + }, + + queryDelegatorWithdrawAddressResponse({ value }: queryDelegatorWithdrawAddressResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message) } }, @@ -1552,51 +1536,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject { + msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message) } }, - msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject { + queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message) } }, - msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject { + queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) } }, - delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject { + queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message) } }, - queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject { + queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message) } }, - validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject { + communityPoolSpendProposal({ value }: communityPoolSpendProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message) + throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message) + } + }, + + msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message) } }, @@ -1608,6 +1600,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message) + } + }, + queryValidatorSlashesRequest({ value }: queryValidatorSlashesRequestParams): EncodeObject { try { return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", value: QueryValidatorSlashesRequest.fromPartial( value ) } @@ -1616,91 +1616,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + validatorHistoricalRewardsRecord({ value }: validatorHistoricalRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { + validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message) } }, - validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject { + validatorSlashEventRecord({ value }: validatorSlashEventRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message) } }, - queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject { + delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message) } }, - queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject { + msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message) } }, - msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject { + msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message) } }, - msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject { + validatorOutstandingRewards({ value }: validatorOutstandingRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message) } }, - msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject { + validatorSlashEvents({ value }: validatorSlashEventsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", value: MsgDepositValidatorRewardsPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositValidatorRewardsPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message) } }, - communityPoolSpendProposal({ value }: communityPoolSpendProposalParams): EncodeObject { + msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message) } }, - queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject { + queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommunityPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message) } }, @@ -1712,115 +1712,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject { + queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject { + msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message) } }, - validatorHistoricalRewardsRecord({ value }: validatorHistoricalRewardsRecordParams): EncodeObject { + queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message) } }, - msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject { + validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message) } }, - queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - validatorSlashEventRecord({ value }: validatorSlashEventRecordParams): EncodeObject { + queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message) } }, - queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject { + validatorAccumulatedCommissionRecord({ value }: validatorAccumulatedCommissionRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message) } }, - validatorOutstandingRewards({ value }: validatorOutstandingRewardsParams): EncodeObject { + delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message) + throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message) } }, - validatorSlashEvents({ value }: validatorSlashEventsParams): EncodeObject { + msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", value: MsgDepositValidatorRewardsPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositValidatorRewardsPoolResponse: Could not create message: ' + e.message) } }, - feePool({ value }: feePoolParams): EncodeObject { + validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:FeePool: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message) } }, - queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject { + validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.distribution.v1beta1/registry.ts b/ts-client/cosmos.distribution.v1beta1/registry.ts index 59ffc0d2..fd523fa1 100755 --- a/ts-client/cosmos.distribution.v1beta1/registry.ts +++ b/ts-client/cosmos.distribution.v1beta1/registry.ts @@ -1,114 +1,114 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], - ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], + ["/cosmos.distribution.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], + ["/cosmos.distribution.v1beta1.DelegationDelegatorReward", DelegationDelegatorReward], + ["/cosmos.distribution.v1beta1.ValidatorCurrentRewards", ValidatorCurrentRewards], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], + ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], + ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", MsgCommunityPoolSpendResponse], + ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], + ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], + ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], + ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], + ["/cosmos.distribution.v1beta1.FeePool", FeePool], ["/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", QueryValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", QueryDelegatorWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], - ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", ValidatorAccumulatedCommissionRecord], - ["/cosmos.distribution.v1beta1.ValidatorCurrentRewards", ValidatorCurrentRewards], - ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], - ["/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", QueryCommunityPoolRequest], - ["/cosmos.distribution.v1beta1.DelegationDelegatorReward", DelegationDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], - ["/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", DelegatorStartingInfoRecord], - ["/cosmos.distribution.v1beta1.Params", Params], - ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], ["/cosmos.distribution.v1beta1.GenesisState", GenesisState], - ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], - ["/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", DelegatorWithdrawInfo], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], - ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], + ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], + ["/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", QueryCommunityPoolRequest], + ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", CommunityPoolSpendProposal], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", QueryValidatorOutstandingRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], ["/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", QueryValidatorSlashesRequest], - ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.distribution.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", ValidatorOutstandingRewardsRecord], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], - ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], - ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", CommunityPoolSpendProposal], - ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], - ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", MsgCommunityPoolSpendResponse], ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", ValidatorHistoricalRewardsRecord], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], - ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], + ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], ["/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", ValidatorSlashEventRecord], - ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], + ["/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", DelegatorWithdrawInfo], + ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], + ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", ValidatorOutstandingRewards], ["/cosmos.distribution.v1beta1.ValidatorSlashEvents", ValidatorSlashEvents], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], + ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.distribution.v1beta1.FeePool", FeePool], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], + ["/cosmos.distribution.v1beta1.Params", Params], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], + ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], + ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], + ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", ValidatorAccumulatedCommissionRecord], + ["/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", DelegatorStartingInfoRecord], + ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], + ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], + ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], ]; diff --git a/ts-client/cosmos.distribution.v1beta1/rest.ts b/ts-client/cosmos.distribution.v1beta1/rest.ts index d9797d22..a631cf49 100644 --- a/ts-client/cosmos.distribution.v1beta1/rest.ts +++ b/ts-client/cosmos.distribution.v1beta1/rest.ts @@ -9,6 +9,148 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface DecCoin { + denom?: string; + amount?: string; +} + +export interface DelegationDelegatorReward { + validator_address?: string; + reward?: { denom?: string; amount?: string }[]; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryCommunityPoolResponse { + pool?: { denom?: string; amount?: string }[]; +} + +export interface QueryDelegationRewardsResponse { + rewards?: { denom?: string; amount?: string }[]; +} + +export interface QueryDelegationTotalRewardsResponse { + rewards?: { validator_address?: string; reward?: { denom?: string; amount?: string }[] }[]; + total?: { denom?: string; amount?: string }[]; +} + +export interface QueryDelegatorValidatorsResponse { + validators?: string[]; +} + +export interface QueryDelegatorWithdrawAddressResponse { + withdraw_address?: string; +} + +export interface QueryParamsResponse { + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; +} + +export interface QueryValidatorCommissionResponse { + commission?: { commission?: { denom?: string; amount?: string }[] }; +} + +export interface QueryValidatorDistributionInfoResponse { + operator_address?: string; + self_bond_rewards?: { denom?: string; amount?: string }[]; + commission?: { denom?: string; amount?: string }[]; +} + +export interface QueryValidatorOutstandingRewardsResponse { + rewards?: { rewards?: { denom?: string; amount?: string }[] }; +} + +export interface QueryValidatorSlashesResponse { + slashes?: { validator_period?: string; fraction?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface ValidatorAccumulatedCommission { + commission?: { denom?: string; amount?: string }[]; +} + +export interface ValidatorSlashEvent { + /** @format uint64 */ + validator_period?: string; + fraction?: string; +} + +export interface V1Beta1Params { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} + +export interface V1Beta1ValidatorOutstandingRewards { + rewards?: { denom?: string; amount?: string }[]; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export type MsgCommunityPoolSpendResponse = object; + +export type MsgDepositValidatorRewardsPoolResponse = object; + +export type MsgFundCommunityPoolResponse = object; + +export type MsgSetWithdrawAddressResponse = object; + +export type MsgUpdateParamsResponse = object; + +export interface MsgWithdrawDelegatorRewardResponse { + amount?: { denom?: string; amount?: string }[]; +} + +export interface MsgWithdrawValidatorCommissionResponse { + amount?: { denom?: string; amount?: string }[]; +} + +export interface Params { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +274,198 @@ export class HttpClient { /** * @title HTTP API Console cosmos.distribution.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryCommunityPool + * @request GET:/cosmos/distribution/v1beta1/community_pool + */ + queryCommunityPool = (params: RequestParams = {}) => + this.request< + { pool?: { denom?: string; amount?: string }[] }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/community_pool`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegationTotalRewards + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards + */ + queryDelegationTotalRewards = (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + rewards?: { validator_address?: string; reward?: { denom?: string; amount?: string }[] }[]; + total?: { denom?: string; amount?: string }[]; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegationRewards + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address} + */ + queryDelegationRewards = (delegatorAddress: string, validatorAddress: string, params: RequestParams = {}) => + this.request< + { rewards?: { denom?: string; amount?: string }[] }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards/${validatorAddress}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegatorValidators + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators + */ + queryDelegatorValidators = (delegatorAddress: string, params: RequestParams = {}) => + this.request<{ validators?: string[] }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/validators`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegatorWithdrawAddress + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address + */ + queryDelegatorWithdrawAddress = (delegatorAddress: string, params: RequestParams = {}) => + this.request<{ withdraw_address?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/withdraw_address`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/distribution/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/params`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorDistributionInfo + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address} + */ + queryValidatorDistributionInfo = (validatorAddress: string, params: RequestParams = {}) => + this.request< + { + operator_address?: string; + self_bond_rewards?: { denom?: string; amount?: string }[]; + commission?: { denom?: string; amount?: string }[]; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorCommission + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/commission + */ + queryValidatorCommission = (validatorAddress: string, params: RequestParams = {}) => + this.request< + { commission?: { commission?: { denom?: string; amount?: string }[] } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/commission`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorOutstandingRewards + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards + */ + queryValidatorOutstandingRewards = (validatorAddress: string, params: RequestParams = {}) => + this.request< + { rewards?: { rewards?: { denom?: string; amount?: string }[] } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/outstanding_rewards`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorSlashes + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/slashes + */ + queryValidatorSlashes = ( + validatorAddress: string, + query?: { + starting_height?: string; + ending_height?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + slashes?: { validator_period?: string; fraction?: string }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/slashes`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.evidence.v1beta1/api.swagger.yml b/ts-client/cosmos.evidence.v1beta1/api.swagger.yml index f3541def..15070cb6 100644 --- a/ts-client/cosmos.evidence.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.evidence.v1beta1/api.swagger.yml @@ -3,3 +3,206 @@ info: title: HTTP API Console cosmos.evidence.v1beta1 name: '' description: '' +paths: + /cosmos/evidence/v1beta1/evidence: + get: + operationId: Query_AllEvidence + responses: + '200': + description: A successful response. + schema: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/evidence/v1beta1/evidence/{hash}: + get: + operationId: Query_Evidence + responses: + '200': + description: A successful response. + schema: + type: object + properties: + evidence: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: hash + description: |- + hash defines the evidence hash of the requested evidence. + + Since: cosmos-sdk 0.47 + in: path + required: true + type: string + - name: evidence_hash + in: query + required: false + type: string + format: byte + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryAllEvidenceResponse: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryEvidenceResponse: + type: object + properties: + evidence: + type: object + properties: + '@type': + type: string + additionalProperties: {} + MsgSubmitEvidenceResponse: + type: object + properties: + hash: + type: string + format: byte diff --git a/ts-client/cosmos.evidence.v1beta1/module.ts b/ts-client/cosmos.evidence.v1beta1/module.ts index 60572c3c..f8eb47ff 100755 --- a/ts-client/cosmos.evidence.v1beta1/module.ts +++ b/ts-client/cosmos.evidence.v1beta1/module.ts @@ -6,56 +6,56 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; +import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; -export { QueryAllEvidenceResponse, QueryEvidenceResponse, QueryAllEvidenceRequest, MsgSubmitEvidence, Equivocation, GenesisState, QueryEvidenceRequest, MsgSubmitEvidenceResponse }; +export { Equivocation, MsgSubmitEvidence, GenesisState, QueryEvidenceRequest, QueryEvidenceResponse, QueryAllEvidenceResponse, QueryAllEvidenceRequest, MsgSubmitEvidenceResponse }; -type sendQueryAllEvidenceResponseParams = { - value: QueryAllEvidenceResponse, +type sendEquivocationParams = { + value: Equivocation, fee?: StdFee, memo?: string }; -type sendQueryEvidenceResponseParams = { - value: QueryEvidenceResponse, +type sendMsgSubmitEvidenceParams = { + value: MsgSubmitEvidence, fee?: StdFee, memo?: string }; -type sendQueryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgSubmitEvidenceParams = { - value: MsgSubmitEvidence, +type sendQueryEvidenceRequestParams = { + value: QueryEvidenceRequest, fee?: StdFee, memo?: string }; -type sendEquivocationParams = { - value: Equivocation, +type sendQueryEvidenceResponseParams = { + value: QueryEvidenceResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAllEvidenceResponseParams = { + value: QueryAllEvidenceResponse, fee?: StdFee, memo?: string }; -type sendQueryEvidenceRequestParams = { - value: QueryEvidenceRequest, +type sendQueryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest, fee?: StdFee, memo?: string }; @@ -67,26 +67,14 @@ type sendMsgSubmitEvidenceResponseParams = { }; -type queryAllEvidenceResponseParams = { - value: QueryAllEvidenceResponse, -}; - -type queryEvidenceResponseParams = { - value: QueryEvidenceResponse, -}; - -type queryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest, +type equivocationParams = { + value: Equivocation, }; type msgSubmitEvidenceParams = { value: MsgSubmitEvidence, }; -type equivocationParams = { - value: Equivocation, -}; - type genesisStateParams = { value: GenesisState, }; @@ -95,6 +83,18 @@ type queryEvidenceRequestParams = { value: QueryEvidenceRequest, }; +type queryEvidenceResponseParams = { + value: QueryEvidenceResponse, +}; + +type queryAllEvidenceResponseParams = { + value: QueryAllEvidenceResponse, +}; + +type queryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest, +}; + type msgSubmitEvidenceResponseParams = { value: MsgSubmitEvidenceResponse, }; @@ -129,101 +129,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryAllEvidenceResponse({ value, fee, memo }: sendQueryAllEvidenceResponseParams): Promise { + async sendEquivocation({ value, fee, memo }: sendEquivocationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEvidenceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEquivocation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEvidenceResponse({ value: QueryAllEvidenceResponse.fromPartial(value) }) + let msg = this.equivocation({ value: Equivocation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEvidenceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEquivocation: Could not broadcast Tx: '+ e.message) } }, - async sendQueryEvidenceResponse({ value, fee, memo }: sendQueryEvidenceResponseParams): Promise { + async sendMsgSubmitEvidence({ value, fee, memo }: sendMsgSubmitEvidenceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEvidenceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitEvidence: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryEvidenceResponse({ value: QueryEvidenceResponse.fromPartial(value) }) + let msg = this.msgSubmitEvidence({ value: MsgSubmitEvidence.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryEvidenceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitEvidence: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEvidenceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEvidenceRequest({ value: QueryAllEvidenceRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEvidenceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitEvidence({ value, fee, memo }: sendMsgSubmitEvidenceParams): Promise { + async sendQueryEvidenceRequest({ value, fee, memo }: sendQueryEvidenceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitEvidence: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryEvidenceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitEvidence({ value: MsgSubmitEvidence.fromPartial(value) }) + let msg = this.queryEvidenceRequest({ value: QueryEvidenceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitEvidence: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEvidenceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendEquivocation({ value, fee, memo }: sendEquivocationParams): Promise { + async sendQueryEvidenceResponse({ value, fee, memo }: sendQueryEvidenceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEquivocation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryEvidenceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.equivocation({ value: Equivocation.fromPartial(value) }) + let msg = this.queryEvidenceResponse({ value: QueryEvidenceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEquivocation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEvidenceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAllEvidenceResponse({ value, fee, memo }: sendQueryAllEvidenceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllEvidenceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryAllEvidenceResponse({ value: QueryAllEvidenceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEvidenceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryEvidenceRequest({ value, fee, memo }: sendQueryEvidenceRequestParams): Promise { + async sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEvidenceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllEvidenceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryEvidenceRequest({ value: QueryEvidenceRequest.fromPartial(value) }) + let msg = this.queryAllEvidenceRequest({ value: QueryAllEvidenceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryEvidenceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEvidenceRequest: Could not broadcast Tx: '+ e.message) } }, @@ -242,59 +242,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - queryAllEvidenceResponse({ value }: queryAllEvidenceResponseParams): EncodeObject { + equivocation({ value }: equivocationParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", value: QueryAllEvidenceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.Equivocation", value: Equivocation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEvidenceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Equivocation: Could not create message: ' + e.message) } }, - queryEvidenceResponse({ value }: queryEvidenceResponseParams): EncodeObject { + msgSubmitEvidence({ value }: msgSubmitEvidenceParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", value: QueryEvidenceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: MsgSubmitEvidence.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEvidenceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitEvidence: Could not create message: ' + e.message) } }, - queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEvidenceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgSubmitEvidence({ value }: msgSubmitEvidenceParams): EncodeObject { + queryEvidenceRequest({ value }: queryEvidenceRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: MsgSubmitEvidence.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitEvidence: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message) } }, - equivocation({ value }: equivocationParams): EncodeObject { + queryEvidenceResponse({ value }: queryEvidenceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.Equivocation", value: Equivocation.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", value: QueryEvidenceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Equivocation: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEvidenceResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryAllEvidenceResponse({ value }: queryAllEvidenceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", value: QueryAllEvidenceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEvidenceResponse: Could not create message: ' + e.message) } }, - queryEvidenceRequest({ value }: queryEvidenceRequestParams): EncodeObject { + queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEvidenceRequest: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.evidence.v1beta1/registry.ts b/ts-client/cosmos.evidence.v1beta1/registry.ts index ffc6bb1d..6b9099d1 100755 --- a/ts-client/cosmos.evidence.v1beta1/registry.ts +++ b/ts-client/cosmos.evidence.v1beta1/registry.ts @@ -1,21 +1,21 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; +import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", QueryAllEvidenceResponse], - ["/cosmos.evidence.v1beta1.QueryEvidenceResponse", QueryEvidenceResponse], - ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], - ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], ["/cosmos.evidence.v1beta1.Equivocation", Equivocation], + ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], ["/cosmos.evidence.v1beta1.GenesisState", GenesisState], ["/cosmos.evidence.v1beta1.QueryEvidenceRequest", QueryEvidenceRequest], + ["/cosmos.evidence.v1beta1.QueryEvidenceResponse", QueryEvidenceResponse], + ["/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", QueryAllEvidenceResponse], + ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], ["/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", MsgSubmitEvidenceResponse], ]; diff --git a/ts-client/cosmos.evidence.v1beta1/rest.ts b/ts-client/cosmos.evidence.v1beta1/rest.ts index 77ecd312..d9fe1fd2 100644 --- a/ts-client/cosmos.evidence.v1beta1/rest.ts +++ b/ts-client/cosmos.evidence.v1beta1/rest.ts @@ -9,6 +9,52 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryAllEvidenceResponse { + evidence?: { "@type"?: string }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryEvidenceResponse { + evidence?: { "@type"?: string }; +} + +export interface MsgSubmitEvidenceResponse { + /** @format byte */ + hash?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +178,49 @@ export class HttpClient { /** * @title HTTP API Console cosmos.evidence.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAllEvidence + * @request GET:/cosmos/evidence/v1beta1/evidence + */ + queryAllEvidence = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { evidence?: { "@type"?: string }[]; pagination?: { next_key?: string; total?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/evidence/v1beta1/evidence`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryEvidence + * @request GET:/cosmos/evidence/v1beta1/evidence/{hash} + */ + queryEvidence = (hash: string, query?: { evidence_hash?: string }, params: RequestParams = {}) => + this.request< + { evidence?: { "@type"?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/evidence/v1beta1/evidence/${hash}`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.feegrant.v1beta1/api.swagger.yml b/ts-client/cosmos.feegrant.v1beta1/api.swagger.yml index f80b7d5c..13c9bf22 100644 --- a/ts-client/cosmos.feegrant.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.feegrant.v1beta1/api.swagger.yml @@ -3,3 +3,360 @@ info: title: HTTP API Console cosmos.feegrant.v1beta1 name: '' description: '' +paths: + /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: + get: + operationId: Query_Allowance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + allowance: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: granter + description: >- + granter is the address of the user granting an allowance of their + funds. + in: path + required: true + type: string + - name: grantee + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + in: path + required: true + type: string + tags: + - Query + /cosmos/feegrant/v1beta1/allowances/{grantee}: + get: + operationId: Query_Allowances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: grantee + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/feegrant/v1beta1/issued/{granter}: + get: + operationId: Query_AllowancesByGranter + responses: + '200': + description: A successful response. + schema: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: granter + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Grant: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryAllowanceResponse: + type: object + properties: + allowance: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryAllowancesByGranterResponse: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryAllowancesResponse: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + allowance: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + MsgGrantAllowanceResponse: + type: object + MsgPruneAllowancesResponse: + type: object + MsgRevokeAllowanceResponse: + type: object diff --git a/ts-client/cosmos.feegrant.v1beta1/module.ts b/ts-client/cosmos.feegrant.v1beta1/module.ts index aa132fd9..73050946 100755 --- a/ts-client/cosmos.feegrant.v1beta1/module.ts +++ b/ts-client/cosmos.feegrant.v1beta1/module.ts @@ -6,38 +6,26 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; - - -export { GenesisState, PeriodicAllowance, Grant, MsgRevokeAllowanceResponse, QueryAllowanceRequest, QueryAllowancesRequest, BasicAllowance, QueryAllowanceResponse, QueryAllowancesResponse, MsgPruneAllowances, MsgPruneAllowancesResponse, MsgRevokeAllowance, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse, AllowedMsgAllowance, MsgGrantAllowance, MsgGrantAllowanceResponse }; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -type sendGenesisStateParams = { - value: GenesisState, - fee?: StdFee, - memo?: string -}; -type sendPeriodicAllowanceParams = { - value: PeriodicAllowance, - fee?: StdFee, - memo?: string -}; +export { Grant, MsgGrantAllowance, QueryAllowanceResponse, QueryAllowancesRequest, MsgGrantAllowanceResponse, MsgRevokeAllowanceResponse, MsgPruneAllowances, AllowedMsgAllowance, MsgRevokeAllowance, PeriodicAllowance, QueryAllowancesByGranterResponse, BasicAllowance, GenesisState, QueryAllowancesByGranterRequest, QueryAllowancesResponse, MsgPruneAllowancesResponse, QueryAllowanceRequest }; type sendGrantParams = { value: Grant, @@ -45,14 +33,14 @@ type sendGrantParams = { memo?: string }; -type sendMsgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse, +type sendMsgGrantAllowanceParams = { + value: MsgGrantAllowance, fee?: StdFee, memo?: string }; -type sendQueryAllowanceRequestParams = { - value: QueryAllowanceRequest, +type sendQueryAllowanceResponseParams = { + value: QueryAllowanceResponse, fee?: StdFee, memo?: string }; @@ -63,20 +51,14 @@ type sendQueryAllowancesRequestParams = { memo?: string }; -type sendBasicAllowanceParams = { - value: BasicAllowance, - fee?: StdFee, - memo?: string -}; - -type sendQueryAllowanceResponseParams = { - value: QueryAllowanceResponse, +type sendMsgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse, fee?: StdFee, memo?: string }; -type sendQueryAllowancesResponseParams = { - value: QueryAllowancesResponse, +type sendMsgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse, fee?: StdFee, memo?: string }; @@ -87,8 +69,8 @@ type sendMsgPruneAllowancesParams = { memo?: string }; -type sendMsgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse, +type sendAllowedMsgAllowanceParams = { + value: AllowedMsgAllowance, fee?: StdFee, memo?: string }; @@ -99,8 +81,8 @@ type sendMsgRevokeAllowanceParams = { memo?: string }; -type sendQueryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest, +type sendPeriodicAllowanceParams = { + value: PeriodicAllowance, fee?: StdFee, memo?: string }; @@ -111,91 +93,109 @@ type sendQueryAllowancesByGranterResponseParams = { memo?: string }; -type sendAllowedMsgAllowanceParams = { - value: AllowedMsgAllowance, +type sendBasicAllowanceParams = { + value: BasicAllowance, fee?: StdFee, memo?: string }; -type sendMsgGrantAllowanceParams = { - value: MsgGrantAllowance, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse, +type sendQueryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest, fee?: StdFee, memo?: string }; +type sendQueryAllowancesResponseParams = { + value: QueryAllowancesResponse, + fee?: StdFee, + memo?: string +}; -type genesisStateParams = { - value: GenesisState, +type sendMsgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse, + fee?: StdFee, + memo?: string }; -type periodicAllowanceParams = { - value: PeriodicAllowance, +type sendQueryAllowanceRequestParams = { + value: QueryAllowanceRequest, + fee?: StdFee, + memo?: string }; + type grantParams = { value: Grant, }; -type msgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse, +type msgGrantAllowanceParams = { + value: MsgGrantAllowance, }; -type queryAllowanceRequestParams = { - value: QueryAllowanceRequest, +type queryAllowanceResponseParams = { + value: QueryAllowanceResponse, }; type queryAllowancesRequestParams = { value: QueryAllowancesRequest, }; -type basicAllowanceParams = { - value: BasicAllowance, -}; - -type queryAllowanceResponseParams = { - value: QueryAllowanceResponse, +type msgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse, }; -type queryAllowancesResponseParams = { - value: QueryAllowancesResponse, +type msgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse, }; type msgPruneAllowancesParams = { value: MsgPruneAllowances, }; -type msgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse, +type allowedMsgAllowanceParams = { + value: AllowedMsgAllowance, }; type msgRevokeAllowanceParams = { value: MsgRevokeAllowance, }; -type queryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest, +type periodicAllowanceParams = { + value: PeriodicAllowance, }; type queryAllowancesByGranterResponseParams = { value: QueryAllowancesByGranterResponse, }; -type allowedMsgAllowanceParams = { - value: AllowedMsgAllowance, +type basicAllowanceParams = { + value: BasicAllowance, }; -type msgGrantAllowanceParams = { - value: MsgGrantAllowance, +type genesisStateParams = { + value: GenesisState, }; -type msgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse, +type queryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest, +}; + +type queryAllowancesResponseParams = { + value: QueryAllowancesResponse, +}; + +type msgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse, +}; + +type queryAllowanceRequestParams = { + value: QueryAllowanceRequest, }; @@ -228,260 +228,244 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendGrant({ value, fee, memo }: sendGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.grant({ value: Grant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) } }, - async sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise { + async sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriodicAllowance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGrantAllowance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.periodicAllowance({ value: PeriodicAllowance.fromPartial(value) }) + let msg = this.msgGrantAllowance({ value: MsgGrantAllowance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPeriodicAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendGrant({ value, fee, memo }: sendGrantParams): Promise { + async sendQueryAllowanceResponse({ value, fee, memo }: sendQueryAllowanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowanceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.grant({ value: Grant.fromPartial(value) }) + let msg = this.queryAllowanceResponse({ value: QueryAllowanceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeAllowanceResponse({ value, fee, memo }: sendMsgRevokeAllowanceResponseParams): Promise { + async sendQueryAllowancesRequest({ value, fee, memo }: sendQueryAllowancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowancesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRevokeAllowanceResponse({ value: MsgRevokeAllowanceResponse.fromPartial(value) }) + let msg = this.queryAllowancesRequest({ value: QueryAllowancesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowanceRequest({ value, fee, memo }: sendQueryAllowanceRequestParams): Promise { + async sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGrantAllowanceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowanceRequest({ value: QueryAllowanceRequest.fromPartial(value) }) + let msg = this.msgGrantAllowanceResponse({ value: MsgGrantAllowanceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowanceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantAllowanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesRequest({ value, fee, memo }: sendQueryAllowancesRequestParams): Promise { + async sendMsgRevokeAllowanceResponse({ value, fee, memo }: sendMsgRevokeAllowanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowancesRequest({ value: QueryAllowancesRequest.fromPartial(value) }) + let msg = this.msgRevokeAllowanceResponse({ value: MsgRevokeAllowanceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowancesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendBasicAllowance({ value, fee, memo }: sendBasicAllowanceParams): Promise { + async sendMsgPruneAllowances({ value, fee, memo }: sendMsgPruneAllowancesParams): Promise { if (!signer) { - throw new Error('TxClient:sendBasicAllowance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPruneAllowances: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.basicAllowance({ value: BasicAllowance.fromPartial(value) }) + let msg = this.msgPruneAllowances({ value: MsgPruneAllowances.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBasicAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPruneAllowances: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowanceResponse({ value, fee, memo }: sendQueryAllowanceResponseParams): Promise { + async sendAllowedMsgAllowance({ value, fee, memo }: sendAllowedMsgAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAllowedMsgAllowance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowanceResponse({ value: QueryAllowanceResponse.fromPartial(value) }) + let msg = this.allowedMsgAllowance({ value: AllowedMsgAllowance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAllowedMsgAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise { + async sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeAllowance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowancesResponse({ value: QueryAllowancesResponse.fromPartial(value) }) + let msg = this.msgRevokeAllowance({ value: MsgRevokeAllowance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPruneAllowances({ value, fee, memo }: sendMsgPruneAllowancesParams): Promise { + async sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPruneAllowances: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPeriodicAllowance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPruneAllowances({ value: MsgPruneAllowances.fromPartial(value) }) + let msg = this.periodicAllowance({ value: PeriodicAllowance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPruneAllowances: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriodicAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise { + async sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPruneAllowancesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPruneAllowancesResponse({ value: MsgPruneAllowancesResponse.fromPartial(value) }) + let msg = this.queryAllowancesByGranterResponse({ value: QueryAllowancesByGranterResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPruneAllowancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise { + async sendBasicAllowance({ value, fee, memo }: sendBasicAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAllowance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBasicAllowance: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRevokeAllowance({ value: MsgRevokeAllowance.fromPartial(value) }) + let msg = this.basicAllowance({ value: BasicAllowance.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBasicAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesByGranterRequest({ value, fee, memo }: sendQueryAllowancesByGranterRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowancesByGranterRequest({ value: QueryAllowancesByGranterRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise { + async sendQueryAllowancesByGranterRequest({ value, fee, memo }: sendQueryAllowancesByGranterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllowancesByGranterResponse({ value: QueryAllowancesByGranterResponse.fromPartial(value) }) + let msg = this.queryAllowancesByGranterRequest({ value: QueryAllowancesByGranterRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAllowedMsgAllowance({ value, fee, memo }: sendAllowedMsgAllowanceParams): Promise { + async sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAllowedMsgAllowance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowancesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.allowedMsgAllowance({ value: AllowedMsgAllowance.fromPartial(value) }) + let msg = this.queryAllowancesResponse({ value: QueryAllowancesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAllowedMsgAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise { + async sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowance: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPruneAllowancesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGrantAllowance({ value: MsgGrantAllowance.fromPartial(value) }) + let msg = this.msgPruneAllowancesResponse({ value: MsgPruneAllowancesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGrantAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPruneAllowancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise { + async sendQueryAllowanceRequest({ value, fee, memo }: sendQueryAllowanceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowanceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllowanceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGrantAllowanceResponse({ value: MsgGrantAllowanceResponse.fromPartial(value) }) + let msg = this.queryAllowanceRequest({ value: QueryAllowanceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGrantAllowanceResponse: Could not broadcast Tx: '+ e.message) - } - }, - - - genesisState({ value }: genesisStateParams): EncodeObject { - try { - return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:sendQueryAllowanceRequest: Could not broadcast Tx: '+ e.message) } }, - periodicAllowance({ value }: periodicAllowanceParams): EncodeObject { - try { - return { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: PeriodicAllowance.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:PeriodicAllowance: Could not create message: ' + e.message) - } - }, grant({ value }: grantParams): EncodeObject { try { @@ -491,19 +475,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject { + msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message) } }, - queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject { + queryAllowanceResponse({ value }: queryAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message) } }, @@ -515,27 +499,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - basicAllowance({ value }: basicAllowanceParams): EncodeObject { - try { - return { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", value: BasicAllowance.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:BasicAllowance: Could not create message: ' + e.message) - } - }, - - queryAllowanceResponse({ value }: queryAllowanceResponseParams): EncodeObject { + msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message) } }, - queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject { + msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeAllowanceResponse: Could not create message: ' + e.message) } }, @@ -547,11 +523,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject { + allowedMsgAllowance({ value }: allowedMsgAllowanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", value: AllowedMsgAllowance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AllowedMsgAllowance: Could not create message: ' + e.message) } }, @@ -563,11 +539,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryAllowancesByGranterRequest({ value }: queryAllowancesByGranterRequestParams): EncodeObject { + periodicAllowance({ value }: periodicAllowanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", value: QueryAllowancesByGranterRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: PeriodicAllowance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowancesByGranterRequest: Could not create message: ' + e.message) + throw new Error('TxClient:PeriodicAllowance: Could not create message: ' + e.message) } }, @@ -579,27 +555,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - allowedMsgAllowance({ value }: allowedMsgAllowanceParams): EncodeObject { + basicAllowance({ value }: basicAllowanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", value: AllowedMsgAllowance.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", value: BasicAllowance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AllowedMsgAllowance: Could not create message: ' + e.message) + throw new Error('TxClient:BasicAllowance: Could not create message: ' + e.message) } }, - msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject { + queryAllowancesByGranterRequest({ value }: queryAllowancesByGranterRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", value: QueryAllowancesByGranterRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowancesByGranterRequest: Could not create message: ' + e.message) + } + }, + + queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message) + } + }, + + msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message) + } + }, + + queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.feegrant.v1beta1/registry.ts b/ts-client/cosmos.feegrant.v1beta1/registry.ts index c52d321e..5334c7b9 100755 --- a/ts-client/cosmos.feegrant.v1beta1/registry.ts +++ b/ts-client/cosmos.feegrant.v1beta1/registry.ts @@ -1,40 +1,40 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], - ["/cosmos.feegrant.v1beta1.PeriodicAllowance", PeriodicAllowance], ["/cosmos.feegrant.v1beta1.Grant", Grant], - ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], - ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], - ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], - ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], + ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.QueryAllowanceResponse", QueryAllowanceResponse], - ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], + ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], + ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], + ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances], - ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], + ["/cosmos.feegrant.v1beta1.AllowedMsgAllowance", AllowedMsgAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], - ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", QueryAllowancesByGranterRequest], + ["/cosmos.feegrant.v1beta1.PeriodicAllowance", PeriodicAllowance], ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", QueryAllowancesByGranterResponse], - ["/cosmos.feegrant.v1beta1.AllowedMsgAllowance", AllowedMsgAllowance], - ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], - ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], + ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], + ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], + ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", QueryAllowancesByGranterRequest], + ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], + ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], + ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], ]; diff --git a/ts-client/cosmos.feegrant.v1beta1/rest.ts b/ts-client/cosmos.feegrant.v1beta1/rest.ts index 735e3a0c..c39f67cc 100644 --- a/ts-client/cosmos.feegrant.v1beta1/rest.ts +++ b/ts-client/cosmos.feegrant.v1beta1/rest.ts @@ -9,6 +9,64 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Grant { + granter?: string; + grantee?: string; + allowance?: { "@type"?: string }; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryAllowanceResponse { + allowance?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } }; +} + +export interface QueryAllowancesByGranterResponse { + allowances?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryAllowancesResponse { + allowances?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; +} + +export type MsgGrantAllowanceResponse = object; + +export type MsgPruneAllowancesResponse = object; + +export type MsgRevokeAllowanceResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +190,83 @@ export class HttpClient { /** * @title HTTP API Console cosmos.feegrant.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAllowance + * @request GET:/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee} + */ + queryAllowance = (granter: string, grantee: string, params: RequestParams = {}) => + this.request< + { allowance?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/feegrant/v1beta1/allowance/${granter}/${grantee}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAllowances + * @request GET:/cosmos/feegrant/v1beta1/allowances/{grantee} + */ + queryAllowances = ( + grantee: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + allowances?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/feegrant/v1beta1/allowances/${grantee}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAllowancesByGranter + * @request GET:/cosmos/feegrant/v1beta1/issued/{granter} + */ + queryAllowancesByGranter = ( + granter: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + allowances?: { granter?: string; grantee?: string; allowance?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/feegrant/v1beta1/issued/${granter}`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.gov.v1/api.swagger.yml b/ts-client/cosmos.gov.v1/api.swagger.yml index b0534661..07276bcd 100644 --- a/ts-client/cosmos.gov.v1/api.swagger.yml +++ b/ts-client/cosmos.gov.v1/api.swagger.yml @@ -3,3 +3,1671 @@ info: title: HTTP API Console cosmos.gov.v1 name: '' description: '' +paths: + /cosmos/gov/v1/constitution: + get: + operationId: Query_Constitution + responses: + '200': + description: A successful response. + schema: + type: object + properties: + constitution: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/gov/v1/params/{params_type}: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + voting_params: + type: object + properties: + voting_period: + type: string + deposit_params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + tally_params: + type: object + properties: + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + voting_period: + type: string + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + min_initial_deposit_ratio: + type: string + proposal_cancel_ratio: + type: string + proposal_cancel_dest: + type: string + expedited_voting_period: + type: string + expedited_threshold: + type: string + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + burn_vote_quorum: + type: boolean + burn_proposal_deposit_prevote: + type: boolean + burn_vote_veto: + type: boolean + min_deposit_ratio: + type: string + max_tally_period: + type: string + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: params_type + description: >- + params_type defines which parameters to query for, can be one of + "voting", + + "tallying" or "deposit". + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1/proposals: + get: + operationId: Query_Proposals + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + metadata: + type: string + title: + type: string + summary: + type: string + proposer: + type: string + expedited: + type: boolean + failed_reason: + type: string + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_status + description: |2- + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + - PROPOSAL_STATUS_TALLY_PERIOD: PROPOSAL_STATUS_TALLY_PERIOD defines a proposal status during the tally + period. + in: query + required: false + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + - name: voter + in: query + required: false + type: string + - name: depositor + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}: + get: + operationId: Query_Proposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal: + type: object + properties: + id: + type: string + format: uint64 + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + metadata: + type: string + title: + type: string + summary: + type: string + proposer: + type: string + expedited: + type: boolean + failed_reason: + type: string + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/deposits: + get: + operationId: Query_Deposits + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}: + get: + operationId: Query_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/tally: + get: + operationId: Query_TallyResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tally: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/votes: + get: + operationId: Query_Votes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + metadata: + type: string + encrypted_vote_data: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}: + get: + operationId: Query_Vote + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + metadata: + type: string + encrypted_vote_data: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: voter + description: voter defines the voter address for the proposals. + in: path + required: true + type: string + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + DepositParams: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + QueryConstitutionResponse: + type: object + properties: + constitution: + type: string + QueryDepositResponse: + type: object + properties: + deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryParamsResponse: + type: object + properties: + voting_params: + type: object + properties: + voting_period: + type: string + deposit_params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + tally_params: + type: object + properties: + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + voting_period: + type: string + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + min_initial_deposit_ratio: + type: string + proposal_cancel_ratio: + type: string + proposal_cancel_dest: + type: string + expedited_voting_period: + type: string + expedited_threshold: + type: string + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + burn_vote_quorum: + type: boolean + burn_proposal_deposit_prevote: + type: boolean + burn_vote_veto: + type: boolean + min_deposit_ratio: + type: string + max_tally_period: + type: string + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + QueryProposalResponse: + type: object + properties: + proposal: + type: object + properties: + id: + type: string + format: uint64 + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + metadata: + type: string + title: + type: string + summary: + type: string + proposer: + type: string + expedited: + type: boolean + failed_reason: + type: string + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + QueryProposalsResponse: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + metadata: + type: string + title: + type: string + summary: + type: string + proposer: + type: string + expedited: + type: boolean + failed_reason: + type: string + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryTallyResultResponse: + type: object + properties: + tally: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + QueryVoteResponse: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + metadata: + type: string + encrypted_vote_data: + type: string + QueryVotesResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + metadata: + type: string + encrypted_vote_data: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + TallyParams: + type: object + properties: + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + TrustedCounterParty: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + VotingParams: + type: object + properties: + voting_period: + type: string + WeightedVoteOption: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + v1.Deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + v1.Params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + voting_period: + type: string + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + min_initial_deposit_ratio: + type: string + proposal_cancel_ratio: + type: string + proposal_cancel_dest: + type: string + expedited_voting_period: + type: string + expedited_threshold: + type: string + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + burn_vote_quorum: + type: boolean + burn_proposal_deposit_prevote: + type: boolean + burn_vote_veto: + type: boolean + min_deposit_ratio: + type: string + max_tally_period: + type: string + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean + v1.Proposal: + type: object + properties: + id: + type: string + format: uint64 + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + - PROPOSAL_STATUS_TALLY_PERIOD + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + metadata: + type: string + title: + type: string + summary: + type: string + proposer: + type: string + expedited: + type: boolean + failed_reason: + type: string + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + v1.TallyResult: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + encrypted_count: + type: string + v1.Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + metadata: + type: string + encrypted_vote_data: + type: string + MsgCancelProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + canceled_time: + type: string + format: date-time + canceled_height: + type: string + format: uint64 + MsgDepositResponse: + type: object + MsgExecLegacyContentResponse: + type: object + MsgSubmitProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + MsgUpdateParamsResponse: + type: object + MsgVoteEncryptedResponse: + type: object + MsgVoteResponse: + type: object + MsgVoteWeightedResponse: + type: object + Params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + voting_period: + type: string + quorum: + type: string + threshold: + type: string + veto_threshold: + type: string + min_initial_deposit_ratio: + type: string + proposal_cancel_ratio: + type: string + proposal_cancel_dest: + type: string + expedited_voting_period: + type: string + expedited_threshold: + type: string + expedited_min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + burn_vote_quorum: + type: boolean + burn_proposal_deposit_prevote: + type: boolean + burn_vote_veto: + type: boolean + min_deposit_ratio: + type: string + max_tally_period: + type: string + trusted_counter_parties: + type: array + items: + type: object + properties: + client_id: + type: string + connection_id: + type: string + channel_id: + type: string + channel_id: + type: string + is_source_chain: + type: boolean diff --git a/ts-client/cosmos.gov.v1/module.ts b/ts-client/cosmos.gov.v1/module.ts index 7bfd5be1..258c1bc7 100755 --- a/ts-client/cosmos.gov.v1/module.ts +++ b/ts-client/cosmos.gov.v1/module.ts @@ -6,280 +6,280 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteEncrypted } from "./types/cosmos/gov/v1/tx"; +import { VotingParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; +import { DecryptedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { TrustedCounterParty } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; -import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { Vote } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Params } from "./types/cosmos/gov/v1/gov"; import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1/gov"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteEncrypted } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { DecryptedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { TrustedCounterParty } from "./types/cosmos/gov/v1/gov"; +import { Proposal } from "./types/cosmos/gov/v1/gov"; import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; -import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { TallyParams } from "./types/cosmos/gov/v1/gov"; +import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -export { QueryProposalRequest, QueryVotesResponse, QueryDepositRequest, QueryDepositResponse, MsgExecLegacyContent, MsgUpdateParamsResponse, TallyParams, Params, MsgDeposit, WeightedVoteOption, Proposal, MsgVoteWeightedResponse, MsgVoteResponse, QueryDepositsResponse, QueryConstitutionRequest, QueryProposalsRequest, MsgSubmitProposal, MsgVoteEncryptedResponse, MsgUpdateParams, MsgCancelProposal, QueryTallyResultRequest, QueryTallyResultResponse, TallyResult, MsgSubmitProposalResponse, Vote, QueryVotesRequest, QueryProposalResponse, QueryDepositsRequest, GenesisState, MsgDepositResponse, QueryVoteRequest, Deposit, VotingParams, MsgExecLegacyContentResponse, MsgVoteEncrypted, QueryVoteResponse, DecryptedVoteOption, TrustedCounterParty, MsgVote, MsgVoteWeighted, MsgCancelProposalResponse, QueryProposalsResponse, DepositParams, QueryParamsRequest, QueryConstitutionResponse, QueryParamsResponse }; +export { QueryConstitutionResponse, QueryVotesRequest, QueryVotesResponse, MsgDepositResponse, QueryTallyResultResponse, MsgUpdateParams, QueryConstitutionRequest, QueryVoteResponse, QueryParamsRequest, MsgVoteEncrypted, VotingParams, QueryProposalsResponse, QueryTallyResultRequest, GenesisState, QueryProposalResponse, QueryDepositRequest, DecryptedVoteOption, TrustedCounterParty, QueryVoteRequest, QueryDepositResponse, QueryParamsResponse, QueryDepositsRequest, MsgExecLegacyContent, MsgUpdateParamsResponse, TallyResult, DepositParams, MsgCancelProposalResponse, QueryProposalsRequest, MsgCancelProposal, MsgSubmitProposal, MsgExecLegacyContentResponse, MsgVoteEncryptedResponse, MsgVoteWeightedResponse, QueryDepositsResponse, MsgVoteResponse, Params, Deposit, Proposal, MsgVote, WeightedVoteOption, QueryProposalRequest, MsgSubmitProposalResponse, MsgVoteWeighted, Vote, TallyParams, MsgDeposit }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendQueryConstitutionResponseParams = { + value: QueryConstitutionResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse, +type sendQueryVotesRequestParams = { + value: QueryVotesRequest, fee?: StdFee, memo?: string }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest, +type sendQueryVotesResponseParams = { + value: QueryVotesResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse, +type sendMsgDepositResponseParams = { + value: MsgDepositResponse, fee?: StdFee, memo?: string }; -type sendMsgExecLegacyContentParams = { - value: MsgExecLegacyContent, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendTallyParamsParams = { - value: TallyParams, +type sendQueryConstitutionRequestParams = { + value: QueryConstitutionRequest, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryVoteResponseParams = { + value: QueryVoteResponse, fee?: StdFee, memo?: string }; -type sendMsgDepositParams = { - value: MsgDeposit, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendWeightedVoteOptionParams = { - value: WeightedVoteOption, +type sendMsgVoteEncryptedParams = { + value: MsgVoteEncrypted, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendVotingParamsParams = { + value: VotingParams, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryConstitutionRequestParams = { - value: QueryConstitutionRequest, +type sendQueryProposalResponseParams = { + value: QueryProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest, +type sendQueryDepositRequestParams = { + value: QueryDepositRequest, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendDecryptedVoteOptionParams = { + value: DecryptedVoteOption, fee?: StdFee, memo?: string }; -type sendMsgVoteEncryptedResponseParams = { - value: MsgVoteEncryptedResponse, +type sendTrustedCounterPartyParams = { + value: TrustedCounterParty, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryVoteRequestParams = { + value: QueryVoteRequest, fee?: StdFee, memo?: string }; -type sendMsgCancelProposalParams = { - value: MsgCancelProposal, +type sendQueryDepositResponseParams = { + value: QueryDepositResponse, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendMsgExecLegacyContentParams = { + value: MsgExecLegacyContent, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendVoteParams = { - value: Vote, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest, +type sendDepositParamsParams = { + value: DepositParams, fee?: StdFee, memo?: string }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse, +type sendMsgCancelProposalResponseParams = { + value: MsgCancelProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest, +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgCancelProposalParams = { + value: MsgCancelProposal, fee?: StdFee, memo?: string }; -type sendMsgDepositResponseParams = { - value: MsgDepositResponse, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest, +type sendMsgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse, fee?: StdFee, memo?: string }; -type sendDepositParams = { - value: Deposit, +type sendMsgVoteEncryptedResponseParams = { + value: MsgVoteEncryptedResponse, fee?: StdFee, memo?: string }; -type sendVotingParamsParams = { - value: VotingParams, +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, fee?: StdFee, memo?: string }; -type sendMsgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse, +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteEncryptedParams = { - value: MsgVoteEncrypted, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendQueryVoteResponseParams = { - value: QueryVoteResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendDecryptedVoteOptionParams = { - value: DecryptedVoteOption, +type sendDepositParams = { + value: Deposit, fee?: StdFee, memo?: string }; -type sendTrustedCounterPartyParams = { - value: TrustedCounterParty, +type sendProposalParams = { + value: Proposal, fee?: StdFee, memo?: string }; @@ -290,231 +290,231 @@ type sendMsgVoteParams = { memo?: string }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted, +type sendWeightedVoteOptionParams = { + value: WeightedVoteOption, fee?: StdFee, memo?: string }; -type sendMsgCancelProposalResponseParams = { - value: MsgCancelProposalResponse, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse, +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, fee?: StdFee, memo?: string }; -type sendDepositParamsParams = { - value: DepositParams, +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendVoteParams = { + value: Vote, fee?: StdFee, memo?: string }; -type sendQueryConstitutionResponseParams = { - value: QueryConstitutionResponse, +type sendTallyParamsParams = { + value: TallyParams, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgDepositParams = { + value: MsgDeposit, fee?: StdFee, memo?: string }; -type queryProposalRequestParams = { - value: QueryProposalRequest, +type queryConstitutionResponseParams = { + value: QueryConstitutionResponse, }; -type queryVotesResponseParams = { - value: QueryVotesResponse, +type queryVotesRequestParams = { + value: QueryVotesRequest, }; -type queryDepositRequestParams = { - value: QueryDepositRequest, +type queryVotesResponseParams = { + value: QueryVotesResponse, }; -type queryDepositResponseParams = { - value: QueryDepositResponse, +type msgDepositResponseParams = { + value: MsgDepositResponse, }; -type msgExecLegacyContentParams = { - value: MsgExecLegacyContent, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type tallyParamsParams = { - value: TallyParams, +type queryConstitutionRequestParams = { + value: QueryConstitutionRequest, }; -type paramsParams = { - value: Params, +type queryVoteResponseParams = { + value: QueryVoteResponse, }; -type msgDepositParams = { - value: MsgDeposit, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type weightedVoteOptionParams = { - value: WeightedVoteOption, +type msgVoteEncryptedParams = { + value: MsgVoteEncrypted, }; -type proposalParams = { - value: Proposal, +type votingParamsParams = { + value: VotingParams, }; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type queryProposalsResponseParams = { + value: QueryProposalsResponse, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type queryDepositsResponseParams = { - value: QueryDepositsResponse, +type genesisStateParams = { + value: GenesisState, }; -type queryConstitutionRequestParams = { - value: QueryConstitutionRequest, +type queryProposalResponseParams = { + value: QueryProposalResponse, }; -type queryProposalsRequestParams = { - value: QueryProposalsRequest, +type queryDepositRequestParams = { + value: QueryDepositRequest, }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal, +type decryptedVoteOptionParams = { + value: DecryptedVoteOption, }; -type msgVoteEncryptedResponseParams = { - value: MsgVoteEncryptedResponse, +type trustedCounterPartyParams = { + value: TrustedCounterParty, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryVoteRequestParams = { + value: QueryVoteRequest, }; -type msgCancelProposalParams = { - value: MsgCancelProposal, +type queryDepositResponseParams = { + value: QueryDepositResponse, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type queryDepositsRequestParams = { + value: QueryDepositsRequest, }; -type tallyResultParams = { - value: TallyResult, +type msgExecLegacyContentParams = { + value: MsgExecLegacyContent, }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type voteParams = { - value: Vote, +type tallyResultParams = { + value: TallyResult, }; -type queryVotesRequestParams = { - value: QueryVotesRequest, +type depositParamsParams = { + value: DepositParams, }; -type queryProposalResponseParams = { - value: QueryProposalResponse, +type msgCancelProposalResponseParams = { + value: MsgCancelProposalResponse, }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest, +type queryProposalsRequestParams = { + value: QueryProposalsRequest, }; -type genesisStateParams = { - value: GenesisState, +type msgCancelProposalParams = { + value: MsgCancelProposal, }; -type msgDepositResponseParams = { - value: MsgDepositResponse, +type msgSubmitProposalParams = { + value: MsgSubmitProposal, }; -type queryVoteRequestParams = { - value: QueryVoteRequest, +type msgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse, }; -type depositParams = { - value: Deposit, +type msgVoteEncryptedResponseParams = { + value: MsgVoteEncryptedResponse, }; -type votingParamsParams = { - value: VotingParams, +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, }; -type msgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse, +type queryDepositsResponseParams = { + value: QueryDepositsResponse, }; -type msgVoteEncryptedParams = { - value: MsgVoteEncrypted, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type queryVoteResponseParams = { - value: QueryVoteResponse, +type paramsParams = { + value: Params, }; -type decryptedVoteOptionParams = { - value: DecryptedVoteOption, +type depositParams = { + value: Deposit, }; -type trustedCounterPartyParams = { - value: TrustedCounterParty, +type proposalParams = { + value: Proposal, }; type msgVoteParams = { value: MsgVote, }; -type msgVoteWeightedParams = { - value: MsgVoteWeighted, +type weightedVoteOptionParams = { + value: WeightedVoteOption, }; -type msgCancelProposalResponseParams = { - value: MsgCancelProposalResponse, +type queryProposalRequestParams = { + value: QueryProposalRequest, }; -type queryProposalsResponseParams = { - value: QueryProposalsResponse, +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, }; -type depositParamsParams = { - value: DepositParams, +type msgVoteWeightedParams = { + value: MsgVoteWeighted, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type voteParams = { + value: Vote, }; -type queryConstitutionResponseParams = { - value: QueryConstitutionResponse, +type tallyParamsParams = { + value: TallyParams, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgDepositParams = { + value: MsgDeposit, }; @@ -547,535 +547,535 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConstitutionResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) + let msg = this.queryConstitutionResponse({ value: QueryConstitutionResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConstitutionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { + async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }) + let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { + async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }) + let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { + async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDepositResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }) + let msg = this.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContent: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecLegacyContent({ value: MsgExecLegacyContent.fromPartial(value) }) + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecLegacyContent: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { + async sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConstitutionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }) + let msg = this.queryConstitutionRequest({ value: QueryConstitutionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConstitutionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { + async sendMsgVoteEncrypted({ value, fee, memo }: sendMsgVoteEncryptedParams): Promise { if (!signer) { - throw new Error('TxClient:sendWeightedVoteOption: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteEncrypted: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }) + let msg = this.msgVoteEncrypted({ value: MsgVoteEncrypted.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteEncrypted: Could not broadcast Tx: '+ e.message) } }, - async sendProposal({ value, fee, memo }: sendProposalParams): Promise { + async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVotingParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.proposal({ value: Proposal.fromPartial(value) }) + let msg = this.votingParams({ value: VotingParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { + async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }) + let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise { + async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConstitutionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConstitutionRequest({ value: QueryConstitutionRequest.fromPartial(value) }) + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConstitutionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { + async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }) + let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendDecryptedVoteOption({ value, fee, memo }: sendDecryptedVoteOptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDecryptedVoteOption: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) + let msg = this.decryptedVoteOption({ value: DecryptedVoteOption.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDecryptedVoteOption: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteEncryptedResponse({ value, fee, memo }: sendMsgVoteEncryptedResponseParams): Promise { + async sendTrustedCounterParty({ value, fee, memo }: sendTrustedCounterPartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteEncryptedResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTrustedCounterParty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteEncryptedResponse({ value: MsgVoteEncryptedResponse.fromPartial(value) }) + let msg = this.trustedCounterParty({ value: TrustedCounterParty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteEncryptedResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTrustedCounterParty: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise { + async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelProposal({ value: MsgCancelProposal.fromPartial(value) }) + let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCancelProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) + let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecLegacyContent: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) + let msg = this.msgExecLegacyContent({ value: MsgExecLegacyContent.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecLegacyContent: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVote({ value, fee, memo }: sendVoteParams): Promise { + async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.vote({ value: Vote.fromPartial(value) }) + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { + async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDepositParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }) + let msg = this.depositParams({ value: DepositParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { + async sendMsgCancelProposalResponse({ value, fee, memo }: sendMsgCancelProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) + let msg = this.msgCancelProposalResponse({ value: MsgCancelProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { + async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }) + let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.msgCancelProposal({ value: MsgCancelProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }) + let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { + async sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecLegacyContentResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }) + let msg = this.msgExecLegacyContentResponse({ value: MsgExecLegacyContentResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecLegacyContentResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { + async sendMsgVoteEncryptedResponse({ value, fee, memo }: sendMsgVoteEncryptedResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteEncryptedResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.deposit({ value: Deposit.fromPartial(value) }) + let msg = this.msgVoteEncryptedResponse({ value: MsgVoteEncryptedResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteEncryptedResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { + async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVotingParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteWeightedResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.votingParams({ value: VotingParams.fromPartial(value) }) + let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise { + async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContentResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecLegacyContentResponse({ value: MsgExecLegacyContentResponse.fromPartial(value) }) + let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecLegacyContentResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteEncrypted({ value, fee, memo }: sendMsgVoteEncryptedParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteEncrypted: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteEncrypted({ value: MsgVoteEncrypted.fromPartial(value) }) + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteEncrypted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendDecryptedVoteOption({ value, fee, memo }: sendDecryptedVoteOptionParams): Promise { + async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendDecryptedVoteOption: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDeposit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.decryptedVoteOption({ value: DecryptedVoteOption.fromPartial(value) }) + let msg = this.deposit({ value: Deposit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDecryptedVoteOption: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendTrustedCounterParty({ value, fee, memo }: sendTrustedCounterPartyParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendTrustedCounterParty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.trustedCounterParty({ value: TrustedCounterParty.fromPartial(value) }) + let msg = this.proposal({ value: Proposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTrustedCounterParty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, @@ -1093,406 +1093,406 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { + async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendWeightedVoteOption: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }) + let msg = this.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelProposalResponse({ value, fee, memo }: sendMsgCancelProposalResponseParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelProposalResponse({ value: MsgCancelProposalResponse.fromPartial(value) }) + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCancelProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { + async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }) + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { + async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { if (!signer) { - throw new Error('TxClient:sendDepositParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.depositParams({ value: DepositParams.fromPartial(value) }) + let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendVote({ value, fee, memo }: sendVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.vote({ value: Vote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise { + async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConstitutionResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTallyParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConstitutionResponse({ value: QueryConstitutionResponse.fromPartial(value) }) + let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConstitutionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryConstitutionResponse", value: QueryConstitutionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConstitutionResponse: Could not create message: ' + e.message) } }, - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { + queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) } }, - queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) } }, - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { + msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message) } }, - msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - tallyParams({ value }: tallyParamsParams): EncodeObject { + queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) } }, - msgDeposit({ value }: msgDepositParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { + msgVoteEncrypted({ value }: msgVoteEncryptedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteEncrypted", value: MsgVoteEncrypted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteEncrypted: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + votingParams({ value }: votingParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) } }, - msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { + queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) } }, - queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject { + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) } }, - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { + queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + decryptedVoteOption({ value }: decryptedVoteOptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.DecryptedVoteOption", value: DecryptedVoteOption.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:DecryptedVoteOption: Could not create message: ' + e.message) } }, - msgVoteEncryptedResponse({ value }: msgVoteEncryptedResponseParams): EncodeObject { + trustedCounterParty({ value }: trustedCounterPartyParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteEncryptedResponse", value: MsgVoteEncryptedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.TrustedCounterParty", value: TrustedCounterParty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteEncryptedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TrustedCounterParty: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) } }, - msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject { + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message) } }, - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - vote({ value }: voteParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Vote", value: Vote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { + depositParams({ value }: depositParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) } }, - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { + msgCancelProposalResponse({ value }: msgCancelProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message) } }, - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message) } }, - msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { + msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message) } }, - deposit({ value }: depositParams): EncodeObject { + msgVoteEncryptedResponse({ value }: msgVoteEncryptedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteEncryptedResponse", value: MsgVoteEncryptedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteEncryptedResponse: Could not create message: ' + e.message) } }, - votingParams({ value }: votingParamsParams): EncodeObject { + msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) } }, - msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject { + queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) } }, - msgVoteEncrypted({ value }: msgVoteEncryptedParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteEncrypted", value: MsgVoteEncrypted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteEncrypted: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - decryptedVoteOption({ value }: decryptedVoteOptionParams): EncodeObject { + deposit({ value }: depositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.DecryptedVoteOption", value: DecryptedVoteOption.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DecryptedVoteOption: Could not create message: ' + e.message) + throw new Error('TxClient:Deposit: Could not create message: ' + e.message) } }, - trustedCounterParty({ value }: trustedCounterPartyParams): EncodeObject { + proposal({ value }: proposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.TrustedCounterParty", value: TrustedCounterParty.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TrustedCounterParty: Could not create message: ' + e.message) + throw new Error('TxClient:Proposal: Could not create message: ' + e.message) } }, @@ -1504,59 +1504,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { + weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) + throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) } }, - msgCancelProposalResponse({ value }: msgCancelProposalResponseParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) } }, - depositParams({ value }: depositParamsParams): EncodeObject { + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + vote({ value }: voteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Vote", value: Vote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Vote: Could not create message: ' + e.message) } }, - queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject { + tallyParams({ value }: tallyParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryConstitutionResponse", value: QueryConstitutionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConstitutionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgDeposit({ value }: msgDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.gov.v1/registry.ts b/ts-client/cosmos.gov.v1/registry.ts index 720bf13a..15f92b4a 100755 --- a/ts-client/cosmos.gov.v1/registry.ts +++ b/ts-client/cosmos.gov.v1/registry.ts @@ -1,98 +1,98 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteEncrypted } from "./types/cosmos/gov/v1/tx"; +import { VotingParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; +import { DecryptedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { TrustedCounterParty } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; -import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { Vote } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Params } from "./types/cosmos/gov/v1/gov"; import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1/gov"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteEncrypted } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { DecryptedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { TrustedCounterParty } from "./types/cosmos/gov/v1/gov"; +import { Proposal } from "./types/cosmos/gov/v1/gov"; import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; -import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { TallyParams } from "./types/cosmos/gov/v1/gov"; +import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], + ["/cosmos.gov.v1.QueryVotesRequest", QueryVotesRequest], ["/cosmos.gov.v1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], + ["/cosmos.gov.v1.QueryTallyResultResponse", QueryTallyResultResponse], + ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], + ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], + ["/cosmos.gov.v1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.gov.v1.MsgVoteEncrypted", MsgVoteEncrypted], + ["/cosmos.gov.v1.VotingParams", VotingParams], + ["/cosmos.gov.v1.QueryProposalsResponse", QueryProposalsResponse], + ["/cosmos.gov.v1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.gov.v1.GenesisState", GenesisState], + ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], ["/cosmos.gov.v1.QueryDepositRequest", QueryDepositRequest], + ["/cosmos.gov.v1.DecryptedVoteOption", DecryptedVoteOption], + ["/cosmos.gov.v1.TrustedCounterParty", TrustedCounterParty], + ["/cosmos.gov.v1.QueryVoteRequest", QueryVoteRequest], ["/cosmos.gov.v1.QueryDepositResponse", QueryDepositResponse], + ["/cosmos.gov.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.gov.v1.QueryDepositsRequest", QueryDepositsRequest], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.gov.v1.TallyParams", TallyParams], - ["/cosmos.gov.v1.Params", Params], - ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1.WeightedVoteOption", WeightedVoteOption], - ["/cosmos.gov.v1.Proposal", Proposal], - ["/cosmos.gov.v1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], - ["/cosmos.gov.v1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.gov.v1.QueryDepositsResponse", QueryDepositsResponse], - ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], + ["/cosmos.gov.v1.TallyResult", TallyResult], + ["/cosmos.gov.v1.DepositParams", DepositParams], + ["/cosmos.gov.v1.MsgCancelProposalResponse", MsgCancelProposalResponse], ["/cosmos.gov.v1.QueryProposalsRequest", QueryProposalsRequest], + ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], ["/cosmos.gov.v1.MsgVoteEncryptedResponse", MsgVoteEncryptedResponse], - ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], - ["/cosmos.gov.v1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.gov.v1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.gov.v1.TallyResult", TallyResult], - ["/cosmos.gov.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.gov.v1.Vote", Vote], - ["/cosmos.gov.v1.QueryVotesRequest", QueryVotesRequest], - ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.gov.v1.QueryDepositsRequest", QueryDepositsRequest], - ["/cosmos.gov.v1.GenesisState", GenesisState], - ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], - ["/cosmos.gov.v1.QueryVoteRequest", QueryVoteRequest], + ["/cosmos.gov.v1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], + ["/cosmos.gov.v1.QueryDepositsResponse", QueryDepositsResponse], + ["/cosmos.gov.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1.Params", Params], ["/cosmos.gov.v1.Deposit", Deposit], - ["/cosmos.gov.v1.VotingParams", VotingParams], - ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], - ["/cosmos.gov.v1.MsgVoteEncrypted", MsgVoteEncrypted], - ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1.DecryptedVoteOption", DecryptedVoteOption], - ["/cosmos.gov.v1.TrustedCounterParty", TrustedCounterParty], + ["/cosmos.gov.v1.Proposal", Proposal], ["/cosmos.gov.v1.MsgVote", MsgVote], + ["/cosmos.gov.v1.WeightedVoteOption", WeightedVoteOption], + ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], - ["/cosmos.gov.v1.MsgCancelProposalResponse", MsgCancelProposalResponse], - ["/cosmos.gov.v1.QueryProposalsResponse", QueryProposalsResponse], - ["/cosmos.gov.v1.DepositParams", DepositParams], - ["/cosmos.gov.v1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], - ["/cosmos.gov.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.gov.v1.Vote", Vote], + ["/cosmos.gov.v1.TallyParams", TallyParams], + ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], ]; diff --git a/ts-client/cosmos.gov.v1/rest.ts b/ts-client/cosmos.gov.v1/rest.ts index fd6c449c..4f13ac9e 100644 --- a/ts-client/cosmos.gov.v1/rest.ts +++ b/ts-client/cosmos.gov.v1/rest.ts @@ -9,6 +9,410 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export interface DepositParams { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = "PROPOSAL_STATUS_UNSPECIFIED", + PROPOSAL_STATUS_DEPOSIT_PERIOD = "PROPOSAL_STATUS_DEPOSIT_PERIOD", + PROPOSAL_STATUS_VOTING_PERIOD = "PROPOSAL_STATUS_VOTING_PERIOD", + PROPOSAL_STATUS_PASSED = "PROPOSAL_STATUS_PASSED", + PROPOSAL_STATUS_REJECTED = "PROPOSAL_STATUS_REJECTED", + PROPOSAL_STATUS_FAILED = "PROPOSAL_STATUS_FAILED", + PROPOSAL_STATUS_TALLY_PERIOD = "PROPOSAL_STATUS_TALLY_PERIOD", +} + +export interface QueryConstitutionResponse { + constitution?: string; +} + +export interface QueryDepositResponse { + deposit?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }; +} + +export interface QueryDepositsResponse { + deposits?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryParamsResponse { + voting_params?: { voting_period?: string }; + deposit_params?: { min_deposit?: { denom?: string; amount?: string }[]; max_deposit_period?: string }; + tally_params?: { quorum?: string; threshold?: string; veto_threshold?: string }; + params?: { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; + voting_period?: string; + quorum?: string; + threshold?: string; + veto_threshold?: string; + min_initial_deposit_ratio?: string; + proposal_cancel_ratio?: string; + proposal_cancel_dest?: string; + expedited_voting_period?: string; + expedited_threshold?: string; + expedited_min_deposit?: { denom?: string; amount?: string }[]; + burn_vote_quorum?: boolean; + burn_proposal_deposit_prevote?: boolean; + burn_vote_veto?: boolean; + min_deposit_ratio?: string; + max_tally_period?: string; + trusted_counter_parties?: { client_id?: string; connection_id?: string; channel_id?: string }[]; + channel_id?: string; + is_source_chain?: boolean; + }; +} + +export interface QueryProposalResponse { + proposal?: { + id?: string; + messages?: { "@type"?: string }[]; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + metadata?: string; + title?: string; + summary?: string; + proposer?: string; + expedited?: boolean; + failed_reason?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }; +} + +export interface QueryProposalsResponse { + proposals?: { + id?: string; + messages?: { "@type"?: string }[]; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + metadata?: string; + title?: string; + summary?: string; + proposer?: string; + expedited?: boolean; + failed_reason?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryTallyResultResponse { + tally?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; +} + +export interface QueryVoteResponse { + vote?: { + proposal_id?: string; + voter?: string; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + metadata?: string; + encrypted_vote_data?: string; + }; +} + +export interface QueryVotesResponse { + votes?: { + proposal_id?: string; + voter?: string; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + metadata?: string; + encrypted_vote_data?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface TallyParams { + quorum?: string; + threshold?: string; + veto_threshold?: string; +} + +export interface TrustedCounterParty { + client_id?: string; + connection_id?: string; + channel_id?: string; +} + +export enum VoteOption { + VOTE_OPTION_UNSPECIFIED = "VOTE_OPTION_UNSPECIFIED", + VOTE_OPTION_YES = "VOTE_OPTION_YES", + VOTE_OPTION_ABSTAIN = "VOTE_OPTION_ABSTAIN", + VOTE_OPTION_NO = "VOTE_OPTION_NO", + VOTE_OPTION_NO_WITH_VETO = "VOTE_OPTION_NO_WITH_VETO", + VOTE_OPTION_ENCRYPTED = "VOTE_OPTION_ENCRYPTED", +} + +export interface VotingParams { + voting_period?: string; +} + +export interface WeightedVoteOption { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; +} + +export interface V1Deposit { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { denom?: string; amount?: string }[]; +} + +export interface V1Params { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; + voting_period?: string; + quorum?: string; + threshold?: string; + veto_threshold?: string; + min_initial_deposit_ratio?: string; + proposal_cancel_ratio?: string; + proposal_cancel_dest?: string; + expedited_voting_period?: string; + expedited_threshold?: string; + expedited_min_deposit?: { denom?: string; amount?: string }[]; + burn_vote_quorum?: boolean; + burn_proposal_deposit_prevote?: boolean; + burn_vote_veto?: boolean; + min_deposit_ratio?: string; + max_tally_period?: string; + trusted_counter_parties?: { client_id?: string; connection_id?: string; channel_id?: string }[]; + channel_id?: string; + is_source_chain?: boolean; +} + +export interface V1Proposal { + /** @format uint64 */ + id?: string; + messages?: { "@type"?: string }[]; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + + /** @format date-time */ + submit_time?: string; + + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + + /** @format date-time */ + voting_start_time?: string; + + /** @format date-time */ + voting_end_time?: string; + metadata?: string; + title?: string; + summary?: string; + proposer?: string; + expedited?: boolean; + failed_reason?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; +} + +export interface V1TallyResult { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; +} + +export interface V1Vote { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + metadata?: string; + encrypted_vote_data?: string; +} + +export interface MsgCancelProposalResponse { + /** @format uint64 */ + proposal_id?: string; + + /** @format date-time */ + canceled_time?: string; + + /** @format uint64 */ + canceled_height?: string; +} + +export type MsgDepositResponse = object; + +export type MsgExecLegacyContentResponse = object; + +export interface MsgSubmitProposalResponse { + /** @format uint64 */ + proposal_id?: string; +} + +export type MsgUpdateParamsResponse = object; + +export type MsgVoteEncryptedResponse = object; + +export type MsgVoteResponse = object; + +export type MsgVoteWeightedResponse = object; + +export interface Params { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; + voting_period?: string; + quorum?: string; + threshold?: string; + veto_threshold?: string; + min_initial_deposit_ratio?: string; + proposal_cancel_ratio?: string; + proposal_cancel_dest?: string; + expedited_voting_period?: string; + expedited_threshold?: string; + expedited_min_deposit?: { denom?: string; amount?: string }[]; + burn_vote_quorum?: boolean; + burn_proposal_deposit_prevote?: boolean; + burn_vote_veto?: boolean; + min_deposit_ratio?: string; + max_tally_period?: string; + trusted_counter_parties?: { client_id?: string; connection_id?: string; channel_id?: string }[]; + channel_id?: string; + is_source_chain?: boolean; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +536,339 @@ export class HttpClient { /** * @title HTTP API Console cosmos.gov.v1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryConstitution + * @request GET:/cosmos/gov/v1/constitution + */ + queryConstitution = (params: RequestParams = {}) => + this.request<{ constitution?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/gov/v1/constitution`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/gov/v1/params/{params_type} + */ + queryParams = (paramsType: string, params: RequestParams = {}) => + this.request< + { + voting_params?: { voting_period?: string }; + deposit_params?: { min_deposit?: { denom?: string; amount?: string }[]; max_deposit_period?: string }; + tally_params?: { quorum?: string; threshold?: string; veto_threshold?: string }; + params?: { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; + voting_period?: string; + quorum?: string; + threshold?: string; + veto_threshold?: string; + min_initial_deposit_ratio?: string; + proposal_cancel_ratio?: string; + proposal_cancel_dest?: string; + expedited_voting_period?: string; + expedited_threshold?: string; + expedited_min_deposit?: { denom?: string; amount?: string }[]; + burn_vote_quorum?: boolean; + burn_proposal_deposit_prevote?: boolean; + burn_vote_veto?: boolean; + min_deposit_ratio?: string; + max_tally_period?: string; + trusted_counter_parties?: { client_id?: string; connection_id?: string; channel_id?: string }[]; + channel_id?: string; + is_source_chain?: boolean; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/params/${paramsType}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposals + * @request GET:/cosmos/gov/v1/proposals + */ + queryProposals = ( + query?: { + proposal_status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + voter?: string; + depositor?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + proposals?: { + id?: string; + messages?: { "@type"?: string }[]; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + metadata?: string; + title?: string; + summary?: string; + proposer?: string; + expedited?: boolean; + failed_reason?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposal + * @request GET:/cosmos/gov/v1/proposals/{proposal_id} + */ + queryProposal = (proposalId: string, params: RequestParams = {}) => + this.request< + { + proposal?: { + id?: string; + messages?: { "@type"?: string }[]; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED" + | "PROPOSAL_STATUS_TALLY_PERIOD"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + metadata?: string; + title?: string; + summary?: string; + proposer?: string; + expedited?: boolean; + failed_reason?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDeposits + * @request GET:/cosmos/gov/v1/proposals/{proposal_id}/deposits + */ + queryDeposits = ( + proposalId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + deposits?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}/deposits`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDeposit + * @request GET:/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor} + */ + queryDeposit = (proposalId: string, depositor: string, params: RequestParams = {}) => + this.request< + { deposit?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}/deposits/${depositor}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryTallyResult + * @request GET:/cosmos/gov/v1/proposals/{proposal_id}/tally + */ + queryTallyResult = (proposalId: string, params: RequestParams = {}) => + this.request< + { + tally?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + encrypted_count?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}/tally`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVotes + * @request GET:/cosmos/gov/v1/proposals/{proposal_id}/votes + */ + queryVotes = ( + proposalId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + votes?: { + proposal_id?: string; + voter?: string; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + metadata?: string; + encrypted_vote_data?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}/votes`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVote + * @request GET:/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter} + */ + queryVote = (proposalId: string, voter: string, params: RequestParams = {}) => + this.request< + { + vote?: { + proposal_id?: string; + voter?: string; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + metadata?: string; + encrypted_vote_data?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1/proposals/${proposalId}/votes/${voter}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.gov.v1beta1/api.swagger.yml b/ts-client/cosmos.gov.v1beta1/api.swagger.yml index e327f186..fe00be88 100644 --- a/ts-client/cosmos.gov.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.gov.v1beta1/api.swagger.yml @@ -3,3 +3,1316 @@ info: title: HTTP API Console cosmos.gov.v1beta1 name: '' description: '' +paths: + /cosmos/gov/v1beta1/params/{params_type}: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + voting_params: + type: object + properties: + voting_period: + type: string + deposit_params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + tally_params: + type: object + properties: + quorum: + type: string + format: byte + threshold: + type: string + format: byte + veto_threshold: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: params_type + description: >- + params_type defines which parameters to query for, can be one of + "voting", + + "tallying" or "deposit". + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1beta1/proposals: + get: + operationId: Query_Proposals + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + content: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_status + description: |2- + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + in: query + required: false + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + - name: voter + in: query + required: false + type: string + - name: depositor + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}: + get: + operationId: Query_Proposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + content: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits: + get: + operationId: Query_Deposits + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}: + get: + operationId: Query_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + properties: + deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: depositor + description: depositor defines the deposit addresses from the proposals. + in: path + required: true + type: string + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/tally: + get: + operationId: Query_TallyResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tally: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/votes: + get: + operationId: Query_Votes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + encrypted_vote_data: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}: + get: + operationId: Query_Vote + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + encrypted_vote_data: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + - name: voter + description: voter defines the voter address for the proposals. + in: path + required: true + type: string + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + DepositParams: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + QueryDepositResponse: + type: object + properties: + deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryParamsResponse: + type: object + properties: + voting_params: + type: object + properties: + voting_period: + type: string + deposit_params: + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + max_deposit_period: + type: string + tally_params: + type: object + properties: + quorum: + type: string + format: byte + threshold: + type: string + format: byte + veto_threshold: + type: string + format: byte + QueryProposalResponse: + type: object + properties: + proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + content: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + QueryProposalsResponse: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + content: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryTallyResultResponse: + type: object + properties: + tally: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + QueryVoteResponse: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + encrypted_vote_data: + type: string + QueryVotesResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + encrypted_vote_data: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + TallyParams: + type: object + properties: + quorum: + type: string + format: byte + threshold: + type: string + format: byte + veto_threshold: + type: string + format: byte + VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + VotingParams: + type: object + properties: + voting_period: + type: string + WeightedVoteOption: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + v1beta1.Deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + v1beta1.Proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + content: + type: object + properties: + '@type': + type: string + additionalProperties: {} + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + has_encrypted_votes: + type: boolean + identity: + type: string + pubkey: + type: string + aggr_keyshare: + type: string + v1beta1.TallyResult: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + encrypted: + type: string + v1beta1.Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_ENCRYPTED + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + encrypted_vote_data: + type: string + MsgDepositResponse: + type: object + MsgSubmitProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + MsgVoteEncryptedResponse: + type: object + MsgVoteResponse: + type: object + MsgVoteWeightedResponse: + type: object diff --git a/ts-client/cosmos.gov.v1beta1/module.ts b/ts-client/cosmos.gov.v1beta1/module.ts index 9abed957..ab2765b3 100755 --- a/ts-client/cosmos.gov.v1beta1/module.ts +++ b/ts-client/cosmos.gov.v1beta1/module.ts @@ -6,180 +6,180 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgVoteEncrypted } from "./types/cosmos/gov/v1beta1/tx"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1beta1/tx"; import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVoteEncrypted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -export { DepositParams, Deposit, QueryParamsRequest, MsgSubmitProposal, QueryVoteResponse, QueryParamsResponse, VotingParams, MsgVoteEncrypted, MsgVoteWeighted, QueryProposalsResponse, Vote, MsgVote, QueryVotesResponse, Proposal, MsgVoteEncryptedResponse, QueryDepositRequest, QueryDepositsResponse, TextProposal, QueryVoteRequest, QueryDepositsRequest, QueryProposalResponse, QueryDepositResponse, TallyParams, WeightedVoteOption, QueryTallyResultResponse, MsgSubmitProposalResponse, MsgVoteWeightedResponse, QueryTallyResultRequest, MsgVoteResponse, MsgDeposit, QueryProposalRequest, TallyResult, GenesisState, MsgDepositResponse, QueryProposalsRequest, QueryVotesRequest }; +export { TextProposal, MsgSubmitProposalResponse, MsgVoteEncryptedResponse, MsgVoteWeighted, GenesisState, Deposit, QueryProposalsResponse, MsgVote, QueryVotesRequest, QueryDepositsResponse, QueryVotesResponse, QueryTallyResultResponse, VotingParams, TallyResult, DepositParams, QueryParamsResponse, QueryTallyResultRequest, Proposal, QueryProposalRequest, QueryParamsRequest, QueryDepositResponse, MsgSubmitProposal, Vote, WeightedVoteOption, MsgVoteResponse, MsgVoteEncrypted, QueryDepositRequest, MsgVoteWeightedResponse, MsgDeposit, QueryProposalResponse, QueryDepositsRequest, QueryVoteRequest, QueryProposalsRequest, MsgDepositResponse, TallyParams, QueryVoteResponse }; -type sendDepositParamsParams = { - value: DepositParams, +type sendTextProposalParams = { + value: TextProposal, fee?: StdFee, memo?: string }; -type sendDepositParams = { - value: Deposit, +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgVoteEncryptedResponseParams = { + value: MsgVoteEncryptedResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted, fee?: StdFee, memo?: string }; -type sendQueryVoteResponseParams = { - value: QueryVoteResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendDepositParams = { + value: Deposit, fee?: StdFee, memo?: string }; -type sendVotingParamsParams = { - value: VotingParams, +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteEncryptedParams = { - value: MsgVoteEncrypted, +type sendMsgVoteParams = { + value: MsgVote, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted, +type sendQueryVotesRequestParams = { + value: QueryVotesRequest, fee?: StdFee, memo?: string }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse, +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse, fee?: StdFee, memo?: string }; -type sendVoteParams = { - value: Vote, +type sendQueryVotesResponseParams = { + value: QueryVotesResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteParams = { - value: MsgVote, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse, +type sendVotingParamsParams = { + value: VotingParams, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendMsgVoteEncryptedResponseParams = { - value: MsgVoteEncryptedResponse, +type sendDepositParamsParams = { + value: DepositParams, fee?: StdFee, memo?: string }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendTextProposalParams = { - value: TextProposal, +type sendProposalParams = { + value: Proposal, fee?: StdFee, memo?: string }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse, +type sendQueryDepositResponseParams = { + value: QueryDepositResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendTallyParamsParams = { - value: TallyParams, +type sendVoteParams = { + value: Vote, fee?: StdFee, memo?: string }; @@ -190,56 +190,56 @@ type sendWeightedVoteOptionParams = { memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type sendMsgVoteEncryptedParams = { + value: MsgVoteEncrypted, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type sendQueryDepositRequestParams = { + value: QueryDepositRequest, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendMsgDepositParams = { + value: MsgDeposit, fee?: StdFee, memo?: string }; -type sendMsgDepositParams = { - value: MsgDeposit, +type sendQueryProposalResponseParams = { + value: QueryProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendQueryVoteRequestParams = { + value: QueryVoteRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest, fee?: StdFee, memo?: string }; @@ -250,161 +250,161 @@ type sendMsgDepositResponseParams = { memo?: string }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest, +type sendTallyParamsParams = { + value: TallyParams, fee?: StdFee, memo?: string }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest, +type sendQueryVoteResponseParams = { + value: QueryVoteResponse, fee?: StdFee, memo?: string }; -type depositParamsParams = { - value: DepositParams, -}; - -type depositParams = { - value: Deposit, -}; - -type queryParamsRequestParams = { - value: QueryParamsRequest, -}; - -type msgSubmitProposalParams = { - value: MsgSubmitProposal, +type textProposalParams = { + value: TextProposal, }; -type queryVoteResponseParams = { - value: QueryVoteResponse, +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgVoteEncryptedResponseParams = { + value: MsgVoteEncryptedResponse, }; -type votingParamsParams = { - value: VotingParams, +type msgVoteWeightedParams = { + value: MsgVoteWeighted, }; -type msgVoteEncryptedParams = { - value: MsgVoteEncrypted, +type genesisStateParams = { + value: GenesisState, }; -type msgVoteWeightedParams = { - value: MsgVoteWeighted, +type depositParams = { + value: Deposit, }; type queryProposalsResponseParams = { value: QueryProposalsResponse, }; -type voteParams = { - value: Vote, -}; - type msgVoteParams = { value: MsgVote, }; +type queryVotesRequestParams = { + value: QueryVotesRequest, +}; + +type queryDepositsResponseParams = { + value: QueryDepositsResponse, +}; + type queryVotesResponseParams = { value: QueryVotesResponse, }; -type proposalParams = { - value: Proposal, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type msgVoteEncryptedResponseParams = { - value: MsgVoteEncryptedResponse, +type votingParamsParams = { + value: VotingParams, }; -type queryDepositRequestParams = { - value: QueryDepositRequest, +type tallyResultParams = { + value: TallyResult, }; -type queryDepositsResponseParams = { - value: QueryDepositsResponse, +type depositParamsParams = { + value: DepositParams, }; -type textProposalParams = { - value: TextProposal, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryVoteRequestParams = { - value: QueryVoteRequest, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest, +type proposalParams = { + value: Proposal, }; -type queryProposalResponseParams = { - value: QueryProposalResponse, +type queryProposalRequestParams = { + value: QueryProposalRequest, +}; + +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryDepositResponseParams = { value: QueryDepositResponse, }; -type tallyParamsParams = { - value: TallyParams, +type msgSubmitProposalParams = { + value: MsgSubmitProposal, }; -type weightedVoteOptionParams = { - value: WeightedVoteOption, +type voteParams = { + value: Vote, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type weightedVoteOptionParams = { + value: WeightedVoteOption, }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type msgVoteEncryptedParams = { + value: MsgVoteEncrypted, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type queryDepositRequestParams = { + value: QueryDepositRequest, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, }; type msgDepositParams = { value: MsgDeposit, }; -type queryProposalRequestParams = { - value: QueryProposalRequest, +type queryProposalResponseParams = { + value: QueryProposalResponse, }; -type tallyResultParams = { - value: TallyResult, +type queryDepositsRequestParams = { + value: QueryDepositsRequest, }; -type genesisStateParams = { - value: GenesisState, +type queryVoteRequestParams = { + value: QueryVoteRequest, +}; + +type queryProposalsRequestParams = { + value: QueryProposalsRequest, }; type msgDepositResponseParams = { value: MsgDepositResponse, }; -type queryProposalsRequestParams = { - value: QueryProposalsRequest, +type tallyParamsParams = { + value: TallyParams, }; -type queryVotesRequestParams = { - value: QueryVotesRequest, +type queryVoteResponseParams = { + value: QueryVoteResponse, }; @@ -437,325 +437,325 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { + async sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendDepositParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTextProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.depositParams({ value: DepositParams.fromPartial(value) }) + let msg = this.textProposal({ value: TextProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTextProposal: Could not broadcast Tx: '+ e.message) } }, - async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { + async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.deposit({ value: Deposit.fromPartial(value) }) + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMsgVoteEncryptedResponse({ value, fee, memo }: sendMsgVoteEncryptedResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteEncryptedResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.msgVoteEncryptedResponse({ value: MsgVoteEncryptedResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteEncryptedResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) + let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDeposit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.deposit({ value: Deposit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { + async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVotingParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.votingParams({ value: VotingParams.fromPartial(value) }) + let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteEncrypted({ value, fee, memo }: sendMsgVoteEncryptedParams): Promise { + async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteEncrypted: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteEncrypted({ value: MsgVoteEncrypted.fromPartial(value) }) + let msg = this.msgVote({ value: MsgVote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteEncrypted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { + async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }) + let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { + async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }) + let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVote({ value, fee, memo }: sendVoteParams): Promise { + async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.vote({ value: Vote.fromPartial(value) }) + let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVote({ value: MsgVote.fromPartial(value) }) + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { + async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVotingParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }) + let msg = this.votingParams({ value: VotingParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: '+ e.message) } }, - async sendProposal({ value, fee, memo }: sendProposalParams): Promise { + async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.proposal({ value: Proposal.fromPartial(value) }) + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteEncryptedResponse({ value, fee, memo }: sendMsgVoteEncryptedResponseParams): Promise { + async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteEncryptedResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDepositParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteEncryptedResponse({ value: MsgVoteEncryptedResponse.fromPartial(value) }) + let msg = this.depositParams({ value: DepositParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteEncryptedResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { + async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }) + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendTextProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.textProposal({ value: TextProposal.fromPartial(value) }) + let msg = this.proposal({ value: Proposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTextProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }) + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { + async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) + let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }) + let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { + async sendVote({ value, fee, memo }: sendVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }) + let msg = this.vote({ value: Vote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) } }, @@ -773,129 +773,129 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { + async sendMsgVoteEncrypted({ value, fee, memo }: sendMsgVoteEncryptedParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteEncrypted: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) + let msg = this.msgVoteEncrypted({ value: MsgVoteEncrypted.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteEncrypted: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { + async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }) + let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteWeightedResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) + let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) + let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { + async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }) + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDepositsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) + let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) + let msg = this.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -913,216 +913,216 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { + async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTallyParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }) + let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { + async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }) + let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) } }, - depositParams({ value }: depositParamsParams): EncodeObject { + textProposal({ value }: textProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) + throw new Error('TxClient:TextProposal: Could not create message: ' + e.message) } }, - deposit({ value }: depositParams): EncodeObject { + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgVoteEncryptedResponse({ value }: msgVoteEncryptedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteEncryptedResponse", value: MsgVoteEncryptedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteEncryptedResponse: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) } }, - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + deposit({ value }: depositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Deposit: Could not create message: ' + e.message) } }, - votingParams({ value }: votingParamsParams): EncodeObject { + queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.VotingParams", value: VotingParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) } }, - msgVoteEncrypted({ value }: msgVoteEncryptedParams): EncodeObject { + msgVote({ value }: msgVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteEncrypted", value: MsgVoteEncrypted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteEncrypted: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) } }, - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { + queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) } }, - queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { + queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) } }, - vote({ value }: voteParams): EncodeObject { + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) } }, - msgVote({ value }: msgVoteParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { + votingParams({ value }: votingParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.VotingParams", value: VotingParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - msgVoteEncryptedResponse({ value }: msgVoteEncryptedResponseParams): EncodeObject { + depositParams({ value }: depositParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteEncryptedResponse", value: MsgVoteEncryptedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteEncryptedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) } }, - queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) } }, - textProposal({ value }: textProposalParams): EncodeObject { + proposal({ value }: proposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TextProposal: Could not create message: ' + e.message) + throw new Error('TxClient:Proposal: Could not create message: ' + e.message) } }, - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) } }, - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - tallyParams({ value }: tallyParamsParams): EncodeObject { + vote({ value }: voteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) + throw new Error('TxClient:Vote: Could not create message: ' + e.message) } }, @@ -1134,75 +1134,75 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { + msgVoteEncrypted({ value }: msgVoteEncryptedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteEncrypted", value: MsgVoteEncrypted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteEncrypted: Could not create message: ' + e.message) } }, - msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { + queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + msgDeposit({ value }: msgDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) } }, - msgDeposit({ value }: msgDepositParams): EncodeObject { + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) } }, @@ -1214,19 +1214,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { + tallyParams({ value }: tallyParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) } }, - queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.gov.v1beta1/registry.ts b/ts-client/cosmos.gov.v1beta1/registry.ts index 86d24de5..e05f2c63 100755 --- a/ts-client/cosmos.gov.v1beta1/registry.ts +++ b/ts-client/cosmos.gov.v1beta1/registry.ts @@ -1,78 +1,78 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgVoteEncrypted } from "./types/cosmos/gov/v1beta1/tx"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1beta1/tx"; import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgVoteEncryptedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVoteEncrypted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.gov.v1beta1.DepositParams", DepositParams], - ["/cosmos.gov.v1beta1.Deposit", Deposit], - ["/cosmos.gov.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.gov.v1beta1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.gov.v1beta1.VotingParams", VotingParams], - ["/cosmos.gov.v1beta1.MsgVoteEncrypted", MsgVoteEncrypted], + ["/cosmos.gov.v1beta1.TextProposal", TextProposal], + ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.gov.v1beta1.MsgVoteEncryptedResponse", MsgVoteEncryptedResponse], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], + ["/cosmos.gov.v1beta1.GenesisState", GenesisState], + ["/cosmos.gov.v1beta1.Deposit", Deposit], ["/cosmos.gov.v1beta1.QueryProposalsResponse", QueryProposalsResponse], - ["/cosmos.gov.v1beta1.Vote", Vote], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], + ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], ["/cosmos.gov.v1beta1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1beta1.QueryTallyResultResponse", QueryTallyResultResponse], + ["/cosmos.gov.v1beta1.VotingParams", VotingParams], + ["/cosmos.gov.v1beta1.TallyResult", TallyResult], + ["/cosmos.gov.v1beta1.DepositParams", DepositParams], + ["/cosmos.gov.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.gov.v1beta1.QueryTallyResultRequest", QueryTallyResultRequest], ["/cosmos.gov.v1beta1.Proposal", Proposal], - ["/cosmos.gov.v1beta1.MsgVoteEncryptedResponse", MsgVoteEncryptedResponse], - ["/cosmos.gov.v1beta1.QueryDepositRequest", QueryDepositRequest], - ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], - ["/cosmos.gov.v1beta1.TextProposal", TextProposal], - ["/cosmos.gov.v1beta1.QueryVoteRequest", QueryVoteRequest], - ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], - ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.gov.v1beta1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.gov.v1beta1.QueryDepositResponse", QueryDepositResponse], - ["/cosmos.gov.v1beta1.TallyParams", TallyParams], + ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.gov.v1beta1.Vote", Vote], ["/cosmos.gov.v1beta1.WeightedVoteOption", WeightedVoteOption], - ["/cosmos.gov.v1beta1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.gov.v1beta1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], - ["/cosmos.gov.v1beta1.QueryTallyResultRequest", QueryTallyResultRequest], ["/cosmos.gov.v1beta1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1beta1.MsgVoteEncrypted", MsgVoteEncrypted], + ["/cosmos.gov.v1beta1.QueryDepositRequest", QueryDepositRequest], + ["/cosmos.gov.v1beta1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1beta1.QueryProposalRequest", QueryProposalRequest], - ["/cosmos.gov.v1beta1.TallyResult", TallyResult], - ["/cosmos.gov.v1beta1.GenesisState", GenesisState], - ["/cosmos.gov.v1beta1.MsgDepositResponse", MsgDepositResponse], + ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], + ["/cosmos.gov.v1beta1.QueryVoteRequest", QueryVoteRequest], ["/cosmos.gov.v1beta1.QueryProposalsRequest", QueryProposalsRequest], - ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1beta1.MsgDepositResponse", MsgDepositResponse], + ["/cosmos.gov.v1beta1.TallyParams", TallyParams], + ["/cosmos.gov.v1beta1.QueryVoteResponse", QueryVoteResponse], ]; diff --git a/ts-client/cosmos.gov.v1beta1/rest.ts b/ts-client/cosmos.gov.v1beta1/rest.ts index 7a7fac3f..aeff0422 100644 --- a/ts-client/cosmos.gov.v1beta1/rest.ts +++ b/ts-client/cosmos.gov.v1beta1/rest.ts @@ -9,6 +9,294 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export interface DepositParams { + min_deposit?: { denom?: string; amount?: string }[]; + max_deposit_period?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = "PROPOSAL_STATUS_UNSPECIFIED", + PROPOSAL_STATUS_DEPOSIT_PERIOD = "PROPOSAL_STATUS_DEPOSIT_PERIOD", + PROPOSAL_STATUS_VOTING_PERIOD = "PROPOSAL_STATUS_VOTING_PERIOD", + PROPOSAL_STATUS_PASSED = "PROPOSAL_STATUS_PASSED", + PROPOSAL_STATUS_REJECTED = "PROPOSAL_STATUS_REJECTED", + PROPOSAL_STATUS_FAILED = "PROPOSAL_STATUS_FAILED", +} + +export interface QueryDepositResponse { + deposit?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }; +} + +export interface QueryDepositsResponse { + deposits?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryParamsResponse { + voting_params?: { voting_period?: string }; + deposit_params?: { min_deposit?: { denom?: string; amount?: string }[]; max_deposit_period?: string }; + tally_params?: { quorum?: string; threshold?: string; veto_threshold?: string }; +} + +export interface QueryProposalResponse { + proposal?: { + proposal_id?: string; + content?: { "@type"?: string }; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + final_tally_result?: { yes?: string; abstain?: string; no?: string; no_with_veto?: string; encrypted?: string }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }; +} + +export interface QueryProposalsResponse { + proposals?: { + proposal_id?: string; + content?: { "@type"?: string }; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + final_tally_result?: { yes?: string; abstain?: string; no?: string; no_with_veto?: string; encrypted?: string }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryTallyResultResponse { + tally?: { yes?: string; abstain?: string; no?: string; no_with_veto?: string; encrypted?: string }; +} + +export interface QueryVoteResponse { + vote?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + encrypted_vote_data?: string; + }; +} + +export interface QueryVotesResponse { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + encrypted_vote_data?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface TallyParams { + /** @format byte */ + quorum?: string; + + /** @format byte */ + threshold?: string; + + /** @format byte */ + veto_threshold?: string; +} + +export enum VoteOption { + VOTE_OPTION_UNSPECIFIED = "VOTE_OPTION_UNSPECIFIED", + VOTE_OPTION_YES = "VOTE_OPTION_YES", + VOTE_OPTION_ABSTAIN = "VOTE_OPTION_ABSTAIN", + VOTE_OPTION_NO = "VOTE_OPTION_NO", + VOTE_OPTION_NO_WITH_VETO = "VOTE_OPTION_NO_WITH_VETO", + VOTE_OPTION_ENCRYPTED = "VOTE_OPTION_ENCRYPTED", +} + +export interface VotingParams { + voting_period?: string; +} + +export interface WeightedVoteOption { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; +} + +export interface V1Beta1Deposit { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { denom?: string; amount?: string }[]; +} + +export interface V1Beta1Proposal { + /** @format uint64 */ + proposal_id?: string; + content?: { "@type"?: string }; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + final_tally_result?: { yes?: string; abstain?: string; no?: string; no_with_veto?: string; encrypted?: string }; + + /** @format date-time */ + submit_time?: string; + + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + + /** @format date-time */ + voting_start_time?: string; + + /** @format date-time */ + voting_end_time?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; +} + +export interface V1Beta1TallyResult { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + encrypted?: string; +} + +export interface V1Beta1Vote { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + encrypted_vote_data?: string; +} + +export type MsgDepositResponse = object; + +export interface MsgSubmitProposalResponse { + /** @format uint64 */ + proposal_id?: string; +} + +export type MsgVoteEncryptedResponse = object; + +export type MsgVoteResponse = object; + +export type MsgVoteWeightedResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +420,292 @@ export class HttpClient { /** * @title HTTP API Console cosmos.gov.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/gov/v1beta1/params/{params_type} + */ + queryParams = (paramsType: string, params: RequestParams = {}) => + this.request< + { + voting_params?: { voting_period?: string }; + deposit_params?: { min_deposit?: { denom?: string; amount?: string }[]; max_deposit_period?: string }; + tally_params?: { quorum?: string; threshold?: string; veto_threshold?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/params/${paramsType}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposals + * @request GET:/cosmos/gov/v1beta1/proposals + */ + queryProposals = ( + query?: { + proposal_status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + voter?: string; + depositor?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + proposals?: { + proposal_id?: string; + content?: { "@type"?: string }; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + encrypted?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposal + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id} + */ + queryProposal = (proposalId: string, params: RequestParams = {}) => + this.request< + { + proposal?: { + proposal_id?: string; + content?: { "@type"?: string }; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_DEPOSIT_PERIOD" + | "PROPOSAL_STATUS_VOTING_PERIOD" + | "PROPOSAL_STATUS_PASSED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_FAILED"; + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + encrypted?: string; + }; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: { denom?: string; amount?: string }[]; + voting_start_time?: string; + voting_end_time?: string; + has_encrypted_votes?: boolean; + identity?: string; + pubkey?: string; + aggr_keyshare?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDeposits + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits + */ + queryDeposits = ( + proposalId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + deposits?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDeposit + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor} + */ + queryDeposit = (proposalId: string, depositor: string, params: RequestParams = {}) => + this.request< + { deposit?: { proposal_id?: string; depositor?: string; amount?: { denom?: string; amount?: string }[] } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits/${depositor}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryTallyResult + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/tally + */ + queryTallyResult = (proposalId: string, params: RequestParams = {}) => + this.request< + { tally?: { yes?: string; abstain?: string; no?: string; no_with_veto?: string; encrypted?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/tally`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVotes + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes + */ + queryVotes = ( + proposalId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + encrypted_vote_data?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVote + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter} + */ + queryVote = (proposalId: string, voter: string, params: RequestParams = {}) => + this.request< + { + vote?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + options?: { + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO" + | "VOTE_OPTION_ENCRYPTED"; + weight?: string; + }[]; + encrypted_vote_data?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes/${voter}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.group.v1/api.swagger.yml b/ts-client/cosmos.group.v1/api.swagger.yml index c6fd830a..ea69ea8a 100644 --- a/ts-client/cosmos.group.v1/api.swagger.yml +++ b/ts-client/cosmos.group.v1/api.swagger.yml @@ -3,3 +3,2012 @@ info: title: HTTP API Console cosmos.group.v1 name: '' description: '' +paths: + /cosmos/group/v1/group_info/{group_id}: + get: + operationId: Query_GroupInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + info: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: group_id + description: group_id is the unique ID of the group. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/group/v1/group_members/{group_id}: + get: + operationId: Query_GroupMembers + responses: + '200': + description: A successful response. + schema: + type: object + properties: + members: + type: array + items: + type: object + properties: + group_id: + type: string + format: uint64 + member: + type: object + properties: + address: + type: string + weight: + type: string + metadata: + type: string + added_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: group_id + description: group_id is the unique ID of the group. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/group_policies_by_admin/{admin}: + get: + operationId: Query_GroupPoliciesByAdmin + responses: + '200': + description: A successful response. + schema: + type: object + properties: + group_policies: + type: array + items: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: admin + description: admin is the admin address of the group policy. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/group_policies_by_group/{group_id}: + get: + operationId: Query_GroupPoliciesByGroup + responses: + '200': + description: A successful response. + schema: + type: object + properties: + group_policies: + type: array + items: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: group_id + description: group_id is the unique ID of the group policy's group. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/group_policy_info/{address}: + get: + operationId: Query_GroupPolicyInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + info: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the account address of the group policy. + in: path + required: true + type: string + tags: + - Query + /cosmos/group/v1/groups: + get: + operationId: Query_Groups + responses: + '200': + description: A successful response. + schema: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/groups_by_admin/{admin}: + get: + operationId: Query_GroupsByAdmin + responses: + '200': + description: A successful response. + schema: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: admin + description: admin is the account address of a group's admin. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/groups_by_member/{address}: + get: + operationId: Query_GroupsByMember + responses: + '200': + description: A successful response. + schema: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the group member address. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/proposal/{proposal_id}: + get: + operationId: Query_Proposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal: + type: object + properties: + id: + type: string + format: uint64 + group_policy_address: + type: string + metadata: + type: string + proposers: + type: array + items: + type: string + submit_time: + type: string + format: date-time + group_version: + type: string + format: uint64 + group_policy_version: + type: string + format: uint64 + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + voting_period_end: + type: string + format: date-time + executor_result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + title: + type: string + summary: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id is the unique ID of a proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/group/v1/proposals/{proposal_id}/tally: + get: + operationId: Query_TallyResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tally: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id is the unique id of a proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/group/v1/proposals_by_group_policy/{address}: + get: + operationId: Query_ProposalsByGroupPolicy + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + group_policy_address: + type: string + metadata: + type: string + proposers: + type: array + items: + type: string + submit_time: + type: string + format: date-time + group_version: + type: string + format: uint64 + group_policy_version: + type: string + format: uint64 + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + voting_period_end: + type: string + format: date-time + executor_result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + title: + type: string + summary: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: >- + address is the account address of the group policy related to + proposals. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}: + get: + operationId: Query_VoteByProposalVoter + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id is the unique ID of a proposal. + in: path + required: true + type: string + format: uint64 + - name: voter + description: voter is a proposal voter account address. + in: path + required: true + type: string + tags: + - Query + /cosmos/group/v1/votes_by_proposal/{proposal_id}: + get: + operationId: Query_VotesByProposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: proposal_id + description: proposal_id is the unique ID of a proposal. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/group/v1/votes_by_voter/{voter}: + get: + operationId: Query_VotesByVoter + responses: + '200': + description: A successful response. + schema: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: voter + description: voter is a proposal voter account address. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + GroupMember: + type: object + properties: + group_id: + type: string + format: uint64 + member: + type: object + properties: + address: + type: string + weight: + type: string + metadata: + type: string + added_at: + type: string + format: date-time + Member: + type: object + properties: + address: + type: string + weight: + type: string + metadata: + type: string + added_at: + type: string + format: date-time + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + ProposalExecutorResult: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + QueryGroupInfoResponse: + type: object + properties: + info: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + QueryGroupMembersResponse: + type: object + properties: + members: + type: array + items: + type: object + properties: + group_id: + type: string + format: uint64 + member: + type: object + properties: + address: + type: string + weight: + type: string + metadata: + type: string + added_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGroupPoliciesByAdminResponse: + type: object + properties: + group_policies: + type: array + items: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGroupPoliciesByGroupResponse: + type: object + properties: + group_policies: + type: array + items: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGroupPolicyInfoResponse: + type: object + properties: + info: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + QueryGroupsByAdminResponse: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGroupsByMemberResponse: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryGroupsResponse: + type: object + properties: + groups: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryProposalResponse: + type: object + properties: + proposal: + type: object + properties: + id: + type: string + format: uint64 + group_policy_address: + type: string + metadata: + type: string + proposers: + type: array + items: + type: string + submit_time: + type: string + format: date-time + group_version: + type: string + format: uint64 + group_policy_version: + type: string + format: uint64 + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + voting_period_end: + type: string + format: date-time + executor_result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + title: + type: string + summary: + type: string + QueryProposalsByGroupPolicyResponse: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + group_policy_address: + type: string + metadata: + type: string + proposers: + type: array + items: + type: string + submit_time: + type: string + format: date-time + group_version: + type: string + format: uint64 + group_policy_version: + type: string + format: uint64 + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + voting_period_end: + type: string + format: date-time + executor_result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + title: + type: string + summary: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryTallyResultResponse: + type: object + properties: + tally: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + QueryVoteByProposalVoterResponse: + type: object + properties: + vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + QueryVotesByProposalResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryVotesByVoterResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + submit_time: + type: string + format: date-time + VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + v1.GroupInfo: + type: object + properties: + id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + total_weight: + type: string + created_at: + type: string + format: date-time + v1.GroupPolicyInfo: + type: object + properties: + address: + type: string + group_id: + type: string + format: uint64 + admin: + type: string + metadata: + type: string + version: + type: string + format: uint64 + decision_policy: + type: object + properties: + '@type': + type: string + additionalProperties: {} + created_at: + type: string + format: date-time + v1.Proposal: + type: object + properties: + id: + type: string + format: uint64 + group_policy_address: + type: string + metadata: + type: string + proposers: + type: array + items: + type: string + submit_time: + type: string + format: date-time + group_version: + type: string + format: uint64 + group_policy_version: + type: string + format: uint64 + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_SUBMITTED + - PROPOSAL_STATUS_ACCEPTED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_ABORTED + - PROPOSAL_STATUS_WITHDRAWN + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + voting_period_end: + type: string + format: date-time + executor_result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + title: + type: string + summary: + type: string + v1.TallyResult: + type: object + properties: + yes_count: + type: string + abstain_count: + type: string + no_count: + type: string + no_with_veto_count: + type: string + MemberRequest: + type: object + properties: + address: + type: string + weight: + type: string + metadata: + type: string + MsgCreateGroupPolicyResponse: + type: object + properties: + address: + type: string + MsgCreateGroupResponse: + type: object + properties: + group_id: + type: string + format: uint64 + MsgCreateGroupWithPolicyResponse: + type: object + properties: + group_id: + type: string + format: uint64 + group_policy_address: + type: string + MsgExecResponse: + type: object + properties: + result: + type: string + enum: + - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + - PROPOSAL_EXECUTOR_RESULT_NOT_RUN + - PROPOSAL_EXECUTOR_RESULT_SUCCESS + - PROPOSAL_EXECUTOR_RESULT_FAILURE + default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED + MsgLeaveGroupResponse: + type: object + MsgSubmitProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + MsgUpdateGroupAdminResponse: + type: object + MsgUpdateGroupMembersResponse: + type: object + MsgUpdateGroupMetadataResponse: + type: object + MsgUpdateGroupPolicyAdminResponse: + type: object + MsgUpdateGroupPolicyDecisionPolicyResponse: + type: object + MsgUpdateGroupPolicyMetadataResponse: + type: object + MsgVoteResponse: + type: object + MsgWithdrawProposalResponse: + type: object + v1.Exec: + type: string + enum: + - EXEC_UNSPECIFIED + - EXEC_TRY + default: EXEC_UNSPECIFIED diff --git a/ts-client/cosmos.group.v1/module.ts b/ts-client/cosmos.group.v1/module.ts index 94f767b3..5b184124 100755 --- a/ts-client/cosmos.group.v1/module.ts +++ b/ts-client/cosmos.group.v1/module.ts @@ -6,300 +6,300 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; -import { GroupMember } from "./types/cosmos/group/v1/types"; -import { TallyResult } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { EventVote } from "./types/cosmos/group/v1/events"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { Member } from "./types/cosmos/group/v1/types"; +import { GroupMember } from "./types/cosmos/group/v1/types"; import { Proposal } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; -import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { Member } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; import { EventExec } from "./types/cosmos/group/v1/events"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { TallyResult } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { EventProposalPruned } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; -import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; -export { QueryGroupMembersRequest, MemberRequest, GroupMember, TallyResult, MsgCreateGroupResponse, QueryGroupsByAdminRequest, QueryGroupPoliciesByGroupResponse, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterResponse, QueryVotesByProposalResponse, MsgUpdateGroupMetadataResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryVotesByProposalRequest, PercentageDecisionPolicy, MsgCreateGroup, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyDecisionPolicy, QueryGroupPoliciesByGroupRequest, QueryGroupsByMemberResponse, EventProposalPruned, MsgWithdrawProposal, MsgUpdateGroupAdminResponse, MsgUpdateGroupPolicyAdminResponse, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalsByGroupPolicyRequest, QueryTallyResultResponse, EventVote, MsgUpdateGroupPolicyMetadataResponse, MsgWithdrawProposalResponse, MsgLeaveGroupResponse, Proposal, QueryGroupPoliciesByAdminRequest, QueryVotesByVoterResponse, EventCreateGroupPolicy, EventSubmitProposal, MsgExecResponse, DecisionPolicyWindows, GenesisState, MsgUpdateGroupAdmin, EventLeaveGroup, MsgVote, MsgExec, MsgUpdateGroupMembers, MsgSubmitProposal, QueryGroupsRequest, Vote, MsgLeaveGroup, MsgSubmitProposalResponse, Member, QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupsByAdminResponse, ThresholdDecisionPolicy, MsgCreateGroupPolicyResponse, QueryTallyResultRequest, MsgUpdateGroupMembersResponse, EventExec, QueryProposalResponse, GroupPolicyInfo, MsgUpdateGroupPolicyAdmin, MsgCreateGroupWithPolicyResponse, EventUpdateGroupPolicy, EventWithdrawProposal, MsgVoteResponse, QueryVotesByVoterRequest, QueryGroupsByMemberRequest, QueryGroupsResponse, GroupInfo, EventUpdateGroup, EventCreateGroup, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupMetadata, MsgCreateGroupWithPolicy, MsgCreateGroupPolicy, QueryGroupMembersResponse, QueryVoteByProposalVoterRequest }; +export { QueryGroupMembersResponse, MsgUpdateGroupPolicyAdminResponse, MsgWithdrawProposalResponse, QueryGroupInfoRequest, QueryGroupsByAdminResponse, MsgUpdateGroupMembersResponse, EventCreateGroup, MsgUpdateGroupMetadataResponse, EventUpdateGroup, Member, GroupMember, Proposal, QueryTallyResultResponse, MsgUpdateGroupAdminResponse, QueryVotesByProposalResponse, QueryGroupsByMemberRequest, QueryTallyResultRequest, MsgLeaveGroup, DecisionPolicyWindows, QueryGroupPolicyInfoResponse, MsgCreateGroupWithPolicy, MsgExec, MsgExecResponse, QueryGroupsRequest, MsgSubmitProposalResponse, GenesisState, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgSubmitProposal, MsgWithdrawProposal, EventCreateGroupPolicy, EventUpdateGroupPolicy, MemberRequest, QueryGroupsResponse, MsgUpdateGroupMembers, MsgUpdateGroupPolicyAdmin, EventSubmitProposal, GroupInfo, QueryGroupMembersRequest, QueryGroupsByAdminRequest, QueryVoteByProposalVoterResponse, QueryVotesByVoterRequest, ThresholdDecisionPolicy, QueryGroupPolicyInfoRequest, QueryVotesByVoterResponse, QueryProposalsByGroupPolicyRequest, MsgCreateGroup, MsgVoteResponse, EventVote, EventExec, GroupPolicyInfo, TallyResult, QueryGroupPoliciesByAdminResponse, MsgCreateGroupResponse, MsgCreateGroupPolicy, EventProposalPruned, MsgUpdateGroupPolicyMetadata, MsgLeaveGroupResponse, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupsByMemberResponse, MsgCreateGroupWithPolicyResponse, Vote, QueryProposalResponse, MsgUpdateGroupPolicyMetadataResponse, MsgVote, QueryProposalRequest, EventWithdrawProposal, EventLeaveGroup, QueryVotesByProposalRequest, MsgUpdateGroupMetadata, MsgCreateGroupPolicyResponse, PercentageDecisionPolicy, QueryGroupInfoResponse, QueryGroupPoliciesByGroupRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, MsgUpdateGroupPolicyDecisionPolicy }; -type sendQueryGroupMembersRequestParams = { - value: QueryGroupMembersRequest, +type sendQueryGroupMembersResponseParams = { + value: QueryGroupMembersResponse, fee?: StdFee, memo?: string }; -type sendMemberRequestParams = { - value: MemberRequest, +type sendMsgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse, fee?: StdFee, memo?: string }; -type sendGroupMemberParams = { - value: GroupMember, +type sendMsgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendQueryGroupInfoRequestParams = { + value: QueryGroupInfoRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupResponseParams = { - value: MsgCreateGroupResponse, +type sendQueryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest, +type sendMsgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse, +type sendEventCreateGroupParams = { + value: EventCreateGroup, fee?: StdFee, memo?: string }; -type sendQueryProposalsByGroupPolicyResponseParams = { - value: QueryProposalsByGroupPolicyResponse, +type sendMsgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse, fee?: StdFee, memo?: string }; -type sendQueryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse, +type sendEventUpdateGroupParams = { + value: EventUpdateGroup, fee?: StdFee, memo?: string }; -type sendQueryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse, +type sendMemberParams = { + value: Member, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse, +type sendGroupMemberParams = { + value: GroupMember, fee?: StdFee, memo?: string }; -type sendQueryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest, +type sendProposalParams = { + value: Proposal, fee?: StdFee, memo?: string }; -type sendQueryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest, +type sendMsgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse, fee?: StdFee, memo?: string }; -type sendPercentageDecisionPolicyParams = { - value: PercentageDecisionPolicy, +type sendQueryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupParams = { - value: MsgCreateGroup, +type sendQueryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { - value: MsgUpdateGroupPolicyDecisionPolicyResponse, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy, +type sendMsgLeaveGroupParams = { + value: MsgLeaveGroup, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest, +type sendDecisionPolicyWindowsParams = { + value: DecisionPolicyWindows, fee?: StdFee, memo?: string }; -type sendQueryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse, +type sendQueryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse, fee?: StdFee, memo?: string }; -type sendEventProposalPrunedParams = { - value: EventProposalPruned, +type sendMsgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy, fee?: StdFee, memo?: string }; -type sendMsgWithdrawProposalParams = { - value: MsgWithdrawProposal, +type sendMsgExecParams = { + value: MsgExec, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse, +type sendMsgExecResponseParams = { + value: MsgExecResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse, +type sendQueryGroupsRequestParams = { + value: QueryGroupsRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse, +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest, +type sendMsgUpdateGroupAdminParams = { + value: MsgUpdateGroupAdmin, fee?: StdFee, memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { + value: MsgUpdateGroupPolicyDecisionPolicyResponse, fee?: StdFee, memo?: string }; -type sendEventVoteParams = { - value: EventVote, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse, +type sendMsgWithdrawProposalParams = { + value: MsgWithdrawProposal, fee?: StdFee, memo?: string }; -type sendMsgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse, +type sendEventCreateGroupPolicyParams = { + value: EventCreateGroupPolicy, fee?: StdFee, memo?: string }; -type sendMsgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse, +type sendEventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendMemberRequestParams = { + value: MemberRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest, +type sendQueryGroupsResponseParams = { + value: QueryGroupsResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse, +type sendMsgUpdateGroupMembersParams = { + value: MsgUpdateGroupMembers, fee?: StdFee, memo?: string }; -type sendEventCreateGroupPolicyParams = { - value: EventCreateGroupPolicy, +type sendMsgUpdateGroupPolicyAdminParams = { + value: MsgUpdateGroupPolicyAdmin, fee?: StdFee, memo?: string }; @@ -310,152 +310,146 @@ type sendEventSubmitProposalParams = { memo?: string }; -type sendMsgExecResponseParams = { - value: MsgExecResponse, - fee?: StdFee, - memo?: string -}; - -type sendDecisionPolicyWindowsParams = { - value: DecisionPolicyWindows, +type sendGroupInfoParams = { + value: GroupInfo, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryGroupMembersRequestParams = { + value: QueryGroupMembersRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupAdminParams = { - value: MsgUpdateGroupAdmin, +type sendQueryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest, fee?: StdFee, memo?: string }; -type sendEventLeaveGroupParams = { - value: EventLeaveGroup, +type sendQueryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteParams = { - value: MsgVote, +type sendQueryVotesByVoterRequestParams = { + value: QueryVotesByVoterRequest, fee?: StdFee, memo?: string }; -type sendMsgExecParams = { - value: MsgExec, +type sendThresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMembersParams = { - value: MsgUpdateGroupMembers, +type sendQueryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendQueryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsRequestParams = { - value: QueryGroupsRequest, +type sendQueryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest, fee?: StdFee, memo?: string }; -type sendVoteParams = { - value: Vote, +type sendMsgCreateGroupParams = { + value: MsgCreateGroup, fee?: StdFee, memo?: string }; -type sendMsgLeaveGroupParams = { - value: MsgLeaveGroup, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type sendEventVoteParams = { + value: EventVote, fee?: StdFee, memo?: string }; -type sendMemberParams = { - value: Member, +type sendEventExecParams = { + value: EventExec, fee?: StdFee, memo?: string }; -type sendQueryGroupInfoRequestParams = { - value: QueryGroupInfoRequest, +type sendGroupPolicyInfoParams = { + value: GroupPolicyInfo, fee?: StdFee, memo?: string }; -type sendQueryGroupInfoResponseParams = { - value: QueryGroupInfoResponse, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendQueryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse, +type sendQueryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse, fee?: StdFee, memo?: string }; -type sendThresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy, +type sendMsgCreateGroupResponseParams = { + value: MsgCreateGroupResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupPolicyResponseParams = { - value: MsgCreateGroupPolicyResponse, +type sendMsgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendEventProposalPrunedParams = { + value: EventProposalPruned, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse, +type sendMsgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata, fee?: StdFee, memo?: string }; -type sendEventExecParams = { - value: EventExec, +type sendMsgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse, +type sendQueryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse, fee?: StdFee, memo?: string }; -type sendGroupPolicyInfoParams = { - value: GroupPolicyInfo, +type sendQueryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyAdminParams = { - value: MsgUpdateGroupPolicyAdmin, +type sendQueryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse, fee?: StdFee, memo?: string }; @@ -466,86 +460,86 @@ type sendMsgCreateGroupWithPolicyResponseParams = { memo?: string }; -type sendEventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy, +type sendVoteParams = { + value: Vote, fee?: StdFee, memo?: string }; -type sendEventWithdrawProposalParams = { - value: EventWithdrawProposal, +type sendQueryProposalResponseParams = { + value: QueryProposalResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendMsgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesByVoterRequestParams = { - value: QueryVotesByVoterRequest, +type sendMsgVoteParams = { + value: MsgVote, fee?: StdFee, memo?: string }; -type sendQueryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupsResponseParams = { - value: QueryGroupsResponse, +type sendEventWithdrawProposalParams = { + value: EventWithdrawProposal, fee?: StdFee, memo?: string }; -type sendGroupInfoParams = { - value: GroupInfo, +type sendEventLeaveGroupParams = { + value: EventLeaveGroup, fee?: StdFee, memo?: string }; -type sendEventUpdateGroupParams = { - value: EventUpdateGroup, +type sendQueryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest, fee?: StdFee, memo?: string }; -type sendEventCreateGroupParams = { - value: EventCreateGroup, +type sendMsgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata, +type sendMsgCreateGroupPolicyResponseParams = { + value: MsgCreateGroupPolicyResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata, +type sendPercentageDecisionPolicyParams = { + value: PercentageDecisionPolicy, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy, +type sendQueryGroupInfoResponseParams = { + value: QueryGroupInfoResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy, +type sendQueryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupMembersResponseParams = { - value: QueryGroupMembersResponse, +type sendQueryProposalsByGroupPolicyResponseParams = { + value: QueryProposalsByGroupPolicyResponse, fee?: StdFee, memo?: string }; @@ -556,319 +550,325 @@ type sendQueryVoteByProposalVoterRequestParams = { memo?: string }; +type sendMsgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy, + fee?: StdFee, + memo?: string +}; + -type queryGroupMembersRequestParams = { - value: QueryGroupMembersRequest, +type queryGroupMembersResponseParams = { + value: QueryGroupMembersResponse, }; -type memberRequestParams = { - value: MemberRequest, +type msgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse, }; -type groupMemberParams = { - value: GroupMember, +type msgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse, }; -type tallyResultParams = { - value: TallyResult, +type queryGroupInfoRequestParams = { + value: QueryGroupInfoRequest, }; -type msgCreateGroupResponseParams = { - value: MsgCreateGroupResponse, +type queryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse, }; -type queryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest, +type msgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse, }; -type queryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse, +type eventCreateGroupParams = { + value: EventCreateGroup, }; -type queryProposalsByGroupPolicyResponseParams = { - value: QueryProposalsByGroupPolicyResponse, +type msgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse, }; -type queryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse, +type eventUpdateGroupParams = { + value: EventUpdateGroup, }; -type queryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse, +type memberParams = { + value: Member, }; -type msgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse, +type groupMemberParams = { + value: GroupMember, }; -type queryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest, +type proposalParams = { + value: Proposal, }; -type queryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type queryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest, +type msgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse, }; -type percentageDecisionPolicyParams = { - value: PercentageDecisionPolicy, +type queryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse, }; -type msgCreateGroupParams = { - value: MsgCreateGroup, +type queryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest, }; -type msgUpdateGroupPolicyDecisionPolicyResponseParams = { - value: MsgUpdateGroupPolicyDecisionPolicyResponse, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type msgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy, +type msgLeaveGroupParams = { + value: MsgLeaveGroup, }; -type queryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest, +type decisionPolicyWindowsParams = { + value: DecisionPolicyWindows, }; -type queryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse, +type queryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse, }; -type eventProposalPrunedParams = { - value: EventProposalPruned, +type msgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy, }; -type msgWithdrawProposalParams = { - value: MsgWithdrawProposal, +type msgExecParams = { + value: MsgExec, }; -type msgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse, +type msgExecResponseParams = { + value: MsgExecResponse, }; -type msgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse, +type queryGroupsRequestParams = { + value: QueryGroupsRequest, }; -type queryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse, +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, }; -type queryProposalRequestParams = { - value: QueryProposalRequest, +type genesisStateParams = { + value: GenesisState, }; -type queryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest, +type msgUpdateGroupAdminParams = { + value: MsgUpdateGroupAdmin, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type msgUpdateGroupPolicyDecisionPolicyResponseParams = { + value: MsgUpdateGroupPolicyDecisionPolicyResponse, }; -type eventVoteParams = { - value: EventVote, +type msgSubmitProposalParams = { + value: MsgSubmitProposal, }; -type msgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse, +type msgWithdrawProposalParams = { + value: MsgWithdrawProposal, }; -type msgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse, +type eventCreateGroupPolicyParams = { + value: EventCreateGroupPolicy, }; -type msgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse, +type eventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy, }; -type proposalParams = { - value: Proposal, +type memberRequestParams = { + value: MemberRequest, }; -type queryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest, +type queryGroupsResponseParams = { + value: QueryGroupsResponse, }; -type queryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse, +type msgUpdateGroupMembersParams = { + value: MsgUpdateGroupMembers, }; -type eventCreateGroupPolicyParams = { - value: EventCreateGroupPolicy, +type msgUpdateGroupPolicyAdminParams = { + value: MsgUpdateGroupPolicyAdmin, }; type eventSubmitProposalParams = { value: EventSubmitProposal, }; -type msgExecResponseParams = { - value: MsgExecResponse, -}; - -type decisionPolicyWindowsParams = { - value: DecisionPolicyWindows, +type groupInfoParams = { + value: GroupInfo, }; -type genesisStateParams = { - value: GenesisState, +type queryGroupMembersRequestParams = { + value: QueryGroupMembersRequest, }; -type msgUpdateGroupAdminParams = { - value: MsgUpdateGroupAdmin, +type queryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest, }; -type eventLeaveGroupParams = { - value: EventLeaveGroup, +type queryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse, }; -type msgVoteParams = { - value: MsgVote, +type queryVotesByVoterRequestParams = { + value: QueryVotesByVoterRequest, }; -type msgExecParams = { - value: MsgExec, +type thresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy, }; -type msgUpdateGroupMembersParams = { - value: MsgUpdateGroupMembers, +type queryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest, }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal, +type queryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse, }; -type queryGroupsRequestParams = { - value: QueryGroupsRequest, +type queryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest, }; -type voteParams = { - value: Vote, +type msgCreateGroupParams = { + value: MsgCreateGroup, }; -type msgLeaveGroupParams = { - value: MsgLeaveGroup, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type eventVoteParams = { + value: EventVote, }; -type memberParams = { - value: Member, +type eventExecParams = { + value: EventExec, }; -type queryGroupInfoRequestParams = { - value: QueryGroupInfoRequest, +type groupPolicyInfoParams = { + value: GroupPolicyInfo, }; -type queryGroupInfoResponseParams = { - value: QueryGroupInfoResponse, +type tallyResultParams = { + value: TallyResult, }; -type queryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse, +type queryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse, }; -type thresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy, +type msgCreateGroupResponseParams = { + value: MsgCreateGroupResponse, }; -type msgCreateGroupPolicyResponseParams = { - value: MsgCreateGroupPolicyResponse, +type msgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type eventProposalPrunedParams = { + value: EventProposalPruned, }; -type msgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse, +type msgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata, }; -type eventExecParams = { - value: EventExec, +type msgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse, }; -type queryProposalResponseParams = { - value: QueryProposalResponse, +type queryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse, }; -type groupPolicyInfoParams = { - value: GroupPolicyInfo, +type queryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest, }; -type msgUpdateGroupPolicyAdminParams = { - value: MsgUpdateGroupPolicyAdmin, +type queryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse, }; type msgCreateGroupWithPolicyResponseParams = { value: MsgCreateGroupWithPolicyResponse, }; -type eventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy, +type voteParams = { + value: Vote, }; -type eventWithdrawProposalParams = { - value: EventWithdrawProposal, +type queryProposalResponseParams = { + value: QueryProposalResponse, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, +type msgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse, }; -type queryVotesByVoterRequestParams = { - value: QueryVotesByVoterRequest, +type msgVoteParams = { + value: MsgVote, }; -type queryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest, +type queryProposalRequestParams = { + value: QueryProposalRequest, }; -type queryGroupsResponseParams = { - value: QueryGroupsResponse, +type eventWithdrawProposalParams = { + value: EventWithdrawProposal, }; -type groupInfoParams = { - value: GroupInfo, +type eventLeaveGroupParams = { + value: EventLeaveGroup, }; -type eventUpdateGroupParams = { - value: EventUpdateGroup, +type queryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest, }; -type eventCreateGroupParams = { - value: EventCreateGroup, +type msgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata, }; -type msgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata, +type msgCreateGroupPolicyResponseParams = { + value: MsgCreateGroupPolicyResponse, }; -type msgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata, +type percentageDecisionPolicyParams = { + value: PercentageDecisionPolicy, }; -type msgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy, +type queryGroupInfoResponseParams = { + value: QueryGroupInfoResponse, }; -type msgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy, +type queryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest, }; -type queryGroupMembersResponseParams = { - value: QueryGroupMembersResponse, +type queryProposalsByGroupPolicyResponseParams = { + value: QueryProposalsByGroupPolicyResponse, }; type queryVoteByProposalVoterRequestParams = { value: QueryVoteByProposalVoterRequest, }; +type msgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy, +}; + export const registry = new Registry(msgTypes); @@ -899,507 +899,507 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise { + async sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupMembersResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupMembersRequest({ value: QueryGroupMembersRequest.fromPartial(value) }) + let msg = this.queryGroupMembersResponse({ value: QueryGroupMembersResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupMembersRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupMembersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise { + async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMemberRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.memberRequest({ value: MemberRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyAdminResponse({ value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMemberRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise { + async sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGroupMember: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.groupMember({ value: GroupMember.fromPartial(value) }) + let msg = this.msgWithdrawProposalResponse({ value: MsgWithdrawProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGroupMember: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) + let msg = this.queryGroupInfoRequest({ value: QueryGroupInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise { + async sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsByAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroupResponse({ value: MsgCreateGroupResponse.fromPartial(value) }) + let msg = this.queryGroupsByAdminResponse({ value: QueryGroupsByAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise { + async sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsByAdminRequest({ value: QueryGroupsByAdminRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupMembersResponse({ value: MsgUpdateGroupMembersResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsByAdminRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise { + async sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventCreateGroup: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPoliciesByGroupResponse({ value: QueryGroupPoliciesByGroupResponse.fromPartial(value) }) + let msg = this.eventCreateGroup({ value: EventCreateGroup.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventCreateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise { + async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsByGroupPolicyResponse({ value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }) + let msg = this.msgUpdateGroupMetadataResponse({ value: MsgUpdateGroupMetadataResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise { + async sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventUpdateGroup: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteByProposalVoterResponse({ value: QueryVoteByProposalVoterResponse.fromPartial(value) }) + let msg = this.eventUpdateGroup({ value: EventUpdateGroup.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventUpdateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise { + async sendMember({ value, fee, memo }: sendMemberParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMember: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesByProposalResponse({ value: QueryVotesByProposalResponse.fromPartial(value) }) + let msg = this.member({ value: Member.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesByProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMember: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupMetadataResponseParams): Promise { + async sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGroupMember: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupMetadataResponse({ value: MsgUpdateGroupMetadataResponse.fromPartial(value) }) + let msg = this.groupMember({ value: GroupMember.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupMember: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPolicyInfoRequest({ value: QueryGroupPolicyInfoRequest.fromPartial(value) }) + let msg = this.proposal({ value: Proposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPolicyInfoResponse({ value: QueryGroupPolicyInfoResponse.fromPartial(value) }) + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByProposalRequest({ value, fee, memo }: sendQueryVotesByProposalRequestParams): Promise { + async sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesByProposalRequest({ value: QueryVotesByProposalRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupAdminResponse({ value: MsgUpdateGroupAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesByProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise { + async sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPercentageDecisionPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesByProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.percentageDecisionPolicy({ value: PercentageDecisionPolicy.fromPartial(value) }) + let msg = this.queryVotesByProposalResponse({ value: QueryVotesByProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPercentageDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise { + async sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsByMemberRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) }) + let msg = this.queryGroupsByMemberRequest({ value: QueryGroupsByMemberRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByMemberRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyResponseParams): Promise { + async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyDecisionPolicyResponse({ value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }) + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise { + async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }) + let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise { + async sendDecisionPolicyWindows({ value, fee, memo }: sendDecisionPolicyWindowsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDecisionPolicyWindows: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPoliciesByGroupRequest({ value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }) + let msg = this.decisionPolicyWindows({ value: DecisionPolicyWindows.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDecisionPolicyWindows: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise { + async sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsByMemberResponse({ value: QueryGroupsByMemberResponse.fromPartial(value) }) + let msg = this.queryGroupPolicyInfoResponse({ value: QueryGroupPolicyInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsByMemberResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventProposalPruned({ value, fee, memo }: sendEventProposalPrunedParams): Promise { + async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventProposalPruned: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventProposalPruned({ value: EventProposalPruned.fromPartial(value) }) + let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventProposalPruned: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise { + async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) }) + let msg = this.msgExec({ value: MsgExec.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise { + async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupAdminResponse({ value: MsgUpdateGroupAdminResponse.fromPartial(value) }) + let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminResponseParams): Promise { + async sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyAdminResponse({ value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }) + let msg = this.queryGroupsRequest({ value: QueryGroupsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise { + async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPoliciesByAdminResponse({ value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }) + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise { + async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalsByGroupPolicyRequest({ value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyDecisionPolicyResponse({ value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventVote({ value: EventVote.fromPartial(value) }) + let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise { + async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyMetadataResponse({ value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }) + let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise { + async sendEventCreateGroupPolicy({ value, fee, memo }: sendEventCreateGroupPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventCreateGroupPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgWithdrawProposalResponse({ value: MsgWithdrawProposalResponse.fromPartial(value) }) + let msg = this.eventCreateGroupPolicy({ value: EventCreateGroupPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgWithdrawProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventCreateGroupPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise { + async sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroupResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventUpdateGroupPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.fromPartial(value) }) + let msg = this.eventUpdateGroupPolicy({ value: EventUpdateGroupPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgLeaveGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventUpdateGroupPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendProposal({ value, fee, memo }: sendProposalParams): Promise { + async sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMemberRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.proposal({ value: Proposal.fromPartial(value) }) + let msg = this.memberRequest({ value: MemberRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMemberRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise { + async sendQueryGroupsResponse({ value, fee, memo }: sendQueryGroupsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupPoliciesByAdminRequest({ value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }) + let msg = this.queryGroupsResponse({ value: QueryGroupsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise { + async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesByVoterResponse({ value: QueryVotesByVoterResponse.fromPartial(value) }) + let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesByVoterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message) } }, - async sendEventCreateGroupPolicy({ value, fee, memo }: sendEventCreateGroupPolicyParams): Promise { + async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventCreateGroupPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventCreateGroupPolicy({ value: EventCreateGroupPolicy.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventCreateGroupPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: '+ e.message) } }, @@ -1417,866 +1417,866 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { + async sendGroupInfo({ value, fee, memo }: sendGroupInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGroupInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }) + let msg = this.groupInfo({ value: GroupInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupInfo: Could not broadcast Tx: '+ e.message) } }, - async sendDecisionPolicyWindows({ value, fee, memo }: sendDecisionPolicyWindowsParams): Promise { + async sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendDecisionPolicyWindows: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupMembersRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.decisionPolicyWindows({ value: DecisionPolicyWindows.fromPartial(value) }) + let msg = this.queryGroupMembersRequest({ value: QueryGroupMembersRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDecisionPolicyWindows: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupMembersRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsByAdminRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryGroupsByAdminRequest({ value: QueryGroupsByAdminRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByAdminRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise { + async sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) }) + let msg = this.queryVoteByProposalVoterResponse({ value: QueryVoteByProposalVoterResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventLeaveGroup({ value, fee, memo }: sendEventLeaveGroupParams): Promise { + async sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventLeaveGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesByVoterRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventLeaveGroup({ value: EventLeaveGroup.fromPartial(value) }) + let msg = this.queryVotesByVoterRequest({ value: QueryVotesByVoterRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventLeaveGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByVoterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { + async sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendThresholdDecisionPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVote({ value: MsgVote.fromPartial(value) }) + let msg = this.thresholdDecisionPolicy({ value: ThresholdDecisionPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendThresholdDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { + async sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExec({ value: MsgExec.fromPartial(value) }) + let msg = this.queryGroupPolicyInfoRequest({ value: QueryGroupPolicyInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise { + async sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesByVoterResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) }) + let msg = this.queryVotesByVoterResponse({ value: QueryVotesByVoterResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByVoterResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }) + let msg = this.queryProposalsByGroupPolicyRequest({ value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise { + async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsRequest({ value: QueryGroupsRequest.fromPartial(value) }) + let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendVote({ value, fee, memo }: sendVoteParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.vote({ value: Vote.fromPartial(value) }) + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise { + async sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) }) + let msg = this.eventVote({ value: EventVote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventVote: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { + async sendEventExec({ value, fee, memo }: sendEventExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventExec: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }) + let msg = this.eventExec({ value: EventExec.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventExec: Could not broadcast Tx: '+ e.message) } }, - async sendMember({ value, fee, memo }: sendMemberParams): Promise { + async sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMember: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGroupPolicyInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.member({ value: Member.fromPartial(value) }) + let msg = this.groupPolicyInfo({ value: GroupPolicyInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMember: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupPolicyInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise { + async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTallyResult: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupInfoRequest({ value: QueryGroupInfoRequest.fromPartial(value) }) + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise { + async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupInfoResponse({ value: QueryGroupInfoResponse.fromPartial(value) }) + let msg = this.queryGroupPoliciesByAdminResponse({ value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise { + async sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroupResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsByAdminResponse({ value: QueryGroupsByAdminResponse.fromPartial(value) }) + let msg = this.msgCreateGroupResponse({ value: MsgCreateGroupResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsByAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupResponse: Could not broadcast Tx: '+ e.message) } }, - async sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise { + async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendThresholdDecisionPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.thresholdDecisionPolicy({ value: ThresholdDecisionPolicy.fromPartial(value) }) + let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendThresholdDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupPolicyResponse({ value, fee, memo }: sendMsgCreateGroupPolicyResponseParams): Promise { + async sendEventProposalPruned({ value, fee, memo }: sendEventProposalPrunedParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventProposalPruned: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroupPolicyResponse({ value: MsgCreateGroupPolicyResponse.fromPartial(value) }) + let msg = this.eventProposalPruned({ value: EventProposalPruned.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventProposalPruned: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise { + async sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgLeaveGroupResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupMembersResponse({ value: MsgUpdateGroupMembersResponse.fromPartial(value) }) + let msg = this.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgLeaveGroupResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventExec({ value, fee, memo }: sendEventExecParams): Promise { + async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventExec: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventExec({ value: EventExec.fromPartial(value) }) + let msg = this.queryGroupPoliciesByGroupResponse({ value: QueryGroupPoliciesByGroupResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventExec: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { + async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) + let msg = this.queryGroupPoliciesByAdminRequest({ value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise { + async sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGroupPolicyInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupsByMemberResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.groupPolicyInfo({ value: GroupPolicyInfo.fromPartial(value) }) + let msg = this.queryGroupsByMemberResponse({ value: QueryGroupsByMemberResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGroupPolicyInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByMemberResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise { + async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) }) + let msg = this.msgCreateGroupWithPolicyResponse({ value: MsgCreateGroupWithPolicyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise { + async sendVote({ value, fee, memo }: sendVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroupWithPolicyResponse({ value: MsgCreateGroupWithPolicyResponse.fromPartial(value) }) + let msg = this.vote({ value: Vote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) } }, - async sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise { + async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroupPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventUpdateGroupPolicy({ value: EventUpdateGroupPolicy.fromPartial(value) }) + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventUpdateGroupPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise { + async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventWithdrawProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventWithdrawProposal({ value: EventWithdrawProposal.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyMetadataResponse({ value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventWithdrawProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }) + let msg = this.msgVote({ value: MsgVote.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVotesByVoterRequest({ value: QueryVotesByVoterRequest.fromPartial(value) }) + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVotesByVoterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise { + async sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventWithdrawProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsByMemberRequest({ value: QueryGroupsByMemberRequest.fromPartial(value) }) + let msg = this.eventWithdrawProposal({ value: EventWithdrawProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsByMemberRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventWithdrawProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsResponse({ value, fee, memo }: sendQueryGroupsResponseParams): Promise { + async sendEventLeaveGroup({ value, fee, memo }: sendEventLeaveGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventLeaveGroup: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupsResponse({ value: QueryGroupsResponse.fromPartial(value) }) + let msg = this.eventLeaveGroup({ value: EventLeaveGroup.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventLeaveGroup: Could not broadcast Tx: '+ e.message) } }, - async sendGroupInfo({ value, fee, memo }: sendGroupInfoParams): Promise { + async sendQueryVotesByProposalRequest({ value, fee, memo }: sendQueryVotesByProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGroupInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVotesByProposalRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.groupInfo({ value: GroupInfo.fromPartial(value) }) + let msg = this.queryVotesByProposalRequest({ value: QueryVotesByProposalRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGroupInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise { + async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventUpdateGroup({ value: EventUpdateGroup.fromPartial(value) }) + let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventUpdateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise { + async sendMsgCreateGroupPolicyResponse({ value, fee, memo }: sendMsgCreateGroupPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventCreateGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventCreateGroup({ value: EventCreateGroup.fromPartial(value) }) + let msg = this.msgCreateGroupPolicyResponse({ value: MsgCreateGroupPolicyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventCreateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise { + async sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPercentageDecisionPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }) + let msg = this.percentageDecisionPolicy({ value: PercentageDecisionPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPercentageDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise { + async sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) }) + let msg = this.queryGroupInfoResponse({ value: QueryGroupInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise { + async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) }) + let msg = this.queryGroupPoliciesByGroupRequest({ value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise { + async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) }) + let msg = this.queryProposalsByGroupPolicyResponse({ value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise { + async sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGroupMembersResponse({ value: QueryGroupMembersResponse.fromPartial(value) }) + let msg = this.queryVoteByProposalVoterRequest({ value: QueryVoteByProposalVoterRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGroupMembersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise { + async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVoteByProposalVoterRequest({ value: QueryVoteByProposalVoterRequest.fromPartial(value) }) + let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject { + queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message) } }, - memberRequest({ value }: memberRequestParams): EncodeObject { + msgUpdateGroupPolicyAdminResponse({ value }: msgUpdateGroupPolicyAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message) } }, - groupMember({ value }: groupMemberParams): EncodeObject { + msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupMember: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message) } }, - msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject { + queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message) } }, - queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject { + msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message) } }, - queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject { + eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message) } }, - queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject { + msgUpdateGroupMetadataResponse({ value }: msgUpdateGroupMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message) } }, - queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject { + eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message) } }, - queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject { + member({ value }: memberParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Member: Could not create message: ' + e.message) } }, - msgUpdateGroupMetadataResponse({ value }: msgUpdateGroupMetadataResponseParams): EncodeObject { + groupMember({ value }: groupMemberParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GroupMember: Could not create message: ' + e.message) } }, - queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject { + proposal({ value }: proposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Proposal: Could not create message: ' + e.message) } }, - queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject { + msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message) } }, - percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject { + queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message) } }, - msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject { + queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyDecisionPolicyResponse({ value }: msgUpdateGroupPolicyDecisionPolicyResponseParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject { + msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message) } }, - queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject { + decisionPolicyWindows({ value }: decisionPolicyWindowsParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message) } }, - queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject { + queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message) } }, - eventProposalPruned({ value }: eventProposalPrunedParams): EncodeObject { + msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message) } }, - msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject { + msgExec({ value }: msgExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) } }, - msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject { + msgExecResponse({ value }: msgExecResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyAdminResponse({ value }: msgUpdateGroupPolicyAdminResponseParams): EncodeObject { + queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message) } }, - queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject { + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject { + msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message) } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + msgUpdateGroupPolicyDecisionPolicyResponse({ value }: msgUpdateGroupPolicyDecisionPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message) } }, - eventVote({ value }: eventVoteParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventVote: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject { + msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message) } }, - msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject { + eventCreateGroupPolicy({ value }: eventCreateGroupPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", value: EventCreateGroupPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventCreateGroupPolicy: Could not create message: ' + e.message) } }, - msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject { + eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + memberRequest({ value }: memberRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message) } }, - queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject { + queryGroupsResponse({ value }: queryGroupsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message) } }, - queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject { + msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message) } }, - eventCreateGroupPolicy({ value }: eventCreateGroupPolicyParams): EncodeObject { + msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", value: EventCreateGroupPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventCreateGroupPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message) } }, @@ -2288,203 +2288,195 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgExecResponse({ value }: msgExecResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) - } - }, - - decisionPolicyWindows({ value }: decisionPolicyWindowsParams): EncodeObject { + groupInfo({ value }: groupInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message) + throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject { + queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message) } }, - eventLeaveGroup({ value }: eventLeaveGroupParams): EncodeObject { + queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message) } }, - msgVote({ value }: msgVoteParams): EncodeObject { + queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message) } }, - msgExec({ value }: msgExecParams): EncodeObject { + thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) + throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message) } }, - msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject { + queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message) } }, - queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject { + queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message) } }, - vote({ value }: voteParams): EncodeObject { + msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.Vote", value: Vote.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message) } }, - msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { + eventVote({ value }: eventVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventVote: Could not create message: ' + e.message) } }, - member({ value }: memberParams): EncodeObject { + eventExec({ value }: eventExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Member: Could not create message: ' + e.message) + throw new Error('TxClient:EventExec: Could not create message: ' + e.message) } }, - queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject { + groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message) } }, - queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject { + queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message) } }, - thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject { + msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message) } }, - msgCreateGroupPolicyResponse({ value }: msgCreateGroupPolicyResponseParams): EncodeObject { + msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + eventProposalPruned({ value }: eventProposalPrunedParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message) } }, - msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject { + msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message) } }, - eventExec({ value }: eventExecParams): EncodeObject { + msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventExec: Could not create message: ' + e.message) + throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message) } }, - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { + queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message) } }, - groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject { + queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject { + queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message) } }, @@ -2496,115 +2488,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject { + vote({ value }: voteParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.Vote", value: Vote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:Vote: Could not create message: ' + e.message) } }, - eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject { + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message) } }, - queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject { + msgVote({ value }: msgVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) } }, - queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - queryGroupsResponse({ value }: queryGroupsResponseParams): EncodeObject { + eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message) } }, - groupInfo({ value }: groupInfoParams): EncodeObject { + eventLeaveGroup({ value }: eventLeaveGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message) + throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message) } }, - eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject { + queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message) } }, - eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject { + msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject { + msgCreateGroupPolicyResponse({ value }: msgCreateGroupPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message) } }, - msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject { + percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message) } }, - msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject { + queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message) } }, - msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject { + queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message) } }, - queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject { + queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message) } }, @@ -2616,6 +2608,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject { + try { + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message) + } + }, + } }; diff --git a/ts-client/cosmos.group.v1/registry.ts b/ts-client/cosmos.group.v1/registry.ts index 58c66bd1..21ad2939 100755 --- a/ts-client/cosmos.group.v1/registry.ts +++ b/ts-client/cosmos.group.v1/registry.ts @@ -1,162 +1,162 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; -import { GroupMember } from "./types/cosmos/group/v1/types"; -import { TallyResult } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { EventVote } from "./types/cosmos/group/v1/events"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { Member } from "./types/cosmos/group/v1/types"; +import { GroupMember } from "./types/cosmos/group/v1/types"; import { Proposal } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; -import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { Member } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; import { EventExec } from "./types/cosmos/group/v1/events"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { TallyResult } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { EventProposalPruned } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; -import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], - ["/cosmos.group.v1.MemberRequest", MemberRequest], - ["/cosmos.group.v1.GroupMember", GroupMember], - ["/cosmos.group.v1.TallyResult", TallyResult], - ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], - ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], - ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], - ["/cosmos.group.v1.QueryVoteByProposalVoterResponse", QueryVoteByProposalVoterResponse], - ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], - ["/cosmos.group.v1.MsgUpdateGroupMetadataResponse", MsgUpdateGroupMetadataResponse], - ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], - ["/cosmos.group.v1.QueryGroupPolicyInfoResponse", QueryGroupPolicyInfoResponse], - ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], - ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], - ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], - ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", MsgUpdateGroupPolicyDecisionPolicyResponse], - ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], - ["/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", QueryGroupPoliciesByGroupRequest], - ["/cosmos.group.v1.QueryGroupsByMemberResponse", QueryGroupsByMemberResponse], - ["/cosmos.group.v1.EventProposalPruned", EventProposalPruned], - ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], - ["/cosmos.group.v1.MsgUpdateGroupAdminResponse", MsgUpdateGroupAdminResponse], + ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", MsgUpdateGroupPolicyAdminResponse], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], - ["/cosmos.group.v1.QueryProposalRequest", QueryProposalRequest], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], - ["/cosmos.group.v1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.group.v1.EventVote", EventVote], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], ["/cosmos.group.v1.MsgWithdrawProposalResponse", MsgWithdrawProposalResponse], - ["/cosmos.group.v1.MsgLeaveGroupResponse", MsgLeaveGroupResponse], + ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], + ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], + ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], + ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], + ["/cosmos.group.v1.MsgUpdateGroupMetadataResponse", MsgUpdateGroupMetadataResponse], + ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], + ["/cosmos.group.v1.Member", Member], + ["/cosmos.group.v1.GroupMember", GroupMember], ["/cosmos.group.v1.Proposal", Proposal], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], - ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], - ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], - ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], - ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], + ["/cosmos.group.v1.QueryTallyResultResponse", QueryTallyResultResponse], + ["/cosmos.group.v1.MsgUpdateGroupAdminResponse", MsgUpdateGroupAdminResponse], + ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], + ["/cosmos.group.v1.QueryGroupsByMemberRequest", QueryGroupsByMemberRequest], + ["/cosmos.group.v1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup], ["/cosmos.group.v1.DecisionPolicyWindows", DecisionPolicyWindows], - ["/cosmos.group.v1.GenesisState", GenesisState], - ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], - ["/cosmos.group.v1.EventLeaveGroup", EventLeaveGroup], - ["/cosmos.group.v1.MsgVote", MsgVote], + ["/cosmos.group.v1.QueryGroupPolicyInfoResponse", QueryGroupPolicyInfoResponse], + ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgExec", MsgExec], - ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], - ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], ["/cosmos.group.v1.QueryGroupsRequest", QueryGroupsRequest], - ["/cosmos.group.v1.Vote", Vote], - ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup], ["/cosmos.group.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.group.v1.Member", Member], - ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], - ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], - ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], + ["/cosmos.group.v1.GenesisState", GenesisState], + ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], + ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", MsgUpdateGroupPolicyDecisionPolicyResponse], + ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], + ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], + ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], + ["/cosmos.group.v1.MemberRequest", MemberRequest], + ["/cosmos.group.v1.QueryGroupsResponse", QueryGroupsResponse], + ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], + ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], + ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], + ["/cosmos.group.v1.GroupInfo", GroupInfo], + ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], + ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], + ["/cosmos.group.v1.QueryVoteByProposalVoterResponse", QueryVoteByProposalVoterResponse], + ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], ["/cosmos.group.v1.ThresholdDecisionPolicy", ThresholdDecisionPolicy], - ["/cosmos.group.v1.MsgCreateGroupPolicyResponse", MsgCreateGroupPolicyResponse], - ["/cosmos.group.v1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], + ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], + ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], + ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], + ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.group.v1.EventVote", EventVote], ["/cosmos.group.v1.EventExec", EventExec], - ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], ["/cosmos.group.v1.GroupPolicyInfo", GroupPolicyInfo], - ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], + ["/cosmos.group.v1.TallyResult", TallyResult], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], + ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], + ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], + ["/cosmos.group.v1.EventProposalPruned", EventProposalPruned], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], + ["/cosmos.group.v1.MsgLeaveGroupResponse", MsgLeaveGroupResponse], + ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], + ["/cosmos.group.v1.QueryGroupsByMemberResponse", QueryGroupsByMemberResponse], ["/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", MsgCreateGroupWithPolicyResponse], - ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], + ["/cosmos.group.v1.Vote", Vote], + ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], + ["/cosmos.group.v1.MsgVote", MsgVote], + ["/cosmos.group.v1.QueryProposalRequest", QueryProposalRequest], ["/cosmos.group.v1.EventWithdrawProposal", EventWithdrawProposal], - ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], - ["/cosmos.group.v1.QueryGroupsByMemberRequest", QueryGroupsByMemberRequest], - ["/cosmos.group.v1.QueryGroupsResponse", QueryGroupsResponse], - ["/cosmos.group.v1.GroupInfo", GroupInfo], - ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], - ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], + ["/cosmos.group.v1.EventLeaveGroup", EventLeaveGroup], + ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], - ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], - ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], - ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], + ["/cosmos.group.v1.MsgCreateGroupPolicyResponse", MsgCreateGroupPolicyResponse], + ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], + ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], + ["/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", QueryGroupPoliciesByGroupRequest], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], ["/cosmos.group.v1.QueryVoteByProposalVoterRequest", QueryVoteByProposalVoterRequest], + ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ]; diff --git a/ts-client/cosmos.group.v1/rest.ts b/ts-client/cosmos.group.v1/rest.ts index 8149e504..db6fc31d 100644 --- a/ts-client/cosmos.group.v1/rest.ts +++ b/ts-client/cosmos.group.v1/rest.ts @@ -9,6 +9,426 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface GroupMember { + /** @format uint64 */ + group_id?: string; + member?: { address?: string; weight?: string; metadata?: string; added_at?: string }; +} + +export interface Member { + address?: string; + weight?: string; + metadata?: string; + + /** @format date-time */ + added_at?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export enum ProposalExecutorResult { + PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED", + PROPOSAL_EXECUTOR_RESULT_NOT_RUN = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN", + PROPOSAL_EXECUTOR_RESULT_SUCCESS = "PROPOSAL_EXECUTOR_RESULT_SUCCESS", + PROPOSAL_EXECUTOR_RESULT_FAILURE = "PROPOSAL_EXECUTOR_RESULT_FAILURE", +} + +export enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = "PROPOSAL_STATUS_UNSPECIFIED", + PROPOSAL_STATUS_SUBMITTED = "PROPOSAL_STATUS_SUBMITTED", + PROPOSAL_STATUS_ACCEPTED = "PROPOSAL_STATUS_ACCEPTED", + PROPOSAL_STATUS_REJECTED = "PROPOSAL_STATUS_REJECTED", + PROPOSAL_STATUS_ABORTED = "PROPOSAL_STATUS_ABORTED", + PROPOSAL_STATUS_WITHDRAWN = "PROPOSAL_STATUS_WITHDRAWN", +} + +export interface QueryGroupInfoResponse { + info?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }; +} + +export interface QueryGroupMembersResponse { + members?: { + group_id?: string; + member?: { address?: string; weight?: string; metadata?: string; added_at?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGroupPoliciesByAdminResponse { + group_policies?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGroupPoliciesByGroupResponse { + group_policies?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGroupPolicyInfoResponse { + info?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }; +} + +export interface QueryGroupsByAdminResponse { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGroupsByMemberResponse { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryGroupsResponse { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryProposalResponse { + proposal?: { + id?: string; + group_policy_address?: string; + metadata?: string; + proposers?: string[]; + submit_time?: string; + group_version?: string; + group_policy_version?: string; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_SUBMITTED" + | "PROPOSAL_STATUS_ACCEPTED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_ABORTED" + | "PROPOSAL_STATUS_WITHDRAWN"; + final_tally_result?: { yes_count?: string; abstain_count?: string; no_count?: string; no_with_veto_count?: string }; + voting_period_end?: string; + executor_result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + messages?: { "@type"?: string }[]; + title?: string; + summary?: string; + }; +} + +export interface QueryProposalsByGroupPolicyResponse { + proposals?: { + id?: string; + group_policy_address?: string; + metadata?: string; + proposers?: string[]; + submit_time?: string; + group_version?: string; + group_policy_version?: string; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_SUBMITTED" + | "PROPOSAL_STATUS_ACCEPTED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_ABORTED" + | "PROPOSAL_STATUS_WITHDRAWN"; + final_tally_result?: { yes_count?: string; abstain_count?: string; no_count?: string; no_with_veto_count?: string }; + voting_period_end?: string; + executor_result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + messages?: { "@type"?: string }[]; + title?: string; + summary?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryTallyResultResponse { + tally?: { yes_count?: string; abstain_count?: string; no_count?: string; no_with_veto_count?: string }; +} + +export interface QueryVoteByProposalVoterResponse { + vote?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }; +} + +export interface QueryVotesByProposalResponse { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryVotesByVoterResponse { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface Vote { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + + /** @format date-time */ + submit_time?: string; +} + +export enum VoteOption { + VOTE_OPTION_UNSPECIFIED = "VOTE_OPTION_UNSPECIFIED", + VOTE_OPTION_YES = "VOTE_OPTION_YES", + VOTE_OPTION_ABSTAIN = "VOTE_OPTION_ABSTAIN", + VOTE_OPTION_NO = "VOTE_OPTION_NO", + VOTE_OPTION_NO_WITH_VETO = "VOTE_OPTION_NO_WITH_VETO", +} + +export interface V1GroupInfo { + /** @format uint64 */ + id?: string; + admin?: string; + metadata?: string; + + /** @format uint64 */ + version?: string; + total_weight?: string; + + /** @format date-time */ + created_at?: string; +} + +export interface V1GroupPolicyInfo { + address?: string; + + /** @format uint64 */ + group_id?: string; + admin?: string; + metadata?: string; + + /** @format uint64 */ + version?: string; + decision_policy?: { "@type"?: string }; + + /** @format date-time */ + created_at?: string; +} + +export interface V1Proposal { + /** @format uint64 */ + id?: string; + group_policy_address?: string; + metadata?: string; + proposers?: string[]; + + /** @format date-time */ + submit_time?: string; + + /** @format uint64 */ + group_version?: string; + + /** @format uint64 */ + group_policy_version?: string; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_SUBMITTED" + | "PROPOSAL_STATUS_ACCEPTED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_ABORTED" + | "PROPOSAL_STATUS_WITHDRAWN"; + final_tally_result?: { yes_count?: string; abstain_count?: string; no_count?: string; no_with_veto_count?: string }; + + /** @format date-time */ + voting_period_end?: string; + executor_result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + messages?: { "@type"?: string }[]; + title?: string; + summary?: string; +} + +export interface V1TallyResult { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; +} + +export interface MemberRequest { + address?: string; + weight?: string; + metadata?: string; +} + +export interface MsgCreateGroupPolicyResponse { + address?: string; +} + +export interface MsgCreateGroupResponse { + /** @format uint64 */ + group_id?: string; +} + +export interface MsgCreateGroupWithPolicyResponse { + /** @format uint64 */ + group_id?: string; + group_policy_address?: string; +} + +export interface MsgExecResponse { + result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; +} + +export type MsgLeaveGroupResponse = object; + +export interface MsgSubmitProposalResponse { + /** @format uint64 */ + proposal_id?: string; +} + +export type MsgUpdateGroupAdminResponse = object; + +export type MsgUpdateGroupMembersResponse = object; + +export type MsgUpdateGroupMetadataResponse = object; + +export type MsgUpdateGroupPolicyAdminResponse = object; + +export type MsgUpdateGroupPolicyDecisionPolicyResponse = object; + +export type MsgUpdateGroupPolicyMetadataResponse = object; + +export type MsgVoteResponse = object; + +export type MsgWithdrawProposalResponse = object; + +export enum V1Exec { + EXEC_UNSPECIFIED = "EXEC_UNSPECIFIED", + EXEC_TRY = "EXEC_TRY", +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +552,523 @@ export class HttpClient { /** * @title HTTP API Console cosmos.group.v1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryGroupInfo + * @request GET:/cosmos/group/v1/group_info/{group_id} + */ + queryGroupInfo = (groupId: string, params: RequestParams = {}) => + this.request< + { + info?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/group_info/${groupId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupMembers + * @request GET:/cosmos/group/v1/group_members/{group_id} + */ + queryGroupMembers = ( + groupId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + members?: { + group_id?: string; + member?: { address?: string; weight?: string; metadata?: string; added_at?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/group_members/${groupId}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupPoliciesByAdmin + * @request GET:/cosmos/group/v1/group_policies_by_admin/{admin} + */ + queryGroupPoliciesByAdmin = ( + admin: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + group_policies?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/group_policies_by_admin/${admin}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupPoliciesByGroup + * @request GET:/cosmos/group/v1/group_policies_by_group/{group_id} + */ + queryGroupPoliciesByGroup = ( + groupId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + group_policies?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/group_policies_by_group/${groupId}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupPolicyInfo + * @request GET:/cosmos/group/v1/group_policy_info/{address} + */ + queryGroupPolicyInfo = (address: string, params: RequestParams = {}) => + this.request< + { + info?: { + address?: string; + group_id?: string; + admin?: string; + metadata?: string; + version?: string; + decision_policy?: { "@type"?: string }; + created_at?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/group_policy_info/${address}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroups + * @request GET:/cosmos/group/v1/groups + */ + queryGroups = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/groups`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupsByAdmin + * @request GET:/cosmos/group/v1/groups_by_admin/{admin} + */ + queryGroupsByAdmin = ( + admin: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/groups_by_admin/${admin}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryGroupsByMember + * @request GET:/cosmos/group/v1/groups_by_member/{address} + */ + queryGroupsByMember = ( + address: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + groups?: { + id?: string; + admin?: string; + metadata?: string; + version?: string; + total_weight?: string; + created_at?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/groups_by_member/${address}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposal + * @request GET:/cosmos/group/v1/proposal/{proposal_id} + */ + queryProposal = (proposalId: string, params: RequestParams = {}) => + this.request< + { + proposal?: { + id?: string; + group_policy_address?: string; + metadata?: string; + proposers?: string[]; + submit_time?: string; + group_version?: string; + group_policy_version?: string; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_SUBMITTED" + | "PROPOSAL_STATUS_ACCEPTED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_ABORTED" + | "PROPOSAL_STATUS_WITHDRAWN"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + }; + voting_period_end?: string; + executor_result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + messages?: { "@type"?: string }[]; + title?: string; + summary?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/proposal/${proposalId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryTallyResult + * @request GET:/cosmos/group/v1/proposals/{proposal_id}/tally + */ + queryTallyResult = (proposalId: string, params: RequestParams = {}) => + this.request< + { tally?: { yes_count?: string; abstain_count?: string; no_count?: string; no_with_veto_count?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/proposals/${proposalId}/tally`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryProposalsByGroupPolicy + * @request GET:/cosmos/group/v1/proposals_by_group_policy/{address} + */ + queryProposalsByGroupPolicy = ( + address: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + proposals?: { + id?: string; + group_policy_address?: string; + metadata?: string; + proposers?: string[]; + submit_time?: string; + group_version?: string; + group_policy_version?: string; + status?: + | "PROPOSAL_STATUS_UNSPECIFIED" + | "PROPOSAL_STATUS_SUBMITTED" + | "PROPOSAL_STATUS_ACCEPTED" + | "PROPOSAL_STATUS_REJECTED" + | "PROPOSAL_STATUS_ABORTED" + | "PROPOSAL_STATUS_WITHDRAWN"; + final_tally_result?: { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; + }; + voting_period_end?: string; + executor_result?: + | "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" + | "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" + | "PROPOSAL_EXECUTOR_RESULT_SUCCESS" + | "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + messages?: { "@type"?: string }[]; + title?: string; + summary?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/proposals_by_group_policy/${address}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVoteByProposalVoter + * @request GET:/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter} + */ + queryVoteByProposalVoter = (proposalId: string, voter: string, params: RequestParams = {}) => + this.request< + { + vote?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/vote_by_proposal_voter/${proposalId}/${voter}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVotesByProposal + * @request GET:/cosmos/group/v1/votes_by_proposal/{proposal_id} + */ + queryVotesByProposal = ( + proposalId: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/votes_by_proposal/${proposalId}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryVotesByVoter + * @request GET:/cosmos/group/v1/votes_by_voter/{voter} + */ + queryVotesByVoter = ( + voter: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + votes?: { + proposal_id?: string; + voter?: string; + option?: + | "VOTE_OPTION_UNSPECIFIED" + | "VOTE_OPTION_YES" + | "VOTE_OPTION_ABSTAIN" + | "VOTE_OPTION_NO" + | "VOTE_OPTION_NO_WITH_VETO"; + metadata?: string; + submit_time?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/group/v1/votes_by_voter/${voter}`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.mint.v1beta1/api.swagger.yml b/ts-client/cosmos.mint.v1beta1/api.swagger.yml index 322ab463..bb7b69dd 100644 --- a/ts-client/cosmos.mint.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.mint.v1beta1/api.swagger.yml @@ -3,3 +3,201 @@ info: title: HTTP API Console cosmos.mint.v1beta1 name: '' description: '' +paths: + /cosmos/mint/v1beta1/annual_provisions: + get: + operationId: Query_AnnualProvisions + responses: + '200': + description: A successful response. + schema: + type: object + properties: + annual_provisions: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/mint/v1beta1/inflation: + get: + operationId: Query_Inflation + responses: + '200': + description: A successful response. + schema: + type: object + properties: + inflation: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/mint/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + mint_denom: + type: string + inflation_rate_change: + type: string + inflation_max: + type: string + inflation_min: + type: string + goal_bonded: + type: string + blocks_per_year: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryAnnualProvisionsResponse: + type: object + properties: + annual_provisions: + type: string + format: byte + QueryInflationResponse: + type: object + properties: + inflation: + type: string + format: byte + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + mint_denom: + type: string + inflation_rate_change: + type: string + inflation_max: + type: string + inflation_min: + type: string + goal_bonded: + type: string + blocks_per_year: + type: string + format: uint64 + v1beta1.Params: + type: object + properties: + mint_denom: + type: string + inflation_rate_change: + type: string + inflation_max: + type: string + inflation_min: + type: string + goal_bonded: + type: string + blocks_per_year: + type: string + format: uint64 + MsgUpdateParamsResponse: + type: object + Params: + type: object + properties: + mint_denom: + type: string + inflation_rate_change: + type: string + inflation_max: + type: string + inflation_min: + type: string + goal_bonded: + type: string + blocks_per_year: + type: string + format: uint64 diff --git a/ts-client/cosmos.mint.v1beta1/module.ts b/ts-client/cosmos.mint.v1beta1/module.ts index 166ebfae..239211ae 100755 --- a/ts-client/cosmos.mint.v1beta1/module.ts +++ b/ts-client/cosmos.mint.v1beta1/module.ts @@ -6,41 +6,35 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +import { Params } from "./types/cosmos/mint/v1beta1/mint"; +import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { Minter } from "./types/cosmos/mint/v1beta1/mint"; -import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; +import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; -export { Params, QueryAnnualProvisionsRequest, QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsResponse, MsgUpdateParams, MsgUpdateParamsResponse, Minter, GenesisState }; +export { QueryInflationResponse, MsgUpdateParams, QueryAnnualProvisionsRequest, QueryInflationRequest, Params, GenesisState, MsgUpdateParamsResponse, QueryParamsRequest, Minter, QueryParamsResponse, QueryAnnualProvisionsResponse }; -type sendParamsParams = { - value: Params, - fee?: StdFee, - memo?: string -}; - -type sendQueryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest, +type sendQueryInflationResponseParams = { + value: QueryInflationResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest, fee?: StdFee, memo?: string }; @@ -51,26 +45,26 @@ type sendQueryInflationRequestParams = { memo?: string }; -type sendQueryInflationResponseParams = { - value: QueryInflationResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; @@ -81,55 +75,61 @@ type sendMinterParams = { memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; - -type paramsParams = { - value: Params, +type sendQueryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse, + fee?: StdFee, + memo?: string }; -type queryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest, + +type queryInflationResponseParams = { + value: QueryInflationResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest, }; type queryInflationRequestParams = { value: QueryInflationRequest, }; -type queryInflationResponseParams = { - value: QueryInflationResponse, -}; - -type queryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse, +type paramsParams = { + value: Params, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type genesisStateParams = { + value: GenesisState, }; type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, }; +type queryParamsRequestParams = { + value: QueryParamsRequest, +}; + type minterParams = { value: Minter, }; -type genesisStateParams = { - value: GenesisState, +type queryParamsResponseParams = { + value: QueryParamsResponse, +}; + +type queryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse, }; @@ -162,59 +162,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendParams({ value, fee, memo }: sendParamsParams): Promise { - if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise { + async sendQueryInflationResponse({ value, fee, memo }: sendQueryInflationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryInflationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAnnualProvisionsRequest({ value: QueryAnnualProvisionsRequest.fromPartial(value) }) + let msg = this.queryInflationResponse({ value: QueryInflationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryInflationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.queryAnnualProvisionsRequest({ value: QueryAnnualProvisionsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -232,59 +218,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryInflationResponse({ value, fee, memo }: sendQueryInflationResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInflationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryInflationResponse({ value: QueryInflationResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryInflationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAnnualProvisionsResponse({ value: QueryAnnualProvisionsResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -302,50 +288,56 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - - params({ value }: paramsParams): EncodeObject { - try { - return { typeUrl: "/cosmos.mint.v1beta1.Params", value: Params.fromPartial( value ) } + async sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryAnnualProvisionsResponse({ value: QueryAnnualProvisionsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Could not broadcast Tx: '+ e.message) } }, - queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject { + + queryInflationResponse({ value }: queryInflationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", value: QueryInflationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryInflationResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message) } }, @@ -357,35 +349,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryInflationResponse({ value }: queryInflationResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", value: QueryInflationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryInflationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryAnnualProvisionsResponse({ value }: queryAnnualProvisionsResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", value: QueryAnnualProvisionsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAnnualProvisionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, @@ -397,11 +389,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + } + }, + + queryAnnualProvisionsResponse({ value }: queryAnnualProvisionsResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", value: QueryAnnualProvisionsResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryAnnualProvisionsResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.mint.v1beta1/registry.ts b/ts-client/cosmos.mint.v1beta1/registry.ts index 3bcb6fe0..67ad05f6 100755 --- a/ts-client/cosmos.mint.v1beta1/registry.ts +++ b/ts-client/cosmos.mint.v1beta1/registry.ts @@ -1,28 +1,28 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +import { Params } from "./types/cosmos/mint/v1beta1/mint"; +import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { Minter } from "./types/cosmos/mint/v1beta1/mint"; -import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; +import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.mint.v1beta1.Params", Params], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], - ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], ["/cosmos.mint.v1beta1.QueryInflationResponse", QueryInflationResponse], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], ["/cosmos.mint.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], + ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], + ["/cosmos.mint.v1beta1.Params", Params], + ["/cosmos.mint.v1beta1.GenesisState", GenesisState], ["/cosmos.mint.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.mint.v1beta1.Minter", Minter], - ["/cosmos.mint.v1beta1.GenesisState", GenesisState], + ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], ]; diff --git a/ts-client/cosmos.mint.v1beta1/rest.ts b/ts-client/cosmos.mint.v1beta1/rest.ts index 4c95decd..624d34e0 100644 --- a/ts-client/cosmos.mint.v1beta1/rest.ts +++ b/ts-client/cosmos.mint.v1beta1/rest.ts @@ -9,6 +9,62 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface QueryAnnualProvisionsResponse { + /** @format byte */ + annual_provisions?: string; +} + +export interface QueryInflationResponse { + /** @format byte */ + inflation?: string; +} + +export interface QueryParamsResponse { + params?: { + mint_denom?: string; + inflation_rate_change?: string; + inflation_max?: string; + inflation_min?: string; + goal_bonded?: string; + blocks_per_year?: string; + }; +} + +export interface V1Beta1Params { + mint_denom?: string; + inflation_rate_change?: string; + inflation_max?: string; + inflation_min?: string; + goal_bonded?: string; + + /** @format uint64 */ + blocks_per_year?: string; +} + +export type MsgUpdateParamsResponse = object; + +export interface Params { + mint_denom?: string; + inflation_rate_change?: string; + inflation_max?: string; + inflation_min?: string; + goal_bonded?: string; + + /** @format uint64 */ + blocks_per_year?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +188,60 @@ export class HttpClient { /** * @title HTTP API Console cosmos.mint.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAnnualProvisions + * @request GET:/cosmos/mint/v1beta1/annual_provisions + */ + queryAnnualProvisions = (params: RequestParams = {}) => + this.request<{ annual_provisions?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>( + { + path: `/cosmos/mint/v1beta1/annual_provisions`, + method: "GET", + ...params, + }, + ); + + /** + * No description + * + * @tags Query + * @name QueryInflation + * @request GET:/cosmos/mint/v1beta1/inflation + */ + queryInflation = (params: RequestParams = {}) => + this.request<{ inflation?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/mint/v1beta1/inflation`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/mint/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + mint_denom?: string; + inflation_rate_change?: string; + inflation_max?: string; + inflation_min?: string; + goal_bonded?: string; + blocks_per_year?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/mint/v1beta1/params`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.nft.v1beta1/api.swagger.yml b/ts-client/cosmos.nft.v1beta1/api.swagger.yml index 0ccec759..51c70e11 100644 --- a/ts-client/cosmos.nft.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.nft.v1beta1/api.swagger.yml @@ -3,3 +3,629 @@ info: title: HTTP API Console cosmos.nft.v1beta1 name: '' description: '' +paths: + /cosmos/nft/v1beta1/balance/{owner}/{class_id}: + get: + operationId: Query_Balance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: owner + description: owner is the owner address of the nft + in: path + required: true + type: string + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + tags: + - Query + /cosmos/nft/v1beta1/classes: + get: + operationId: Query_Classes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + classes: + type: array + items: + type: object + properties: + id: + type: string + name: + type: string + symbol: + type: string + description: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/nft/v1beta1/classes/{class_id}: + get: + operationId: Query_Class + responses: + '200': + description: A successful response. + schema: + type: object + properties: + class: + type: object + properties: + id: + type: string + name: + type: string + symbol: + type: string + description: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + tags: + - Query + /cosmos/nft/v1beta1/nfts: + get: + operationId: Query_NFTs + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nfts: + type: array + items: + type: object + properties: + class_id: + type: string + id: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: class_id + in: query + required: false + type: string + - name: owner + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/nft/v1beta1/nfts/{class_id}/{id}: + get: + operationId: Query_NFT + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nft: + type: object + properties: + class_id: + type: string + id: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + - name: id + description: id is a unique identifier of the NFT + in: path + required: true + type: string + tags: + - Query + /cosmos/nft/v1beta1/owner/{class_id}/{id}: + get: + operationId: Query_Owner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + owner: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + - name: id + description: id is a unique identifier of the NFT + in: path + required: true + type: string + tags: + - Query + /cosmos/nft/v1beta1/supply/{class_id}: + get: + operationId: Query_Supply + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryBalanceResponse: + type: object + properties: + amount: + type: string + format: uint64 + QueryClassResponse: + type: object + properties: + class: + type: object + properties: + id: + type: string + name: + type: string + symbol: + type: string + description: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryClassesResponse: + type: object + properties: + classes: + type: array + items: + type: object + properties: + id: + type: string + name: + type: string + symbol: + type: string + description: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryNFTResponse: + type: object + properties: + nft: + type: object + properties: + class_id: + type: string + id: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryNFTsResponse: + type: object + properties: + nfts: + type: array + items: + type: object + properties: + class_id: + type: string + id: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryOwnerResponse: + type: object + properties: + owner: + type: string + QuerySupplyResponse: + type: object + properties: + amount: + type: string + format: uint64 + v1beta1.Class: + type: object + properties: + id: + type: string + name: + type: string + symbol: + type: string + description: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + v1beta1.NFT: + type: object + properties: + class_id: + type: string + id: + type: string + uri: + type: string + uri_hash: + type: string + data: + type: object + properties: + '@type': + type: string + additionalProperties: {} + MsgSendResponse: + type: object diff --git a/ts-client/cosmos.nft.v1beta1/module.ts b/ts-client/cosmos.nft.v1beta1/module.ts index 77cb3546..cee6cd39 100755 --- a/ts-client/cosmos.nft.v1beta1/module.ts +++ b/ts-client/cosmos.nft.v1beta1/module.ts @@ -6,59 +6,53 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryClassesRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryNFTsRequest } from "./types/cosmos/nft/v1beta1/query"; import { QueryBalanceRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryOwnerRequest } from "./types/cosmos/nft/v1beta1/query"; -import { NFT } from "./types/cosmos/nft/v1beta1/nft"; +import { QueryBalanceResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryNFTsRequest } from "./types/cosmos/nft/v1beta1/query"; +import { MsgSend } from "./types/cosmos/nft/v1beta1/tx"; import { QuerySupplyResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QueryNFTsResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QuerySupplyRequest } from "./types/cosmos/nft/v1beta1/query"; +import { Entry } from "./types/cosmos/nft/v1beta1/genesis"; +import { NFT } from "./types/cosmos/nft/v1beta1/nft"; import { MsgSendResponse } from "./types/cosmos/nft/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/nft/v1beta1/genesis"; +import { Class } from "./types/cosmos/nft/v1beta1/nft"; +import { QueryOwnerRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QueryNFTsResponse } from "./types/cosmos/nft/v1beta1/query"; import { QueryClassesResponse } from "./types/cosmos/nft/v1beta1/query"; -import { MsgSend } from "./types/cosmos/nft/v1beta1/tx"; +import { EventMint } from "./types/cosmos/nft/v1beta1/event"; +import { QueryOwnerResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassesRequest } from "./types/cosmos/nft/v1beta1/query"; +import { GenesisState } from "./types/cosmos/nft/v1beta1/genesis"; +import { QueryNFTRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassResponse } from "./types/cosmos/nft/v1beta1/query"; import { EventSend } from "./types/cosmos/nft/v1beta1/event"; import { EventBurn } from "./types/cosmos/nft/v1beta1/event"; -import { QueryNFTRequest } from "./types/cosmos/nft/v1beta1/query"; import { QueryNFTResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QueryClassResponse } from "./types/cosmos/nft/v1beta1/query"; -import { EventMint } from "./types/cosmos/nft/v1beta1/event"; -import { Class } from "./types/cosmos/nft/v1beta1/nft"; -import { QueryBalanceResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QuerySupplyRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryClassRequest } from "./types/cosmos/nft/v1beta1/query"; -import { Entry } from "./types/cosmos/nft/v1beta1/genesis"; -import { QueryOwnerResponse } from "./types/cosmos/nft/v1beta1/query"; -export { QueryClassesRequest, QueryNFTsRequest, QueryBalanceRequest, QueryOwnerRequest, NFT, QuerySupplyResponse, QueryNFTsResponse, MsgSendResponse, GenesisState, QueryClassesResponse, MsgSend, EventSend, EventBurn, QueryNFTRequest, QueryNFTResponse, QueryClassResponse, EventMint, Class, QueryBalanceResponse, QuerySupplyRequest, QueryClassRequest, Entry, QueryOwnerResponse }; +export { QueryBalanceRequest, QueryBalanceResponse, QueryNFTsRequest, MsgSend, QuerySupplyResponse, QueryClassRequest, QuerySupplyRequest, Entry, NFT, MsgSendResponse, Class, QueryOwnerRequest, QueryNFTsResponse, QueryClassesResponse, EventMint, QueryOwnerResponse, QueryClassesRequest, GenesisState, QueryNFTRequest, QueryClassResponse, EventSend, EventBurn, QueryNFTResponse }; -type sendQueryClassesRequestParams = { - value: QueryClassesRequest, - fee?: StdFee, - memo?: string -}; - -type sendQueryNFTsRequestParams = { - value: QueryNFTsRequest, +type sendQueryBalanceRequestParams = { + value: QueryBalanceRequest, fee?: StdFee, memo?: string }; -type sendQueryBalanceRequestParams = { - value: QueryBalanceRequest, +type sendQueryBalanceResponseParams = { + value: QueryBalanceResponse, fee?: StdFee, memo?: string }; -type sendQueryOwnerRequestParams = { - value: QueryOwnerRequest, +type sendQueryNFTsRequestParams = { + value: QueryNFTsRequest, fee?: StdFee, memo?: string }; -type sendNFTParams = { - value: NFT, +type sendMsgSendParams = { + value: MsgSend, fee?: StdFee, memo?: string }; @@ -69,199 +63,205 @@ type sendQuerySupplyResponseParams = { memo?: string }; -type sendQueryNFTsResponseParams = { - value: QueryNFTsResponse, +type sendQueryClassRequestParams = { + value: QueryClassRequest, fee?: StdFee, memo?: string }; -type sendMsgSendResponseParams = { - value: MsgSendResponse, +type sendQuerySupplyRequestParams = { + value: QuerySupplyRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendEntryParams = { + value: Entry, fee?: StdFee, memo?: string }; -type sendQueryClassesResponseParams = { - value: QueryClassesResponse, +type sendNFTParams = { + value: NFT, fee?: StdFee, memo?: string }; -type sendMsgSendParams = { - value: MsgSend, +type sendMsgSendResponseParams = { + value: MsgSendResponse, fee?: StdFee, memo?: string }; -type sendEventSendParams = { - value: EventSend, +type sendClassParams = { + value: Class, fee?: StdFee, memo?: string }; -type sendEventBurnParams = { - value: EventBurn, +type sendQueryOwnerRequestParams = { + value: QueryOwnerRequest, fee?: StdFee, memo?: string }; -type sendQueryNFTRequestParams = { - value: QueryNFTRequest, +type sendQueryNFTsResponseParams = { + value: QueryNFTsResponse, fee?: StdFee, memo?: string }; -type sendQueryNFTResponseParams = { - value: QueryNFTResponse, +type sendQueryClassesResponseParams = { + value: QueryClassesResponse, fee?: StdFee, memo?: string }; -type sendQueryClassResponseParams = { - value: QueryClassResponse, +type sendEventMintParams = { + value: EventMint, fee?: StdFee, memo?: string }; -type sendEventMintParams = { - value: EventMint, +type sendQueryOwnerResponseParams = { + value: QueryOwnerResponse, fee?: StdFee, memo?: string }; -type sendClassParams = { - value: Class, +type sendQueryClassesRequestParams = { + value: QueryClassesRequest, fee?: StdFee, memo?: string }; -type sendQueryBalanceResponseParams = { - value: QueryBalanceResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQuerySupplyRequestParams = { - value: QuerySupplyRequest, +type sendQueryNFTRequestParams = { + value: QueryNFTRequest, fee?: StdFee, memo?: string }; -type sendQueryClassRequestParams = { - value: QueryClassRequest, +type sendQueryClassResponseParams = { + value: QueryClassResponse, fee?: StdFee, memo?: string }; -type sendEntryParams = { - value: Entry, +type sendEventSendParams = { + value: EventSend, fee?: StdFee, memo?: string }; -type sendQueryOwnerResponseParams = { - value: QueryOwnerResponse, +type sendEventBurnParams = { + value: EventBurn, fee?: StdFee, memo?: string }; - -type queryClassesRequestParams = { - value: QueryClassesRequest, +type sendQueryNFTResponseParams = { + value: QueryNFTResponse, + fee?: StdFee, + memo?: string }; -type queryNftsRequestParams = { - value: QueryNFTsRequest, -}; type queryBalanceRequestParams = { value: QueryBalanceRequest, }; -type queryOwnerRequestParams = { - value: QueryOwnerRequest, +type queryBalanceResponseParams = { + value: QueryBalanceResponse, }; -type nftParams = { - value: NFT, +type queryNftsRequestParams = { + value: QueryNFTsRequest, }; -type querySupplyResponseParams = { - value: QuerySupplyResponse, +type msgSendParams = { + value: MsgSend, }; -type queryNftsResponseParams = { - value: QueryNFTsResponse, +type querySupplyResponseParams = { + value: QuerySupplyResponse, }; -type msgSendResponseParams = { - value: MsgSendResponse, +type queryClassRequestParams = { + value: QueryClassRequest, }; -type genesisStateParams = { - value: GenesisState, +type querySupplyRequestParams = { + value: QuerySupplyRequest, }; -type queryClassesResponseParams = { - value: QueryClassesResponse, +type entryParams = { + value: Entry, }; -type msgSendParams = { - value: MsgSend, +type nftParams = { + value: NFT, }; -type eventSendParams = { - value: EventSend, +type msgSendResponseParams = { + value: MsgSendResponse, }; -type eventBurnParams = { - value: EventBurn, +type classParams = { + value: Class, }; -type queryNftrequestParams = { - value: QueryNFTRequest, +type queryOwnerRequestParams = { + value: QueryOwnerRequest, }; -type queryNftresponseParams = { - value: QueryNFTResponse, +type queryNftsResponseParams = { + value: QueryNFTsResponse, }; -type queryClassResponseParams = { - value: QueryClassResponse, +type queryClassesResponseParams = { + value: QueryClassesResponse, }; type eventMintParams = { value: EventMint, }; -type classParams = { - value: Class, +type queryOwnerResponseParams = { + value: QueryOwnerResponse, }; -type queryBalanceResponseParams = { - value: QueryBalanceResponse, +type queryClassesRequestParams = { + value: QueryClassesRequest, }; -type querySupplyRequestParams = { - value: QuerySupplyRequest, +type genesisStateParams = { + value: GenesisState, }; -type queryClassRequestParams = { - value: QueryClassRequest, +type queryNftrequestParams = { + value: QueryNFTRequest, }; -type entryParams = { - value: Entry, +type queryClassResponseParams = { + value: QueryClassResponse, }; -type queryOwnerResponseParams = { - value: QueryOwnerResponse, +type eventSendParams = { + value: EventSend, +}; + +type eventBurnParams = { + value: EventBurn, +}; + +type queryNftresponseParams = { + value: QueryNFTResponse, }; @@ -294,510 +294,510 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryClassesRequest({ value, fee, memo }: sendQueryClassesRequestParams): Promise { + async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClassesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBalanceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClassesRequest({ value: QueryClassesRequest.fromPartial(value) }) + let msg = this.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClassesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNFTsRequest({ value, fee, memo }: sendQueryNFTsRequestParams): Promise { + async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNFTsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBalanceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNftsRequest({ value: QueryNFTsRequest.fromPartial(value) }) + let msg = this.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNFTsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { + async sendQueryNFTsRequest({ value, fee, memo }: sendQueryNFTsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNFTsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }) + let msg = this.queryNftsRequest({ value: QueryNFTsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNFTsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryOwnerRequest({ value, fee, memo }: sendQueryOwnerRequestParams): Promise { + async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryOwnerRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryOwnerRequest({ value: QueryOwnerRequest.fromPartial(value) }) + let msg = this.msgSend({ value: MsgSend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryOwnerRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: '+ e.message) } }, - async sendNFT({ value, fee, memo }: sendNFTParams): Promise { + async sendQuerySupplyResponse({ value, fee, memo }: sendQuerySupplyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendNFT: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySupplyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.nft({ value: NFT.fromPartial(value) }) + let msg = this.querySupplyResponse({ value: QuerySupplyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendNFT: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySupplyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySupplyResponse({ value, fee, memo }: sendQuerySupplyResponseParams): Promise { + async sendQueryClassRequest({ value, fee, memo }: sendQueryClassRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySupplyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClassRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySupplyResponse({ value: QuerySupplyResponse.fromPartial(value) }) + let msg = this.queryClassRequest({ value: QueryClassRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySupplyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClassRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNFTsResponse({ value, fee, memo }: sendQueryNFTsResponseParams): Promise { + async sendQuerySupplyRequest({ value, fee, memo }: sendQuerySupplyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNFTsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySupplyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNftsResponse({ value: QueryNFTsResponse.fromPartial(value) }) + let msg = this.querySupplyRequest({ value: QuerySupplyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNFTsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySupplyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendResponse({ value, fee, memo }: sendMsgSendResponseParams): Promise { + async sendEntry({ value, fee, memo }: sendEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEntry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSendResponse({ value: MsgSendResponse.fromPartial(value) }) + let msg = this.entry({ value: Entry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEntry: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendNFT({ value, fee, memo }: sendNFTParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendNFT: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.nft({ value: NFT.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendNFT: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClassesResponse({ value, fee, memo }: sendQueryClassesResponseParams): Promise { + async sendMsgSendResponse({ value, fee, memo }: sendMsgSendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClassesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSendResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClassesResponse({ value: QueryClassesResponse.fromPartial(value) }) + let msg = this.msgSendResponse({ value: MsgSendResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClassesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { + async sendClass({ value, fee, memo }: sendClassParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendClass: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSend({ value: MsgSend.fromPartial(value) }) + let msg = this.class({ value: Class.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClass: Could not broadcast Tx: '+ e.message) } }, - async sendEventSend({ value, fee, memo }: sendEventSendParams): Promise { + async sendQueryOwnerRequest({ value, fee, memo }: sendQueryOwnerRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventSend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryOwnerRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventSend({ value: EventSend.fromPartial(value) }) + let msg = this.queryOwnerRequest({ value: QueryOwnerRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryOwnerRequest: Could not broadcast Tx: '+ e.message) } }, - async sendEventBurn({ value, fee, memo }: sendEventBurnParams): Promise { + async sendQueryNFTsResponse({ value, fee, memo }: sendQueryNFTsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventBurn: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNFTsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventBurn({ value: EventBurn.fromPartial(value) }) + let msg = this.queryNftsResponse({ value: QueryNFTsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventBurn: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNFTsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNFTRequest({ value, fee, memo }: sendQueryNFTRequestParams): Promise { + async sendQueryClassesResponse({ value, fee, memo }: sendQueryClassesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNFTRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClassesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNftrequest({ value: QueryNFTRequest.fromPartial(value) }) + let msg = this.queryClassesResponse({ value: QueryClassesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNFTRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClassesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNFTResponse({ value, fee, memo }: sendQueryNFTResponseParams): Promise { + async sendEventMint({ value, fee, memo }: sendEventMintParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNFTResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventMint: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNftresponse({ value: QueryNFTResponse.fromPartial(value) }) + let msg = this.eventMint({ value: EventMint.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNFTResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventMint: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClassResponse({ value, fee, memo }: sendQueryClassResponseParams): Promise { + async sendQueryOwnerResponse({ value, fee, memo }: sendQueryOwnerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClassResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryOwnerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClassResponse({ value: QueryClassResponse.fromPartial(value) }) + let msg = this.queryOwnerResponse({ value: QueryOwnerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClassResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryOwnerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventMint({ value, fee, memo }: sendEventMintParams): Promise { + async sendQueryClassesRequest({ value, fee, memo }: sendQueryClassesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventMint: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClassesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.eventMint({ value: EventMint.fromPartial(value) }) + let msg = this.queryClassesRequest({ value: QueryClassesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEventMint: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClassesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendClass({ value, fee, memo }: sendClassParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendClass: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.class({ value: Class.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendClass: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { + async sendQueryNFTRequest({ value, fee, memo }: sendQueryNFTRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNFTRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }) + let msg = this.queryNftrequest({ value: QueryNFTRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNFTRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySupplyRequest({ value, fee, memo }: sendQuerySupplyRequestParams): Promise { + async sendQueryClassResponse({ value, fee, memo }: sendQueryClassResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySupplyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClassResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySupplyRequest({ value: QuerySupplyRequest.fromPartial(value) }) + let msg = this.queryClassResponse({ value: QueryClassResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySupplyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClassResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClassRequest({ value, fee, memo }: sendQueryClassRequestParams): Promise { + async sendEventSend({ value, fee, memo }: sendEventSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClassRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventSend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClassRequest({ value: QueryClassRequest.fromPartial(value) }) + let msg = this.eventSend({ value: EventSend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClassRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventSend: Could not broadcast Tx: '+ e.message) } }, - async sendEntry({ value, fee, memo }: sendEntryParams): Promise { + async sendEventBurn({ value, fee, memo }: sendEventBurnParams): Promise { if (!signer) { - throw new Error('TxClient:sendEntry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventBurn: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.entry({ value: Entry.fromPartial(value) }) + let msg = this.eventBurn({ value: EventBurn.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventBurn: Could not broadcast Tx: '+ e.message) } }, - async sendQueryOwnerResponse({ value, fee, memo }: sendQueryOwnerResponseParams): Promise { + async sendQueryNFTResponse({ value, fee, memo }: sendQueryNFTResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryOwnerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNFTResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryOwnerResponse({ value: QueryOwnerResponse.fromPartial(value) }) + let msg = this.queryNftresponse({ value: QueryNFTResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryOwnerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNFTResponse: Could not broadcast Tx: '+ e.message) } }, - queryClassesRequest({ value }: queryClassesRequestParams): EncodeObject { + queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest", value: QueryClassesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClassesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message) } }, - queryNftsRequest({ value }: queryNftsRequestParams): EncodeObject { + queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest", value: QueryNFTsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNFTsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message) } }, - queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject { + queryNftsRequest({ value }: queryNftsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest", value: QueryNFTsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNFTsRequest: Could not create message: ' + e.message) } }, - queryOwnerRequest({ value }: queryOwnerRequestParams): EncodeObject { + msgSend({ value }: msgSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest", value: QueryOwnerRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryOwnerRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) } }, - nft({ value }: nftParams): EncodeObject { + querySupplyResponse({ value }: querySupplyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.NFT", value: NFT.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse", value: QuerySupplyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:NFT: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySupplyResponse: Could not create message: ' + e.message) } }, - querySupplyResponse({ value }: querySupplyResponseParams): EncodeObject { + queryClassRequest({ value }: queryClassRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse", value: QuerySupplyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest", value: QueryClassRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySupplyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClassRequest: Could not create message: ' + e.message) } }, - queryNftsResponse({ value }: queryNftsResponseParams): EncodeObject { + querySupplyRequest({ value }: querySupplyRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse", value: QueryNFTsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest", value: QuerySupplyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNFTsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySupplyRequest: Could not create message: ' + e.message) } }, - msgSendResponse({ value }: msgSendResponseParams): EncodeObject { + entry({ value }: entryParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.Entry", value: Entry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Entry: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + nft({ value }: nftParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.NFT", value: NFT.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:NFT: Could not create message: ' + e.message) } }, - queryClassesResponse({ value }: queryClassesResponseParams): EncodeObject { + msgSendResponse({ value }: msgSendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse", value: QueryClassesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClassesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message) } }, - msgSend({ value }: msgSendParams): EncodeObject { + class({ value }: classParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.Class", value: Class.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) + throw new Error('TxClient:Class: Could not create message: ' + e.message) } }, - eventSend({ value }: eventSendParams): EncodeObject { + queryOwnerRequest({ value }: queryOwnerRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.EventSend", value: EventSend.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest", value: QueryOwnerRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventSend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryOwnerRequest: Could not create message: ' + e.message) } }, - eventBurn({ value }: eventBurnParams): EncodeObject { + queryNftsResponse({ value }: queryNftsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.EventBurn", value: EventBurn.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse", value: QueryNFTsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventBurn: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNFTsResponse: Could not create message: ' + e.message) } }, - queryNftrequest({ value }: queryNftrequestParams): EncodeObject { + queryClassesResponse({ value }: queryClassesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest", value: QueryNFTRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse", value: QueryClassesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNFTRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClassesResponse: Could not create message: ' + e.message) } }, - queryNftresponse({ value }: queryNftresponseParams): EncodeObject { + eventMint({ value }: eventMintParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse", value: QueryNFTResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.EventMint", value: EventMint.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNFTResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventMint: Could not create message: ' + e.message) } }, - queryClassResponse({ value }: queryClassResponseParams): EncodeObject { + queryOwnerResponse({ value }: queryOwnerResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse", value: QueryClassResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse", value: QueryOwnerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClassResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryOwnerResponse: Could not create message: ' + e.message) } }, - eventMint({ value }: eventMintParams): EncodeObject { + queryClassesRequest({ value }: queryClassesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.EventMint", value: EventMint.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest", value: QueryClassesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventMint: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClassesRequest: Could not create message: ' + e.message) } }, - class({ value }: classParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.Class", value: Class.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Class: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject { + queryNftrequest({ value }: queryNftrequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest", value: QueryNFTRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNFTRequest: Could not create message: ' + e.message) } }, - querySupplyRequest({ value }: querySupplyRequestParams): EncodeObject { + queryClassResponse({ value }: queryClassResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest", value: QuerySupplyRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse", value: QueryClassResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySupplyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClassResponse: Could not create message: ' + e.message) } }, - queryClassRequest({ value }: queryClassRequestParams): EncodeObject { + eventSend({ value }: eventSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest", value: QueryClassRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.EventSend", value: EventSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClassRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EventSend: Could not create message: ' + e.message) } }, - entry({ value }: entryParams): EncodeObject { + eventBurn({ value }: eventBurnParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.Entry", value: Entry.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.EventBurn", value: EventBurn.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Entry: Could not create message: ' + e.message) + throw new Error('TxClient:EventBurn: Could not create message: ' + e.message) } }, - queryOwnerResponse({ value }: queryOwnerResponseParams): EncodeObject { + queryNftresponse({ value }: queryNftresponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse", value: QueryOwnerResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse", value: QueryNFTResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryOwnerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNFTResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.nft.v1beta1/registry.ts b/ts-client/cosmos.nft.v1beta1/registry.ts index bb08bbd0..80517b7a 100755 --- a/ts-client/cosmos.nft.v1beta1/registry.ts +++ b/ts-client/cosmos.nft.v1beta1/registry.ts @@ -1,52 +1,52 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryClassesRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryNFTsRequest } from "./types/cosmos/nft/v1beta1/query"; import { QueryBalanceRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryOwnerRequest } from "./types/cosmos/nft/v1beta1/query"; -import { NFT } from "./types/cosmos/nft/v1beta1/nft"; +import { QueryBalanceResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryNFTsRequest } from "./types/cosmos/nft/v1beta1/query"; +import { MsgSend } from "./types/cosmos/nft/v1beta1/tx"; import { QuerySupplyResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QueryNFTsResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QuerySupplyRequest } from "./types/cosmos/nft/v1beta1/query"; +import { Entry } from "./types/cosmos/nft/v1beta1/genesis"; +import { NFT } from "./types/cosmos/nft/v1beta1/nft"; import { MsgSendResponse } from "./types/cosmos/nft/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/nft/v1beta1/genesis"; +import { Class } from "./types/cosmos/nft/v1beta1/nft"; +import { QueryOwnerRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QueryNFTsResponse } from "./types/cosmos/nft/v1beta1/query"; import { QueryClassesResponse } from "./types/cosmos/nft/v1beta1/query"; -import { MsgSend } from "./types/cosmos/nft/v1beta1/tx"; +import { EventMint } from "./types/cosmos/nft/v1beta1/event"; +import { QueryOwnerResponse } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassesRequest } from "./types/cosmos/nft/v1beta1/query"; +import { GenesisState } from "./types/cosmos/nft/v1beta1/genesis"; +import { QueryNFTRequest } from "./types/cosmos/nft/v1beta1/query"; +import { QueryClassResponse } from "./types/cosmos/nft/v1beta1/query"; import { EventSend } from "./types/cosmos/nft/v1beta1/event"; import { EventBurn } from "./types/cosmos/nft/v1beta1/event"; -import { QueryNFTRequest } from "./types/cosmos/nft/v1beta1/query"; import { QueryNFTResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QueryClassResponse } from "./types/cosmos/nft/v1beta1/query"; -import { EventMint } from "./types/cosmos/nft/v1beta1/event"; -import { Class } from "./types/cosmos/nft/v1beta1/nft"; -import { QueryBalanceResponse } from "./types/cosmos/nft/v1beta1/query"; -import { QuerySupplyRequest } from "./types/cosmos/nft/v1beta1/query"; -import { QueryClassRequest } from "./types/cosmos/nft/v1beta1/query"; -import { Entry } from "./types/cosmos/nft/v1beta1/genesis"; -import { QueryOwnerResponse } from "./types/cosmos/nft/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.nft.v1beta1.QueryClassesRequest", QueryClassesRequest], - ["/cosmos.nft.v1beta1.QueryNFTsRequest", QueryNFTsRequest], ["/cosmos.nft.v1beta1.QueryBalanceRequest", QueryBalanceRequest], - ["/cosmos.nft.v1beta1.QueryOwnerRequest", QueryOwnerRequest], - ["/cosmos.nft.v1beta1.NFT", NFT], + ["/cosmos.nft.v1beta1.QueryBalanceResponse", QueryBalanceResponse], + ["/cosmos.nft.v1beta1.QueryNFTsRequest", QueryNFTsRequest], + ["/cosmos.nft.v1beta1.MsgSend", MsgSend], ["/cosmos.nft.v1beta1.QuerySupplyResponse", QuerySupplyResponse], - ["/cosmos.nft.v1beta1.QueryNFTsResponse", QueryNFTsResponse], + ["/cosmos.nft.v1beta1.QueryClassRequest", QueryClassRequest], + ["/cosmos.nft.v1beta1.QuerySupplyRequest", QuerySupplyRequest], + ["/cosmos.nft.v1beta1.Entry", Entry], + ["/cosmos.nft.v1beta1.NFT", NFT], ["/cosmos.nft.v1beta1.MsgSendResponse", MsgSendResponse], - ["/cosmos.nft.v1beta1.GenesisState", GenesisState], + ["/cosmos.nft.v1beta1.Class", Class], + ["/cosmos.nft.v1beta1.QueryOwnerRequest", QueryOwnerRequest], + ["/cosmos.nft.v1beta1.QueryNFTsResponse", QueryNFTsResponse], ["/cosmos.nft.v1beta1.QueryClassesResponse", QueryClassesResponse], - ["/cosmos.nft.v1beta1.MsgSend", MsgSend], + ["/cosmos.nft.v1beta1.EventMint", EventMint], + ["/cosmos.nft.v1beta1.QueryOwnerResponse", QueryOwnerResponse], + ["/cosmos.nft.v1beta1.QueryClassesRequest", QueryClassesRequest], + ["/cosmos.nft.v1beta1.GenesisState", GenesisState], + ["/cosmos.nft.v1beta1.QueryNFTRequest", QueryNFTRequest], + ["/cosmos.nft.v1beta1.QueryClassResponse", QueryClassResponse], ["/cosmos.nft.v1beta1.EventSend", EventSend], ["/cosmos.nft.v1beta1.EventBurn", EventBurn], - ["/cosmos.nft.v1beta1.QueryNFTRequest", QueryNFTRequest], ["/cosmos.nft.v1beta1.QueryNFTResponse", QueryNFTResponse], - ["/cosmos.nft.v1beta1.QueryClassResponse", QueryClassResponse], - ["/cosmos.nft.v1beta1.EventMint", EventMint], - ["/cosmos.nft.v1beta1.Class", Class], - ["/cosmos.nft.v1beta1.QueryBalanceResponse", QueryBalanceResponse], - ["/cosmos.nft.v1beta1.QuerySupplyRequest", QuerySupplyRequest], - ["/cosmos.nft.v1beta1.QueryClassRequest", QueryClassRequest], - ["/cosmos.nft.v1beta1.Entry", Entry], - ["/cosmos.nft.v1beta1.QueryOwnerResponse", QueryOwnerResponse], ]; diff --git a/ts-client/cosmos.nft.v1beta1/rest.ts b/ts-client/cosmos.nft.v1beta1/rest.ts index 4bd78995..19d82736 100644 --- a/ts-client/cosmos.nft.v1beta1/rest.ts +++ b/ts-client/cosmos.nft.v1beta1/rest.ts @@ -9,6 +9,106 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryBalanceResponse { + /** @format uint64 */ + amount?: string; +} + +export interface QueryClassResponse { + class?: { + id?: string; + name?: string; + symbol?: string; + description?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; + }; +} + +export interface QueryClassesResponse { + classes?: { + id?: string; + name?: string; + symbol?: string; + description?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryNFTResponse { + nft?: { class_id?: string; id?: string; uri?: string; uri_hash?: string; data?: { "@type"?: string } }; +} + +export interface QueryNFTsResponse { + nfts?: { class_id?: string; id?: string; uri?: string; uri_hash?: string; data?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryOwnerResponse { + owner?: string; +} + +export interface QuerySupplyResponse { + /** @format uint64 */ + amount?: string; +} + +export interface V1Beta1Class { + id?: string; + name?: string; + symbol?: string; + description?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; +} + +export interface V1Beta1NFT { + class_id?: string; + id?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; +} + +export type MsgSendResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +232,160 @@ export class HttpClient { /** * @title HTTP API Console cosmos.nft.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryBalance + * @request GET:/cosmos/nft/v1beta1/balance/{owner}/{class_id} + */ + queryBalance = (owner: string, classId: string, params: RequestParams = {}) => + this.request<{ amount?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/nft/v1beta1/balance/${owner}/${classId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryClasses + * @request GET:/cosmos/nft/v1beta1/classes + */ + queryClasses = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + classes?: { + id?: string; + name?: string; + symbol?: string; + description?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/nft/v1beta1/classes`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryClass + * @request GET:/cosmos/nft/v1beta1/classes/{class_id} + */ + queryClass = (classId: string, params: RequestParams = {}) => + this.request< + { + class?: { + id?: string; + name?: string; + symbol?: string; + description?: string; + uri?: string; + uri_hash?: string; + data?: { "@type"?: string }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/nft/v1beta1/classes/${classId}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryNfTs + * @request GET:/cosmos/nft/v1beta1/nfts + */ + queryNFTs = ( + query?: { + class_id?: string; + owner?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + nfts?: { class_id?: string; id?: string; uri?: string; uri_hash?: string; data?: { "@type"?: string } }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/nft/v1beta1/nfts`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryNft + * @request GET:/cosmos/nft/v1beta1/nfts/{class_id}/{id} + */ + queryNFT = (classId: string, id: string, params: RequestParams = {}) => + this.request< + { nft?: { class_id?: string; id?: string; uri?: string; uri_hash?: string; data?: { "@type"?: string } } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/nft/v1beta1/nfts/${classId}/${id}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryOwner + * @request GET:/cosmos/nft/v1beta1/owner/{class_id}/{id} + */ + queryOwner = (classId: string, id: string, params: RequestParams = {}) => + this.request<{ owner?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/nft/v1beta1/owner/${classId}/${id}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySupply + * @request GET:/cosmos/nft/v1beta1/supply/{class_id} + */ + querySupply = (classId: string, params: RequestParams = {}) => + this.request<{ amount?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/nft/v1beta1/supply/${classId}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.params.v1beta1/api.swagger.yml b/ts-client/cosmos.params.v1beta1/api.swagger.yml index 5c8567fe..23ba0fab 100644 --- a/ts-client/cosmos.params.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.params.v1beta1/api.swagger.yml @@ -3,3 +3,158 @@ info: title: HTTP API Console cosmos.params.v1beta1 name: '' description: '' +paths: + /cosmos/params/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + param: + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: subspace + in: query + required: false + type: string + - name: key + in: query + required: false + type: string + tags: + - Query + /cosmos/params/v1beta1/subspaces: + get: + operationId: Query_Subspaces + responses: + '200': + description: A successful response. + schema: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + ParamChange: + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + QueryParamsResponse: + type: object + properties: + param: + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + QuerySubspacesResponse: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + Subspace: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string diff --git a/ts-client/cosmos.params.v1beta1/module.ts b/ts-client/cosmos.params.v1beta1/module.ts index 3a5141c8..85466862 100755 --- a/ts-client/cosmos.params.v1beta1/module.ts +++ b/ts-client/cosmos.params.v1beta1/module.ts @@ -6,19 +6,19 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ParamChange } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; -import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; +import { Subspace } from "./types/cosmos/params/v1beta1/query"; import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; +import { ParamChange } from "./types/cosmos/params/v1beta1/params"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; -import { Subspace } from "./types/cosmos/params/v1beta1/query"; +import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -export { ParamChange, QueryParamsResponse, QuerySubspacesResponse, ParameterChangeProposal, QueryParamsRequest, QuerySubspacesRequest, Subspace }; +export { QueryParamsRequest, QueryParamsResponse, Subspace, ParameterChangeProposal, ParamChange, QuerySubspacesRequest, QuerySubspacesResponse }; -type sendParamChangeParams = { - value: ParamChange, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; @@ -29,8 +29,8 @@ type sendQueryParamsResponseParams = { memo?: string }; -type sendQuerySubspacesResponseParams = { - value: QuerySubspacesResponse, +type sendSubspaceParams = { + value: Subspace, fee?: StdFee, memo?: string }; @@ -41,8 +41,8 @@ type sendParameterChangeProposalParams = { memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendParamChangeParams = { + value: ParamChange, fee?: StdFee, memo?: string }; @@ -53,39 +53,39 @@ type sendQuerySubspacesRequestParams = { memo?: string }; -type sendSubspaceParams = { - value: Subspace, +type sendQuerySubspacesResponseParams = { + value: QuerySubspacesResponse, fee?: StdFee, memo?: string }; -type paramChangeParams = { - value: ParamChange, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type querySubspacesResponseParams = { - value: QuerySubspacesResponse, +type subspaceParams = { + value: Subspace, }; type parameterChangeProposalParams = { value: ParameterChangeProposal, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type paramChangeParams = { + value: ParamChange, }; type querySubspacesRequestParams = { value: QuerySubspacesRequest, }; -type subspaceParams = { - value: Subspace, +type querySubspacesResponseParams = { + value: QuerySubspacesResponse, }; @@ -118,17 +118,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendParamChange({ value, fee, memo }: sendParamChangeParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParamChange: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.paramChange({ value: ParamChange.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParamChange: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -146,17 +146,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise { + async sendSubspace({ value, fee, memo }: sendSubspaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySubspacesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSubspace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySubspacesResponse({ value: QuerySubspacesResponse.fromPartial(value) }) + let msg = this.subspace({ value: Subspace.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySubspacesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSubspace: Could not broadcast Tx: '+ e.message) } }, @@ -174,17 +174,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendParamChange({ value, fee, memo }: sendParamChangeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParamChange: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.paramChange({ value: ParamChange.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParamChange: Could not broadcast Tx: '+ e.message) } }, @@ -202,26 +202,26 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendSubspace({ value, fee, memo }: sendSubspaceParams): Promise { + async sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSubspace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySubspacesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.subspace({ value: Subspace.fromPartial(value) }) + let msg = this.querySubspacesResponse({ value: QuerySubspacesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSubspace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySubspacesResponse: Could not broadcast Tx: '+ e.message) } }, - paramChange({ value }: paramChangeParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.ParamChange", value: ParamChange.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ParamChange: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, @@ -233,11 +233,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject { + subspace({ value }: subspaceParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Subspace: Could not create message: ' + e.message) } }, @@ -249,11 +249,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + paramChange({ value }: paramChangeParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.ParamChange", value: ParamChange.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ParamChange: Could not create message: ' + e.message) } }, @@ -265,11 +265,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - subspace({ value }: subspaceParams): EncodeObject { + querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Subspace: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.params.v1beta1/registry.ts b/ts-client/cosmos.params.v1beta1/registry.ts index 61c35d2c..9d3983bb 100755 --- a/ts-client/cosmos.params.v1beta1/registry.ts +++ b/ts-client/cosmos.params.v1beta1/registry.ts @@ -1,20 +1,20 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { ParamChange } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; -import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; +import { Subspace } from "./types/cosmos/params/v1beta1/query"; import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; +import { ParamChange } from "./types/cosmos/params/v1beta1/params"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; -import { Subspace } from "./types/cosmos/params/v1beta1/query"; +import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.params.v1beta1.ParamChange", ParamChange], + ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.params.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.params.v1beta1.QuerySubspacesResponse", QuerySubspacesResponse], + ["/cosmos.params.v1beta1.Subspace", Subspace], ["/cosmos.params.v1beta1.ParameterChangeProposal", ParameterChangeProposal], - ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.params.v1beta1.ParamChange", ParamChange], ["/cosmos.params.v1beta1.QuerySubspacesRequest", QuerySubspacesRequest], - ["/cosmos.params.v1beta1.Subspace", Subspace], + ["/cosmos.params.v1beta1.QuerySubspacesResponse", QuerySubspacesResponse], ]; diff --git a/ts-client/cosmos.params.v1beta1/rest.ts b/ts-client/cosmos.params.v1beta1/rest.ts index 9eed3e59..69381c0b 100644 --- a/ts-client/cosmos.params.v1beta1/rest.ts +++ b/ts-client/cosmos.params.v1beta1/rest.ts @@ -9,6 +9,36 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface ParamChange { + subspace?: string; + key?: string; + value?: string; +} + +export interface QueryParamsResponse { + param?: { subspace?: string; key?: string; value?: string }; +} + +export interface QuerySubspacesResponse { + subspaces?: { subspace?: string; keys?: string[] }[]; +} + +export interface Subspace { + subspace?: string; + keys?: string[]; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +162,39 @@ export class HttpClient { /** * @title HTTP API Console cosmos.params.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/params/v1beta1/params + */ + queryParams = (query?: { subspace?: string; key?: string }, params: RequestParams = {}) => + this.request< + { param?: { subspace?: string; key?: string; value?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/params/v1beta1/params`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySubspaces + * @request GET:/cosmos/params/v1beta1/subspaces + */ + querySubspaces = (params: RequestParams = {}) => + this.request< + { subspaces?: { subspace?: string; keys?: string[] }[] }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/params/v1beta1/subspaces`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.slashing.v1beta1/api.swagger.yml b/ts-client/cosmos.slashing.v1beta1/api.swagger.yml index 4f804950..748cb238 100644 --- a/ts-client/cosmos.slashing.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.slashing.v1beta1/api.swagger.yml @@ -3,3 +3,367 @@ info: title: HTTP API Console cosmos.slashing.v1beta1 name: '' description: '' +paths: + /cosmos/slashing/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/slashing/v1beta1/signing_infos: + get: + operationId: Query_SigningInfos + responses: + '200': + description: A successful response. + schema: + type: object + properties: + info: + type: array + items: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + index_offset: + type: string + format: int64 + jailed_until: + type: string + format: date-time + tombstoned: + type: boolean + missed_blocks_counter: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/slashing/v1beta1/signing_infos/{cons_address}: + get: + operationId: Query_SigningInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + val_signing_info: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + index_offset: + type: string + format: int64 + jailed_until: + type: string + format: date-time + tombstoned: + type: boolean + missed_blocks_counter: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: cons_address + description: cons_address is the address to query signing info of + in: path + required: true + type: string + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + QuerySigningInfoResponse: + type: object + properties: + val_signing_info: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + index_offset: + type: string + format: int64 + jailed_until: + type: string + format: date-time + tombstoned: + type: boolean + missed_blocks_counter: + type: string + format: int64 + QuerySigningInfosResponse: + type: object + properties: + info: + type: array + items: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + index_offset: + type: string + format: int64 + jailed_until: + type: string + format: date-time + tombstoned: + type: boolean + missed_blocks_counter: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + ValidatorSigningInfo: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + index_offset: + type: string + format: int64 + jailed_until: + type: string + format: date-time + tombstoned: + type: boolean + missed_blocks_counter: + type: string + format: int64 + v1beta1.Params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + MsgUnjailResponse: + type: object + MsgUpdateParamsResponse: + type: object + Params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte diff --git a/ts-client/cosmos.slashing.v1beta1/module.ts b/ts-client/cosmos.slashing.v1beta1/module.ts index 002c9e72..8ed42c6d 100755 --- a/ts-client/cosmos.slashing.v1beta1/module.ts +++ b/ts-client/cosmos.slashing.v1beta1/module.ts @@ -6,46 +6,28 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; +import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; -import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -export { MsgUpdateParamsResponse, Params, ValidatorMissedBlocks, GenesisState, SigningInfo, MsgUpdateParams, QuerySigningInfoResponse, QueryParamsRequest, QuerySigningInfosRequest, QuerySigningInfosResponse, ValidatorSigningInfo, MissedBlock, MsgUnjail, MsgUnjailResponse, QueryParamsResponse, QuerySigningInfoRequest }; - -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, - fee?: StdFee, - memo?: string -}; - -type sendParamsParams = { - value: Params, - fee?: StdFee, - memo?: string -}; - -type sendValidatorMissedBlocksParams = { - value: ValidatorMissedBlocks, - fee?: StdFee, - memo?: string -}; +export { MsgUnjail, SigningInfo, ValidatorMissedBlocks, QueryParamsRequest, QuerySigningInfosResponse, MsgUpdateParamsResponse, ValidatorSigningInfo, GenesisState, MissedBlock, QuerySigningInfoResponse, MsgUpdateParams, QueryParamsResponse, QuerySigningInfoRequest, QuerySigningInfosRequest, MsgUnjailResponse, Params }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgUnjailParams = { + value: MsgUnjail, fee?: StdFee, memo?: string }; @@ -56,14 +38,8 @@ type sendSigningInfoParams = { memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, - fee?: StdFee, - memo?: string -}; - -type sendQuerySigningInfoResponseParams = { - value: QuerySigningInfoResponse, +type sendValidatorMissedBlocksParams = { + value: ValidatorMissedBlocks, fee?: StdFee, memo?: string }; @@ -74,14 +50,14 @@ type sendQueryParamsRequestParams = { memo?: string }; -type sendQuerySigningInfosRequestParams = { - value: QuerySigningInfosRequest, +type sendQuerySigningInfosResponseParams = { + value: QuerySigningInfosResponse, fee?: StdFee, memo?: string }; -type sendQuerySigningInfosResponseParams = { - value: QuerySigningInfosResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; @@ -92,20 +68,26 @@ type sendValidatorSigningInfoParams = { memo?: string }; +type sendGenesisStateParams = { + value: GenesisState, + fee?: StdFee, + memo?: string +}; + type sendMissedBlockParams = { value: MissedBlock, fee?: StdFee, memo?: string }; -type sendMsgUnjailParams = { - value: MsgUnjail, +type sendQuerySigningInfoResponseParams = { + value: QuerySigningInfoResponse, fee?: StdFee, memo?: string }; -type sendMsgUnjailResponseParams = { - value: MsgUnjailResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; @@ -122,61 +104,67 @@ type sendQuerySigningInfoRequestParams = { memo?: string }; +type sendQuerySigningInfosRequestParams = { + value: QuerySigningInfosRequest, + fee?: StdFee, + memo?: string +}; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgUnjailResponseParams = { + value: MsgUnjailResponse, + fee?: StdFee, + memo?: string }; -type paramsParams = { +type sendParamsParams = { value: Params, + fee?: StdFee, + memo?: string }; -type validatorMissedBlocksParams = { - value: ValidatorMissedBlocks, -}; -type genesisStateParams = { - value: GenesisState, +type msgUnjailParams = { + value: MsgUnjail, }; type signingInfoParams = { value: SigningInfo, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, -}; - -type querySigningInfoResponseParams = { - value: QuerySigningInfoResponse, +type validatorMissedBlocksParams = { + value: ValidatorMissedBlocks, }; type queryParamsRequestParams = { value: QueryParamsRequest, }; -type querySigningInfosRequestParams = { - value: QuerySigningInfosRequest, -}; - type querySigningInfosResponseParams = { value: QuerySigningInfosResponse, }; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, +}; + type validatorSigningInfoParams = { value: ValidatorSigningInfo, }; +type genesisStateParams = { + value: GenesisState, +}; + type missedBlockParams = { value: MissedBlock, }; -type msgUnjailParams = { - value: MsgUnjail, +type querySigningInfoResponseParams = { + value: QuerySigningInfoResponse, }; -type msgUnjailResponseParams = { - value: MsgUnjailResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; type queryParamsResponseParams = { @@ -187,6 +175,18 @@ type querySigningInfoRequestParams = { value: QuerySigningInfoRequest, }; +type querySigningInfosRequestParams = { + value: QuerySigningInfosRequest, +}; + +type msgUnjailResponseParams = { + value: MsgUnjailResponse, +}; + +type paramsParams = { + value: Params, +}; + export const registry = new Registry(msgTypes); @@ -217,31 +217,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUnjail: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.msgUnjail({ value: MsgUnjail.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnjail: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendSigningInfo({ value, fee, memo }: sendSigningInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSigningInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.signingInfo({ value: SigningInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSigningInfo: Could not broadcast Tx: '+ e.message) } }, @@ -259,202 +259,202 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSigningInfo({ value, fee, memo }: sendSigningInfoParams): Promise { + async sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSigningInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySigningInfosResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signingInfo({ value: SigningInfo.fromPartial(value) }) + let msg = this.querySigningInfosResponse({ value: QuerySigningInfosResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSigningInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfosResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise { + async sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorSigningInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySigningInfoResponse({ value: QuerySigningInfoResponse.fromPartial(value) }) + let msg = this.validatorSigningInfo({ value: ValidatorSigningInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySigningInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSigningInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfosRequest({ value, fee, memo }: sendQuerySigningInfosRequestParams): Promise { + async sendMissedBlock({ value, fee, memo }: sendMissedBlockParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfosRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMissedBlock: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySigningInfosRequest({ value: QuerySigningInfosRequest.fromPartial(value) }) + let msg = this.missedBlock({ value: MissedBlock.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySigningInfosRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMissedBlock: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise { + async sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfosResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySigningInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySigningInfosResponse({ value: QuerySigningInfosResponse.fromPartial(value) }) + let msg = this.querySigningInfoResponse({ value: QuerySigningInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySigningInfosResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSigningInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorSigningInfo({ value: ValidatorSigningInfo.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorSigningInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMissedBlock({ value, fee, memo }: sendMissedBlockParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMissedBlock: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.missedBlock({ value: MissedBlock.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMissedBlock: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise { + async sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUnjail: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySigningInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUnjail({ value: MsgUnjail.fromPartial(value) }) + let msg = this.querySigningInfoRequest({ value: QuerySigningInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUnjail: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUnjailResponse({ value, fee, memo }: sendMsgUnjailResponseParams): Promise { + async sendQuerySigningInfosRequest({ value, fee, memo }: sendQuerySigningInfosRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUnjailResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySigningInfosRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUnjailResponse({ value: MsgUnjailResponse.fromPartial(value) }) + let msg = this.querySigningInfosRequest({ value: QuerySigningInfosRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUnjailResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfosRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgUnjailResponse({ value, fee, memo }: sendMsgUnjailResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUnjailResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.msgUnjailResponse({ value: MsgUnjailResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnjailResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySigningInfoRequest({ value: QuerySigningInfoRequest.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySigningInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUnjail({ value }: msgUnjailParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + signingInfo({ value }: signingInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message) } }, @@ -466,107 +466,107 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - signingInfo({ value }: signingInfoParams): EncodeObject { + querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject { + validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - querySigningInfosRequest({ value }: querySigningInfosRequestParams): EncodeObject { + missedBlock({ value }: missedBlockParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", value: QuerySigningInfosRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", value: MissedBlock.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfosRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MissedBlock: Could not create message: ' + e.message) } }, - querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject { + querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfoResponse: Could not create message: ' + e.message) } }, - validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - missedBlock({ value }: missedBlockParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", value: MissedBlock.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MissedBlock: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - msgUnjail({ value }: msgUnjailParams): EncodeObject { + querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message) } }, - msgUnjailResponse({ value }: msgUnjailResponseParams): EncodeObject { + querySigningInfosRequest({ value }: querySigningInfosRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", value: MsgUnjailResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", value: QuerySigningInfosRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUnjailResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfosRequest: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgUnjailResponse({ value }: msgUnjailResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", value: MsgUnjailResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnjailResponse: Could not create message: ' + e.message) } }, - querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.slashing.v1beta1/registry.ts b/ts-client/cosmos.slashing.v1beta1/registry.ts index e8011866..593172ae 100755 --- a/ts-client/cosmos.slashing.v1beta1/registry.ts +++ b/ts-client/cosmos.slashing.v1beta1/registry.ts @@ -1,38 +1,38 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; +import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; -import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.slashing.v1beta1.Params", Params], - ["/cosmos.slashing.v1beta1.ValidatorMissedBlocks", ValidatorMissedBlocks], - ["/cosmos.slashing.v1beta1.GenesisState", GenesisState], + ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.SigningInfo", SigningInfo], - ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], + ["/cosmos.slashing.v1beta1.ValidatorMissedBlocks", ValidatorMissedBlocks], ["/cosmos.slashing.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], ["/cosmos.slashing.v1beta1.QuerySigningInfosResponse", QuerySigningInfosResponse], + ["/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.slashing.v1beta1.ValidatorSigningInfo", ValidatorSigningInfo], + ["/cosmos.slashing.v1beta1.GenesisState", GenesisState], ["/cosmos.slashing.v1beta1.MissedBlock", MissedBlock], - ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], - ["/cosmos.slashing.v1beta1.MsgUnjailResponse", MsgUnjailResponse], + ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], + ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.slashing.v1beta1.QueryParamsResponse", QueryParamsResponse], ["/cosmos.slashing.v1beta1.QuerySigningInfoRequest", QuerySigningInfoRequest], + ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], + ["/cosmos.slashing.v1beta1.MsgUnjailResponse", MsgUnjailResponse], + ["/cosmos.slashing.v1beta1.Params", Params], ]; diff --git a/ts-client/cosmos.slashing.v1beta1/rest.ts b/ts-client/cosmos.slashing.v1beta1/rest.ts index 1a01f80b..3cd6e90d 100644 --- a/ts-client/cosmos.slashing.v1beta1/rest.ts +++ b/ts-client/cosmos.slashing.v1beta1/rest.ts @@ -9,6 +9,122 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface QueryParamsResponse { + params?: { + signed_blocks_window?: string; + min_signed_per_window?: string; + downtime_jail_duration?: string; + slash_fraction_double_sign?: string; + slash_fraction_downtime?: string; + }; +} + +export interface QuerySigningInfoResponse { + val_signing_info?: { + address?: string; + start_height?: string; + index_offset?: string; + jailed_until?: string; + tombstoned?: boolean; + missed_blocks_counter?: string; + }; +} + +export interface QuerySigningInfosResponse { + info?: { + address?: string; + start_height?: string; + index_offset?: string; + jailed_until?: string; + tombstoned?: boolean; + missed_blocks_counter?: string; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface ValidatorSigningInfo { + address?: string; + + /** @format int64 */ + start_height?: string; + + /** @format int64 */ + index_offset?: string; + + /** @format date-time */ + jailed_until?: string; + tombstoned?: boolean; + + /** @format int64 */ + missed_blocks_counter?: string; +} + +export interface V1Beta1Params { + /** @format int64 */ + signed_blocks_window?: string; + + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + + /** @format byte */ + slash_fraction_double_sign?: string; + + /** @format byte */ + slash_fraction_downtime?: string; +} + +export type MsgUnjailResponse = object; + +export type MsgUpdateParamsResponse = object; + +export interface Params { + /** @format int64 */ + signed_blocks_window?: string; + + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + + /** @format byte */ + slash_fraction_double_sign?: string; + + /** @format byte */ + slash_fraction_downtime?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +248,92 @@ export class HttpClient { /** * @title HTTP API Console cosmos.slashing.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/slashing/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + signed_blocks_window?: string; + min_signed_per_window?: string; + downtime_jail_duration?: string; + slash_fraction_double_sign?: string; + slash_fraction_downtime?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/slashing/v1beta1/params`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySigningInfos + * @request GET:/cosmos/slashing/v1beta1/signing_infos + */ + querySigningInfos = ( + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + info?: { + address?: string; + start_height?: string; + index_offset?: string; + jailed_until?: string; + tombstoned?: boolean; + missed_blocks_counter?: string; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QuerySigningInfo + * @request GET:/cosmos/slashing/v1beta1/signing_infos/{cons_address} + */ + querySigningInfo = (consAddress: string, params: RequestParams = {}) => + this.request< + { + val_signing_info?: { + address?: string; + start_height?: string; + index_offset?: string; + jailed_until?: string; + tombstoned?: boolean; + missed_blocks_counter?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos/${consAddress}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.staking.v1beta1/api.swagger.yml b/ts-client/cosmos.staking.v1beta1/api.swagger.yml index 80430b76..c058dbb3 100644 --- a/ts-client/cosmos.staking.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.staking.v1beta1/api.swagger.yml @@ -3,3 +3,2815 @@ info: title: HTTP API Console cosmos.staking.v1beta1 name: '' description: '' +paths: + /cosmos/staking/v1beta1/delegations/{delegator_addr}: + get: + operationId: Query_DelegatorDelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations: + get: + operationId: Query_Redelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + redelegation_responses: + type: array + items: + type: object + properties: + redelegation: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + entries: + type: array + items: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + balance: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: src_validator_addr + in: query + required: false + type: string + - name: dst_validator_addr + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations: + get: + operationId: Query_DelegatorUnbondingDelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators: + get: + operationId: Query_DelegatorValidators + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validators: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}: + get: + operationId: Query_DelegatorValidator + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validator: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/staking/v1beta1/historical_info/{height}: + get: + operationId: Query_HistoricalInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + hist: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + valset: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: height + description: height defines at which height to query the historical info. + in: path + required: true + type: string + format: int64 + tags: + - Query + /cosmos/staking/v1beta1/params: + get: + operationId: Query_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + unbonding_time: + type: string + max_validators: + type: integer + format: int64 + max_entries: + type: integer + format: int64 + historical_entries: + type: integer + format: int64 + bond_denom: + type: string + min_commission_rate: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/staking/v1beta1/pool: + get: + operationId: Query_Pool + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pool: + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/staking/v1beta1/validators: + get: + operationId: Query_Validators + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validators: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: status + in: query + required: false + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/validators/{validator_addr}: + get: + operationId: Query_Validator + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validator: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/staking/v1beta1/validators/{validator_addr}/delegations: + get: + operationId: Query_ValidatorDelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}: + get: + operationId: Query_Delegation + responses: + '200': + description: A successful response. + schema: + type: object + properties: + delegation_response: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation: + get: + operationId: Query_UnbondingDelegation + responses: + '200': + description: A successful response. + schema: + type: object + properties: + unbond: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations: + get: + operationId: Query_ValidatorUnbondingDelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + BlockID: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + BondStatus: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + Commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + CommissionRates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + DelegationResponse: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + Description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + Header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + QueryDelegationResponse: + type: object + properties: + delegation_response: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + QueryDelegatorDelegationsResponse: + type: object + properties: + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryDelegatorUnbondingDelegationsResponse: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryDelegatorValidatorResponse: + type: object + properties: + validator: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + QueryDelegatorValidatorsResponse: + type: object + properties: + validators: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryHistoricalInfoResponse: + type: object + properties: + hist: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + valset: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + unbonding_time: + type: string + max_validators: + type: integer + format: int64 + max_entries: + type: integer + format: int64 + historical_entries: + type: integer + format: int64 + bond_denom: + type: string + min_commission_rate: + type: string + QueryPoolResponse: + type: object + properties: + pool: + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + QueryRedelegationsResponse: + type: object + properties: + redelegation_responses: + type: array + items: + type: object + properties: + redelegation: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + entries: + type: array + items: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + balance: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryUnbondingDelegationResponse: + type: object + properties: + unbond: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + QueryValidatorDelegationsResponse: + type: object + properties: + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + balance: + type: object + properties: + denom: + type: string + amount: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryValidatorResponse: + type: object + properties: + validator: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + QueryValidatorUnbondingDelegationsResponse: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + QueryValidatorsResponse: + type: object + properties: + validators: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + Redelegation: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + RedelegationEntry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + RedelegationEntryResponse: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + balance: + type: string + RedelegationResponse: + type: object + properties: + redelegation: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + entries: + type: array + items: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + shares_dst: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + balance: + type: string + UnbondingDelegationEntry: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + v1beta1.Delegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + shares: + type: string + v1beta1.HistoricalInfo: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + valset: + type: array + items: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + v1beta1.Params: + type: object + properties: + unbonding_time: + type: string + max_validators: + type: integer + format: int64 + max_entries: + type: integer + format: int64 + historical_entries: + type: integer + format: int64 + bond_denom: + type: string + min_commission_rate: + type: string + v1beta1.Pool: + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + v1beta1.UnbondingDelegation: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + completion_time: + type: string + format: date-time + initial_balance: + type: string + balance: + type: string + unbonding_id: + type: string + format: uint64 + unbonding_on_hold_ref_count: + type: string + format: int64 + v1beta1.Validator: + type: object + properties: + operator_address: + type: string + consensus_pubkey: + type: object + properties: + '@type': + type: string + additionalProperties: {} + jailed: + type: boolean + status: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + delegator_shares: + type: string + description: + type: object + properties: + moniker: + type: string + identity: + type: string + website: + type: string + security_contact: + type: string + details: + type: string + unbonding_height: + type: string + format: int64 + unbonding_time: + type: string + format: date-time + commission: + type: object + properties: + commission_rates: + type: object + properties: + rate: + type: string + max_rate: + type: string + max_change_rate: + type: string + update_time: + type: string + format: date-time + min_self_delegation: + type: string + unbonding_on_hold_ref_count: + type: string + format: int64 + unbonding_ids: + type: array + items: + type: string + format: uint64 + MsgBeginRedelegateResponse: + type: object + properties: + completion_time: + type: string + format: date-time + MsgCancelUnbondingDelegationResponse: + type: object + MsgCreateValidatorResponse: + type: object + MsgDelegateResponse: + type: object + MsgEditValidatorResponse: + type: object + MsgUndelegateResponse: + type: object + properties: + completion_time: + type: string + format: date-time + amount: + type: object + properties: + denom: + type: string + amount: + type: string + MsgUpdateParamsResponse: + type: object + Params: + type: object + properties: + unbonding_time: + type: string + max_validators: + type: integer + format: int64 + max_entries: + type: integer + format: int64 + historical_entries: + type: integer + format: int64 + bond_denom: + type: string + min_commission_rate: + type: string diff --git a/ts-client/cosmos.staking.v1beta1/module.ts b/ts-client/cosmos.staking.v1beta1/module.ts index 6b9fb645..1883840e 100755 --- a/ts-client/cosmos.staking.v1beta1/module.ts +++ b/ts-client/cosmos.staking.v1beta1/module.ts @@ -6,133 +6,133 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; +import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; -import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; +import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -export { ValAddresses, DVVTriplet, QueryDelegationRequest, QueryUnbondingDelegationResponse, MsgBeginRedelegate, ValidatorUpdates, MsgCreateValidator, QueryDelegationResponse, QueryDelegatorDelegationsResponse, QueryRedelegationsResponse, MsgEditValidatorResponse, Validator, LastValidatorPower, MsgUndelegate, MsgUpdateParams, UnbondingDelegation, Pool, GenesisState, QueryValidatorDelegationsRequest, QueryParamsResponse, MsgUndelegateResponse, CommissionRates, Description, MsgUpdateParamsResponse, QueryValidatorRequest, MsgDelegate, MsgBeginRedelegateResponse, DVVTriplets, Params, QueryDelegatorUnbondingDelegationsResponse, QueryDelegatorValidatorResponse, QueryHistoricalInfoResponse, DVPair, Delegation, QueryValidatorsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryParamsRequest, MsgCreateValidatorResponse, MsgCancelUnbondingDelegationResponse, StakeAuthorization_Validators, DVPairs, QueryDelegatorDelegationsRequest, UnbondingDelegationEntry, QueryValidatorDelegationsResponse, QueryUnbondingDelegationRequest, MsgDelegateResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorValidatorsResponse, HistoricalInfo, RedelegationEntryResponse, RedelegationResponse, StakeAuthorization, QueryDelegatorValidatorsRequest, QueryHistoricalInfoRequest, MsgEditValidator, MsgCancelUnbondingDelegation, Commission, DelegationResponse, Redelegation, QueryRedelegationsRequest, QueryPoolRequest, QueryPoolResponse, RedelegationEntry, QueryValidatorsRequest, QueryValidatorResponse, QueryDelegatorValidatorRequest }; +export { MsgDelegateResponse, GenesisState, LastValidatorPower, Params, ValidatorUpdates, DelegationResponse, QueryRedelegationsRequest, QueryHistoricalInfoRequest, MsgCancelUnbondingDelegation, QueryDelegationRequest, MsgEditValidatorResponse, Description, Commission, ValAddresses, DVVTriplets, QueryDelegatorUnbondingDelegationsRequest, QueryRedelegationsResponse, QueryPoolRequest, MsgCancelUnbondingDelegationResponse, Pool, UnbondingDelegationEntry, MsgBeginRedelegateResponse, MsgUndelegateResponse, DVPair, Delegation, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsResponse, QueryDelegatorDelegationsRequest, QueryDelegatorValidatorRequest, QueryHistoricalInfoResponse, Redelegation, RedelegationResponse, QueryDelegatorDelegationsResponse, DVVTriplet, MsgBeginRedelegate, MsgUpdateParams, QueryParamsResponse, QueryValidatorResponse, QueryUnbondingDelegationRequest, QueryDelegatorUnbondingDelegationsResponse, QueryDelegatorValidatorsResponse, MsgCreateValidator, MsgUndelegate, MsgUpdateParamsResponse, UnbondingDelegation, StakeAuthorization_Validators, QueryPoolResponse, MsgEditValidator, Validator, CommissionRates, DVPairs, StakeAuthorization, QueryUnbondingDelegationResponse, QueryDelegatorValidatorsRequest, RedelegationEntryResponse, QueryDelegatorValidatorResponse, QueryParamsRequest, MsgCreateValidatorResponse, MsgDelegate, RedelegationEntry, QueryValidatorsResponse, QueryValidatorsRequest, QueryValidatorRequest, QueryValidatorUnbondingDelegationsRequest, QueryDelegationResponse, HistoricalInfo }; -type sendValAddressesParams = { - value: ValAddresses, +type sendMsgDelegateResponseParams = { + value: MsgDelegateResponse, fee?: StdFee, memo?: string }; -type sendDVVTripletParams = { - value: DVVTriplet, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryDelegationRequestParams = { - value: QueryDelegationRequest, +type sendLastValidatorPowerParams = { + value: LastValidatorPower, fee?: StdFee, memo?: string }; -type sendQueryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendMsgBeginRedelegateParams = { - value: MsgBeginRedelegate, +type sendValidatorUpdatesParams = { + value: ValidatorUpdates, fee?: StdFee, memo?: string }; -type sendValidatorUpdatesParams = { - value: ValidatorUpdates, +type sendDelegationResponseParams = { + value: DelegationResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateValidatorParams = { - value: MsgCreateValidator, +type sendQueryRedelegationsRequestParams = { + value: QueryRedelegationsRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegationResponseParams = { - value: QueryDelegationResponse, +type sendQueryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse, +type sendMsgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation, fee?: StdFee, memo?: string }; -type sendQueryRedelegationsResponseParams = { - value: QueryRedelegationsResponse, +type sendQueryDelegationRequestParams = { + value: QueryDelegationRequest, fee?: StdFee, memo?: string }; @@ -143,248 +143,248 @@ type sendMsgEditValidatorResponseParams = { memo?: string }; -type sendValidatorParams = { - value: Validator, +type sendDescriptionParams = { + value: Description, fee?: StdFee, memo?: string }; -type sendLastValidatorPowerParams = { - value: LastValidatorPower, +type sendCommissionParams = { + value: Commission, fee?: StdFee, memo?: string }; -type sendMsgUndelegateParams = { - value: MsgUndelegate, +type sendValAddressesParams = { + value: ValAddresses, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendDVVTripletsParams = { + value: DVVTriplets, fee?: StdFee, memo?: string }; -type sendUnbondingDelegationParams = { - value: UnbondingDelegation, +type sendQueryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest, fee?: StdFee, memo?: string }; -type sendPoolParams = { - value: Pool, +type sendQueryRedelegationsResponseParams = { + value: QueryRedelegationsResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryPoolRequestParams = { + value: QueryPoolRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorDelegationsRequestParams = { - value: QueryValidatorDelegationsRequest, +type sendMsgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendPoolParams = { + value: Pool, fee?: StdFee, memo?: string }; -type sendMsgUndelegateResponseParams = { - value: MsgUndelegateResponse, +type sendUnbondingDelegationEntryParams = { + value: UnbondingDelegationEntry, fee?: StdFee, memo?: string }; -type sendCommissionRatesParams = { - value: CommissionRates, +type sendMsgBeginRedelegateResponseParams = { + value: MsgBeginRedelegateResponse, fee?: StdFee, memo?: string }; -type sendDescriptionParams = { - value: Description, +type sendMsgUndelegateResponseParams = { + value: MsgUndelegateResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendDVPairParams = { + value: DVPair, fee?: StdFee, memo?: string }; -type sendQueryValidatorRequestParams = { - value: QueryValidatorRequest, +type sendDelegationParams = { + value: Delegation, fee?: StdFee, memo?: string }; -type sendMsgDelegateParams = { - value: MsgDelegate, +type sendQueryValidatorDelegationsRequestParams = { + value: QueryValidatorDelegationsRequest, fee?: StdFee, memo?: string }; -type sendMsgBeginRedelegateResponseParams = { - value: MsgBeginRedelegateResponse, +type sendQueryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse, fee?: StdFee, memo?: string }; -type sendDVVTripletsParams = { - value: DVVTriplets, +type sendQueryValidatorUnbondingDelegationsResponseParams = { + value: QueryValidatorUnbondingDelegationsResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse, +type sendQueryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse, +type sendQueryHistoricalInfoResponseParams = { + value: QueryHistoricalInfoResponse, fee?: StdFee, memo?: string }; -type sendQueryHistoricalInfoResponseParams = { - value: QueryHistoricalInfoResponse, +type sendRedelegationParams = { + value: Redelegation, fee?: StdFee, memo?: string }; -type sendDVPairParams = { - value: DVPair, +type sendRedelegationResponseParams = { + value: RedelegationResponse, fee?: StdFee, memo?: string }; -type sendDelegationParams = { - value: Delegation, +type sendQueryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorsResponseParams = { - value: QueryValidatorsResponse, +type sendDVVTripletParams = { + value: DVVTriplet, fee?: StdFee, memo?: string }; -type sendQueryValidatorUnbondingDelegationsRequestParams = { - value: QueryValidatorUnbondingDelegationsRequest, +type sendMsgBeginRedelegateParams = { + value: MsgBeginRedelegate, fee?: StdFee, memo?: string }; -type sendQueryValidatorUnbondingDelegationsResponseParams = { - value: QueryValidatorUnbondingDelegationsResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse, +type sendQueryValidatorResponseParams = { + value: QueryValidatorResponse, fee?: StdFee, memo?: string }; -type sendMsgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse, +type sendQueryUnbondingDelegationRequestParams = { + value: QueryUnbondingDelegationRequest, fee?: StdFee, memo?: string }; -type sendStakeAuthorization_ValidatorsParams = { - value: StakeAuthorization_Validators, +type sendQueryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse, fee?: StdFee, memo?: string }; -type sendDVPairsParams = { - value: DVPairs, +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest, +type sendMsgCreateValidatorParams = { + value: MsgCreateValidator, fee?: StdFee, memo?: string }; -type sendUnbondingDelegationEntryParams = { - value: UnbondingDelegationEntry, +type sendMsgUndelegateParams = { + value: MsgUndelegate, fee?: StdFee, memo?: string }; -type sendQueryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryUnbondingDelegationRequestParams = { - value: QueryUnbondingDelegationRequest, +type sendUnbondingDelegationParams = { + value: UnbondingDelegation, fee?: StdFee, memo?: string }; -type sendMsgDelegateResponseParams = { - value: MsgDelegateResponse, +type sendStakeAuthorization_ValidatorsParams = { + value: StakeAuthorization_Validators, fee?: StdFee, memo?: string }; -type sendQueryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest, +type sendQueryPoolResponseParams = { + value: QueryPoolResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type sendMsgEditValidatorParams = { + value: MsgEditValidator, fee?: StdFee, memo?: string }; -type sendHistoricalInfoParams = { - value: HistoricalInfo, +type sendValidatorParams = { + value: Validator, fee?: StdFee, memo?: string }; -type sendRedelegationEntryResponseParams = { - value: RedelegationEntryResponse, +type sendCommissionRatesParams = { + value: CommissionRates, fee?: StdFee, memo?: string }; -type sendRedelegationResponseParams = { - value: RedelegationResponse, +type sendDVPairsParams = { + value: DVPairs, fee?: StdFee, memo?: string }; @@ -395,217 +395,181 @@ type sendStakeAuthorizationParams = { memo?: string }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type sendQueryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse, fee?: StdFee, memo?: string }; -type sendQueryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest, +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, fee?: StdFee, memo?: string }; -type sendMsgEditValidatorParams = { - value: MsgEditValidator, +type sendRedelegationEntryResponseParams = { + value: RedelegationEntryResponse, fee?: StdFee, memo?: string }; -type sendMsgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation, +type sendQueryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse, fee?: StdFee, memo?: string }; -type sendCommissionParams = { - value: Commission, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendDelegationResponseParams = { - value: DelegationResponse, +type sendMsgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse, fee?: StdFee, memo?: string }; -type sendRedelegationParams = { - value: Redelegation, +type sendMsgDelegateParams = { + value: MsgDelegate, fee?: StdFee, memo?: string }; -type sendQueryRedelegationsRequestParams = { - value: QueryRedelegationsRequest, +type sendRedelegationEntryParams = { + value: RedelegationEntry, fee?: StdFee, memo?: string }; -type sendQueryPoolRequestParams = { - value: QueryPoolRequest, +type sendQueryValidatorsResponseParams = { + value: QueryValidatorsResponse, fee?: StdFee, memo?: string }; -type sendQueryPoolResponseParams = { - value: QueryPoolResponse, +type sendQueryValidatorsRequestParams = { + value: QueryValidatorsRequest, fee?: StdFee, memo?: string }; -type sendRedelegationEntryParams = { - value: RedelegationEntry, +type sendQueryValidatorRequestParams = { + value: QueryValidatorRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorsRequestParams = { - value: QueryValidatorsRequest, +type sendQueryValidatorUnbondingDelegationsRequestParams = { + value: QueryValidatorUnbondingDelegationsRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorResponseParams = { - value: QueryValidatorResponse, +type sendQueryDelegationResponseParams = { + value: QueryDelegationResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest, +type sendHistoricalInfoParams = { + value: HistoricalInfo, fee?: StdFee, memo?: string }; -type valAddressesParams = { - value: ValAddresses, -}; - -type dvvtripletParams = { - value: DVVTriplet, +type msgDelegateResponseParams = { + value: MsgDelegateResponse, }; -type queryDelegationRequestParams = { - value: QueryDelegationRequest, +type genesisStateParams = { + value: GenesisState, }; -type queryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse, +type lastValidatorPowerParams = { + value: LastValidatorPower, }; -type msgBeginRedelegateParams = { - value: MsgBeginRedelegate, +type paramsParams = { + value: Params, }; type validatorUpdatesParams = { value: ValidatorUpdates, }; -type msgCreateValidatorParams = { - value: MsgCreateValidator, -}; - -type queryDelegationResponseParams = { - value: QueryDelegationResponse, -}; - -type queryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse, -}; - -type queryRedelegationsResponseParams = { - value: QueryRedelegationsResponse, -}; - -type msgEditValidatorResponseParams = { - value: MsgEditValidatorResponse, +type delegationResponseParams = { + value: DelegationResponse, }; -type validatorParams = { - value: Validator, +type queryRedelegationsRequestParams = { + value: QueryRedelegationsRequest, }; -type lastValidatorPowerParams = { - value: LastValidatorPower, +type queryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest, }; -type msgUndelegateParams = { - value: MsgUndelegate, +type msgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryDelegationRequestParams = { + value: QueryDelegationRequest, }; -type unbondingDelegationParams = { - value: UnbondingDelegation, +type msgEditValidatorResponseParams = { + value: MsgEditValidatorResponse, }; -type poolParams = { - value: Pool, +type descriptionParams = { + value: Description, }; -type genesisStateParams = { - value: GenesisState, +type commissionParams = { + value: Commission, }; -type queryValidatorDelegationsRequestParams = { - value: QueryValidatorDelegationsRequest, +type valAddressesParams = { + value: ValAddresses, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type dvvtripletsParams = { + value: DVVTriplets, }; -type msgUndelegateResponseParams = { - value: MsgUndelegateResponse, +type queryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest, }; -type commissionRatesParams = { - value: CommissionRates, +type queryRedelegationsResponseParams = { + value: QueryRedelegationsResponse, }; -type descriptionParams = { - value: Description, +type queryPoolRequestParams = { + value: QueryPoolRequest, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse, }; -type queryValidatorRequestParams = { - value: QueryValidatorRequest, +type poolParams = { + value: Pool, }; -type msgDelegateParams = { - value: MsgDelegate, +type unbondingDelegationEntryParams = { + value: UnbondingDelegationEntry, }; type msgBeginRedelegateResponseParams = { value: MsgBeginRedelegateResponse, }; -type dvvtripletsParams = { - value: DVVTriplets, -}; - -type paramsParams = { - value: Params, -}; - -type queryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse, -}; - -type queryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse, -}; - -type queryHistoricalInfoResponseParams = { - value: QueryHistoricalInfoResponse, +type msgUndelegateResponseParams = { + value: MsgUndelegateResponse, }; type dvpairParams = { @@ -616,136 +580,172 @@ type delegationParams = { value: Delegation, }; -type queryValidatorsResponseParams = { - value: QueryValidatorsResponse, +type queryValidatorDelegationsRequestParams = { + value: QueryValidatorDelegationsRequest, }; -type queryValidatorUnbondingDelegationsRequestParams = { - value: QueryValidatorUnbondingDelegationsRequest, +type queryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse, }; type queryValidatorUnbondingDelegationsResponseParams = { value: QueryValidatorUnbondingDelegationsResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest, }; -type msgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse, +type queryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest, }; -type msgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse, +type queryHistoricalInfoResponseParams = { + value: QueryHistoricalInfoResponse, }; -type stakeAuthorizationValidatorsParams = { - value: StakeAuthorization_Validators, +type redelegationParams = { + value: Redelegation, }; -type dvpairsParams = { - value: DVPairs, +type redelegationResponseParams = { + value: RedelegationResponse, +}; + +type queryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse, +}; + +type dvvtripletParams = { + value: DVVTriplet, +}; + +type msgBeginRedelegateParams = { + value: MsgBeginRedelegate, }; -type queryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type unbondingDelegationEntryParams = { - value: UnbondingDelegationEntry, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse, +type queryValidatorResponseParams = { + value: QueryValidatorResponse, }; type queryUnbondingDelegationRequestParams = { value: QueryUnbondingDelegationRequest, }; -type msgDelegateResponseParams = { - value: MsgDelegateResponse, -}; - -type queryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest, +type queryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse, }; type queryDelegatorValidatorsResponseParams = { value: QueryDelegatorValidatorsResponse, }; -type historicalInfoParams = { - value: HistoricalInfo, +type msgCreateValidatorParams = { + value: MsgCreateValidator, }; -type redelegationEntryResponseParams = { - value: RedelegationEntryResponse, +type msgUndelegateParams = { + value: MsgUndelegate, }; -type redelegationResponseParams = { - value: RedelegationResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type stakeAuthorizationParams = { - value: StakeAuthorization, +type unbondingDelegationParams = { + value: UnbondingDelegation, }; -type queryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type stakeAuthorizationValidatorsParams = { + value: StakeAuthorization_Validators, }; -type queryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest, +type queryPoolResponseParams = { + value: QueryPoolResponse, }; type msgEditValidatorParams = { value: MsgEditValidator, }; -type msgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation, +type validatorParams = { + value: Validator, }; -type commissionParams = { - value: Commission, +type commissionRatesParams = { + value: CommissionRates, }; -type delegationResponseParams = { - value: DelegationResponse, +type dvpairsParams = { + value: DVPairs, }; -type redelegationParams = { - value: Redelegation, +type stakeAuthorizationParams = { + value: StakeAuthorization, }; -type queryRedelegationsRequestParams = { - value: QueryRedelegationsRequest, +type queryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse, }; -type queryPoolRequestParams = { - value: QueryPoolRequest, +type queryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, }; -type queryPoolResponseParams = { - value: QueryPoolResponse, +type redelegationEntryResponseParams = { + value: RedelegationEntryResponse, +}; + +type queryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse, +}; + +type queryParamsRequestParams = { + value: QueryParamsRequest, +}; + +type msgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse, +}; + +type msgDelegateParams = { + value: MsgDelegate, }; type redelegationEntryParams = { value: RedelegationEntry, }; +type queryValidatorsResponseParams = { + value: QueryValidatorsResponse, +}; + type queryValidatorsRequestParams = { value: QueryValidatorsRequest, }; -type queryValidatorResponseParams = { - value: QueryValidatorResponse, +type queryValidatorRequestParams = { + value: QueryValidatorRequest, }; -type queryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest, +type queryValidatorUnbondingDelegationsRequestParams = { + value: QueryValidatorUnbondingDelegationsRequest, +}; + +type queryDelegationResponseParams = { + value: QueryDelegationResponse, +}; + +type historicalInfoParams = { + value: HistoricalInfo, }; @@ -778,143 +778,143 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise { + async sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValAddresses: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDelegateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.valAddresses({ value: ValAddresses.fromPartial(value) }) + let msg = this.msgDelegateResponse({ value: MsgDelegateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValAddresses: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVVTriplet: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.dvvtriplet({ value: DVVTriplet.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDVVTriplet: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRequest({ value, fee, memo }: sendQueryDelegationRequestParams): Promise { + async sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendLastValidatorPower: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationRequest({ value: QueryDelegationRequest.fromPartial(value) }) + let msg = this.lastValidatorPower({ value: LastValidatorPower.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendLastValidatorPower: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnbondingDelegationResponse({ value: QueryUnbondingDelegationResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise { + async sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorUpdates: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) }) + let msg = this.validatorUpdates({ value: ValidatorUpdates.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorUpdates: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise { + async sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorUpdates: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorUpdates({ value: ValidatorUpdates.fromPartial(value) }) + let msg = this.delegationResponse({ value: DelegationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorUpdates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { + async sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryRedelegationsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }) + let msg = this.queryRedelegationsRequest({ value: QueryRedelegationsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRedelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise { + async sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryHistoricalInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegationResponse({ value: QueryDelegationResponse.fromPartial(value) }) + let msg = this.queryHistoricalInfoRequest({ value: QueryHistoricalInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryHistoricalInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorDelegationsResponse({ value, fee, memo }: sendQueryDelegatorDelegationsResponseParams): Promise { + async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorDelegationsResponse({ value: QueryDelegatorDelegationsResponse.fromPartial(value) }) + let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise { + async sendQueryDelegationRequest({ value, fee, memo }: sendQueryDelegationRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryRedelegationsResponse({ value: QueryRedelegationsResponse.fromPartial(value) }) + let msg = this.queryDelegationRequest({ value: QueryDelegationRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryRedelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRequest: Could not broadcast Tx: '+ e.message) } }, @@ -932,577 +932,577 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { + async sendDescription({ value, fee, memo }: sendDescriptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDescription: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validator({ value: Validator.fromPartial(value) }) + let msg = this.description({ value: Description.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDescription: Could not broadcast Tx: '+ e.message) } }, - async sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise { + async sendCommission({ value, fee, memo }: sendCommissionParams): Promise { if (!signer) { - throw new Error('TxClient:sendLastValidatorPower: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCommission: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.lastValidatorPower({ value: LastValidatorPower.fromPartial(value) }) + let msg = this.commission({ value: Commission.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendLastValidatorPower: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommission: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise { + async sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValAddresses: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) }) + let msg = this.valAddresses({ value: ValAddresses.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValAddresses: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDVVTriplets: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.dvvtriplets({ value: DVVTriplets.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVVTriplets: Could not broadcast Tx: '+ e.message) } }, - async sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise { + async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.unbondingDelegation({ value: UnbondingDelegation.fromPartial(value) }) + let msg = this.queryDelegatorUnbondingDelegationsRequest({ value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUnbondingDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendPool({ value, fee, memo }: sendPoolParams): Promise { + async sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPool: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryRedelegationsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.pool({ value: Pool.fromPartial(value) }) + let msg = this.queryRedelegationsResponse({ value: QueryRedelegationsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRedelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPoolRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryPoolRequest({ value: QueryPoolRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPoolRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDelegationsRequest({ value, fee, memo }: sendQueryValidatorDelegationsRequestParams): Promise { + async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorDelegationsRequest({ value: QueryValidatorDelegationsRequest.fromPartial(value) }) + let msg = this.msgCancelUnbondingDelegationResponse({ value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendPool({ value, fee, memo }: sendPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPool: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.pool({ value: Pool.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPool: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise { + async sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUndelegateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUnbondingDelegationEntry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUndelegateResponse({ value: MsgUndelegateResponse.fromPartial(value) }) + let msg = this.unbondingDelegationEntry({ value: UnbondingDelegationEntry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUndelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUnbondingDelegationEntry: Could not broadcast Tx: '+ e.message) } }, - async sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise { + async sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommissionRates: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgBeginRedelegateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.commissionRates({ value: CommissionRates.fromPartial(value) }) + let msg = this.msgBeginRedelegateResponse({ value: MsgBeginRedelegateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCommissionRates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgBeginRedelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDescription({ value, fee, memo }: sendDescriptionParams): Promise { + async sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDescription: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUndelegateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.description({ value: Description.fromPartial(value) }) + let msg = this.msgUndelegateResponse({ value: MsgUndelegateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDescription: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUndelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendDVPair({ value, fee, memo }: sendDVPairParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDVPair: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.dvpair({ value: DVPair.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVPair: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise { + async sendDelegation({ value, fee, memo }: sendDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelegation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorRequest({ value: QueryValidatorRequest.fromPartial(value) }) + let msg = this.delegation({ value: Delegation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise { + async sendQueryValidatorDelegationsRequest({ value, fee, memo }: sendQueryValidatorDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) }) + let msg = this.queryValidatorDelegationsRequest({ value: QueryValidatorDelegationsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise { + async sendQueryValidatorDelegationsResponse({ value, fee, memo }: sendQueryValidatorDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgBeginRedelegateResponse({ value: MsgBeginRedelegateResponse.fromPartial(value) }) + let msg = this.queryValidatorDelegationsResponse({ value: QueryValidatorDelegationsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgBeginRedelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise { + async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVVTriplets: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.dvvtriplets({ value: DVVTriplets.fromPartial(value) }) + let msg = this.queryValidatorUnbondingDelegationsResponse({ value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDVVTriplets: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryDelegatorDelegationsRequest({ value: QueryDelegatorDelegationsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsResponseParams): Promise { + async sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorUnbondingDelegationsResponse({ value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }) + let msg = this.queryDelegatorValidatorRequest({ value: QueryDelegatorValidatorRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise { + async sendQueryHistoricalInfoResponse({ value, fee, memo }: sendQueryHistoricalInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryHistoricalInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorResponse({ value: QueryDelegatorValidatorResponse.fromPartial(value) }) + let msg = this.queryHistoricalInfoResponse({ value: QueryHistoricalInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryHistoricalInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryHistoricalInfoResponse({ value, fee, memo }: sendQueryHistoricalInfoResponseParams): Promise { + async sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRedelegation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryHistoricalInfoResponse({ value: QueryHistoricalInfoResponse.fromPartial(value) }) + let msg = this.redelegation({ value: Redelegation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryHistoricalInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegation: Could not broadcast Tx: '+ e.message) } }, - async sendDVPair({ value, fee, memo }: sendDVPairParams): Promise { + async sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVPair: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRedelegationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.dvpair({ value: DVPair.fromPartial(value) }) + let msg = this.redelegationResponse({ value: RedelegationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDVPair: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDelegation({ value, fee, memo }: sendDelegationParams): Promise { + async sendQueryDelegatorDelegationsResponse({ value, fee, memo }: sendQueryDelegatorDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegation({ value: Delegation.fromPartial(value) }) + let msg = this.queryDelegatorDelegationsResponse({ value: QueryDelegatorDelegationsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorsResponse({ value, fee, memo }: sendQueryValidatorsResponseParams): Promise { + async sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDVVTriplet: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorsResponse({ value: QueryValidatorsResponse.fromPartial(value) }) + let msg = this.dvvtriplet({ value: DVVTriplet.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVVTriplet: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsRequestParams): Promise { + async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorUnbondingDelegationsRequest({ value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }) + let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorUnbondingDelegationsResponse({ value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise { + async sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateValidatorResponse({ value: MsgCreateValidatorResponse.fromPartial(value) }) + let msg = this.queryValidatorResponse({ value: QueryValidatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise { + async sendQueryUnbondingDelegationRequest({ value, fee, memo }: sendQueryUnbondingDelegationRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelUnbondingDelegationResponse({ value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }) + let msg = this.queryUnbondingDelegationRequest({ value: QueryUnbondingDelegationRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: '+ e.message) } }, - async sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise { + async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendStakeAuthorization_Validators: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.stakeAuthorizationValidators({ value: StakeAuthorization_Validators.fromPartial(value) }) + let msg = this.queryDelegatorUnbondingDelegationsResponse({ value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStakeAuthorization_Validators: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDVPairs({ value, fee, memo }: sendDVPairsParams): Promise { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVPairs: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.dvpairs({ value: DVPairs.fromPartial(value) }) + let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDVPairs: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise { + async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorDelegationsRequest({ value: QueryDelegatorDelegationsRequest.fromPartial(value) }) + let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) } }, - async sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise { + async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegationEntry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.unbondingDelegationEntry({ value: UnbondingDelegationEntry.fromPartial(value) }) + let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUnbondingDelegationEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDelegationsResponse({ value, fee, memo }: sendQueryValidatorDelegationsResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorDelegationsResponse({ value: QueryValidatorDelegationsResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnbondingDelegationRequest({ value, fee, memo }: sendQueryUnbondingDelegationRequestParams): Promise { + async sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUnbondingDelegation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnbondingDelegationRequest({ value: QueryUnbondingDelegationRequest.fromPartial(value) }) + let msg = this.unbondingDelegation({ value: UnbondingDelegation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUnbondingDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise { + async sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDelegateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStakeAuthorization_Validators: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDelegateResponse({ value: MsgDelegateResponse.fromPartial(value) }) + let msg = this.stakeAuthorizationValidators({ value: StakeAuthorization_Validators.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStakeAuthorization_Validators: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise { + async sendQueryPoolResponse({ value, fee, memo }: sendQueryPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPoolResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorUnbondingDelegationsRequest({ value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }) + let msg = this.queryPoolResponse({ value: QueryPoolResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPoolResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { + async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }) + let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message) } }, - async sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise { + async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendHistoricalInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.historicalInfo({ value: HistoricalInfo.fromPartial(value) }) + let msg = this.validator({ value: Validator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendHistoricalInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise { + async sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationEntryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCommissionRates: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.redelegationEntryResponse({ value: RedelegationEntryResponse.fromPartial(value) }) + let msg = this.commissionRates({ value: CommissionRates.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRedelegationEntryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommissionRates: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise { + async sendDVPairs({ value, fee, memo }: sendDVPairsParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDVPairs: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.redelegationResponse({ value: RedelegationResponse.fromPartial(value) }) + let msg = this.dvpairs({ value: DVPairs.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRedelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVPairs: Could not broadcast Tx: '+ e.message) } }, @@ -1520,240 +1520,232 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { + async sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }) + let msg = this.queryUnbondingDelegationResponse({ value: QueryUnbondingDelegationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryHistoricalInfoRequest({ value: QueryHistoricalInfoRequest.fromPartial(value) }) + let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryHistoricalInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise { + async sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRedelegationEntryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) }) + let msg = this.redelegationEntryResponse({ value: RedelegationEntryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationEntryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise { + async sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) }) + let msg = this.queryDelegatorValidatorResponse({ value: QueryDelegatorValidatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCommission({ value, fee, memo }: sendCommissionParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommission: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.commission({ value: Commission.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCommission: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise { + async sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegationResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateValidatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delegationResponse({ value: DelegationResponse.fromPartial(value) }) + let msg = this.msgCreateValidatorResponse({ value: MsgCreateValidatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise { + async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.redelegation({ value: Redelegation.fromPartial(value) }) + let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRedelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message) } }, - async sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise { + async sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRedelegationEntry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryRedelegationsRequest({ value: QueryRedelegationsRequest.fromPartial(value) }) + let msg = this.redelegationEntry({ value: RedelegationEntry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryRedelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationEntry: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise { + async sendQueryValidatorsResponse({ value, fee, memo }: sendQueryValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPoolRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPoolRequest({ value: QueryPoolRequest.fromPartial(value) }) + let msg = this.queryValidatorsResponse({ value: QueryValidatorsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPoolRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPoolResponse({ value, fee, memo }: sendQueryPoolResponseParams): Promise { + async sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPoolResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPoolResponse({ value: QueryPoolResponse.fromPartial(value) }) + let msg = this.queryValidatorsRequest({ value: QueryValidatorsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise { + async sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationEntry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.redelegationEntry({ value: RedelegationEntry.fromPartial(value) }) + let msg = this.queryValidatorRequest({ value: QueryValidatorRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRedelegationEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise { + async sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorsRequest({ value: QueryValidatorsRequest.fromPartial(value) }) + let msg = this.queryValidatorUnbondingDelegationsRequest({ value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise { + async sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDelegationResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryValidatorResponse({ value: QueryValidatorResponse.fromPartial(value) }) + let msg = this.queryDelegationResponse({ value: QueryDelegationResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise { + async sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendHistoricalInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDelegatorValidatorRequest({ value: QueryDelegatorValidatorRequest.fromPartial(value) }) + let msg = this.historicalInfo({ value: HistoricalInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHistoricalInfo: Could not broadcast Tx: '+ e.message) } }, - valAddresses({ value }: valAddressesParams): EncodeObject { - try { - return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message) - } - }, - - dvvtriplet({ value }: dvvtripletParams): EncodeObject { + msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message) } }, - queryDelegationRequest({ value }: queryDelegationRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject { + lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:LastValidatorPower: Could not create message: ' + e.message) } }, - msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, @@ -1765,203 +1757,203 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject { + delegationResponse({ value }: delegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message) + throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message) } }, - queryDelegationResponse({ value }: queryDelegationResponseParams): EncodeObject { + queryRedelegationsRequest({ value }: queryRedelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", value: QueryDelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", value: QueryRedelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryRedelegationsRequest: Could not create message: ' + e.message) } }, - queryDelegatorDelegationsResponse({ value }: queryDelegatorDelegationsResponseParams): EncodeObject { + queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message) } }, - queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject { + msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message) } }, - msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject { + queryDelegationRequest({ value }: queryDelegationRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message) } }, - validator({ value }: validatorParams): EncodeObject { + msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message) + throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message) } }, - lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject { + description({ value }: descriptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:LastValidatorPower: Could not create message: ' + e.message) + throw new Error('TxClient:Description: Could not create message: ' + e.message) } }, - msgUndelegate({ value }: msgUndelegateParams): EncodeObject { + commission({ value }: commissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message) + throw new Error('TxClient:Commission: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + valAddresses({ value }: valAddressesParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message) } }, - unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject { + dvvtriplets({ value }: dvvtripletsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message) + throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message) } }, - pool({ value }: poolParams): EncodeObject { + queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Pool: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message) } }, - queryValidatorDelegationsRequest({ value }: queryValidatorDelegationsRequestParams): EncodeObject { + queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", value: QueryValidatorDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPoolRequest: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message) } }, - msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject { + pool({ value }: poolParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Pool: Could not create message: ' + e.message) } }, - commissionRates({ value }: commissionRatesParams): EncodeObject { + unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message) + throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message) } }, - description({ value }: descriptionParams): EncodeObject { + msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Description: Could not create message: ' + e.message) + throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message) } }, - queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject { + dvpair({ value }: dvpairParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DVPair: Could not create message: ' + e.message) } }, - msgDelegate({ value }: msgDelegateParams): EncodeObject { + delegation({ value }: delegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Delegation", value: Delegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message) + throw new Error('TxClient:Delegation: Could not create message: ' + e.message) } }, - msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject { + queryValidatorDelegationsRequest({ value }: queryValidatorDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", value: QueryValidatorDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDelegationsRequest: Could not create message: ' + e.message) } }, - dvvtriplets({ value }: dvvtripletsParams): EncodeObject { + queryValidatorDelegationsResponse({ value }: queryValidatorDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message) } }, - queryDelegatorUnbondingDelegationsResponse({ value }: queryDelegatorUnbondingDelegationsResponseParams): EncodeObject { + queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message) } }, - queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject { + queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message) } }, @@ -1973,163 +1965,171 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - dvpair({ value }: dvpairParams): EncodeObject { + redelegation({ value }: redelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVPair: Could not create message: ' + e.message) + throw new Error('TxClient:Redelegation: Could not create message: ' + e.message) } }, - delegation({ value }: delegationParams): EncodeObject { + redelegationResponse({ value }: redelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Delegation", value: Delegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", value: RedelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Delegation: Could not create message: ' + e.message) + throw new Error('TxClient:RedelegationResponse: Could not create message: ' + e.message) } }, - queryValidatorsResponse({ value }: queryValidatorsResponseParams): EncodeObject { + queryDelegatorDelegationsResponse({ value }: queryDelegatorDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message) } }, - queryValidatorUnbondingDelegationsRequest({ value }: queryValidatorUnbondingDelegationsRequestParams): EncodeObject { + dvvtriplet({ value }: dvvtripletParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", value: QueryValidatorUnbondingDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorUnbondingDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message) } }, - queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject { + msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject { + queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message) } }, - stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject { + queryUnbondingDelegationRequest({ value }: queryUnbondingDelegationRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message) } }, - dvpairs({ value }: dvpairsParams): EncodeObject { + queryDelegatorUnbondingDelegationsResponse({ value }: queryDelegatorUnbondingDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVPairs: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message) } }, - queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject { + queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) } }, - unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject { + msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message) } }, - queryValidatorDelegationsResponse({ value }: queryValidatorDelegationsResponseParams): EncodeObject { + msgUndelegate({ value }: msgUndelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message) } }, - queryUnbondingDelegationRequest({ value }: queryUnbondingDelegationRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject { + unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message) } }, - queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject { + stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { + queryPoolResponse({ value }: queryPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPoolResponse: Could not create message: ' + e.message) } }, - historicalInfo({ value }: historicalInfoParams): EncodeObject { + msgEditValidator({ value }: msgEditValidatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message) } }, - redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject { + validator({ value }: validatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Validator: Could not create message: ' + e.message) } }, - redelegationResponse({ value }: redelegationResponseParams): EncodeObject { + commissionRates({ value }: commissionRatesParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", value: RedelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message) + } + }, + + dvpairs({ value }: dvpairsParams): EncodeObject { + try { + return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:DVPairs: Could not create message: ' + e.message) } }, @@ -2141,115 +2141,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { + queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message) } }, - queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject { + queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) } }, - msgEditValidator({ value }: msgEditValidatorParams): EncodeObject { + redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message) + throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message) } }, - msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject { + queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message) } }, - commission({ value }: commissionParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Commission: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - delegationResponse({ value }: delegationResponseParams): EncodeObject { + msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message) } }, - redelegation({ value }: redelegationParams): EncodeObject { + msgDelegate({ value }: msgDelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Redelegation: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message) } }, - queryRedelegationsRequest({ value }: queryRedelegationsRequestParams): EncodeObject { + redelegationEntry({ value }: redelegationEntryParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", value: QueryRedelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRedelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message) } }, - queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject { + queryValidatorsResponse({ value }: queryValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPoolRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message) } }, - queryPoolResponse({ value }: queryPoolResponseParams): EncodeObject { + queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message) } }, - redelegationEntry({ value }: redelegationEntryParams): EncodeObject { + queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message) } }, - queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject { + queryValidatorUnbondingDelegationsRequest({ value }: queryValidatorUnbondingDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", value: QueryValidatorUnbondingDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorUnbondingDelegationsRequest: Could not create message: ' + e.message) } }, - queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject { + queryDelegationResponse({ value }: queryDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", value: QueryDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationResponse: Could not create message: ' + e.message) } }, - queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject { + historicalInfo({ value }: historicalInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.staking.v1beta1/registry.ts b/ts-client/cosmos.staking.v1beta1/registry.ts index 71646f99..55d17565 100755 --- a/ts-client/cosmos.staking.v1beta1/registry.ts +++ b/ts-client/cosmos.staking.v1beta1/registry.ts @@ -1,140 +1,140 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; +import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; -import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; +import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], - ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], - ["/cosmos.staking.v1beta1.QueryDelegationRequest", QueryDelegationRequest], - ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], - ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], + ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], + ["/cosmos.staking.v1beta1.GenesisState", GenesisState], + ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], + ["/cosmos.staking.v1beta1.Params", Params], ["/cosmos.staking.v1beta1.ValidatorUpdates", ValidatorUpdates], - ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], - ["/cosmos.staking.v1beta1.QueryDelegationResponse", QueryDelegationResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", QueryDelegatorDelegationsResponse], - ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], + ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], + ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], + ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], + ["/cosmos.staking.v1beta1.QueryDelegationRequest", QueryDelegationRequest], ["/cosmos.staking.v1beta1.MsgEditValidatorResponse", MsgEditValidatorResponse], - ["/cosmos.staking.v1beta1.Validator", Validator], - ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], - ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], - ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.staking.v1beta1.UnbondingDelegation", UnbondingDelegation], - ["/cosmos.staking.v1beta1.Pool", Pool], - ["/cosmos.staking.v1beta1.GenesisState", GenesisState], - ["/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", QueryValidatorDelegationsRequest], - ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.staking.v1beta1.MsgUndelegateResponse", MsgUndelegateResponse], - ["/cosmos.staking.v1beta1.CommissionRates", CommissionRates], ["/cosmos.staking.v1beta1.Description", Description], - ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], - ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], - ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], + ["/cosmos.staking.v1beta1.Commission", Commission], + ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], ["/cosmos.staking.v1beta1.DVVTriplets", DVVTriplets], - ["/cosmos.staking.v1beta1.Params", Params], - ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", QueryDelegatorUnbondingDelegationsResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", QueryDelegatorValidatorResponse], - ["/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", QueryHistoricalInfoResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], + ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], + ["/cosmos.staking.v1beta1.Pool", Pool], + ["/cosmos.staking.v1beta1.UnbondingDelegationEntry", UnbondingDelegationEntry], + ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], + ["/cosmos.staking.v1beta1.MsgUndelegateResponse", MsgUndelegateResponse], ["/cosmos.staking.v1beta1.DVPair", DVPair], ["/cosmos.staking.v1beta1.Delegation", Delegation], - ["/cosmos.staking.v1beta1.QueryValidatorsResponse", QueryValidatorsResponse], - ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", QueryValidatorUnbondingDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", QueryValidatorDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", QueryValidatorDelegationsResponse], ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", QueryValidatorUnbondingDelegationsResponse], - ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], - ["/cosmos.staking.v1beta1.StakeAuthorization_Validators", StakeAuthorization_Validators], - ["/cosmos.staking.v1beta1.DVPairs", DVPairs], ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", QueryDelegatorDelegationsRequest], - ["/cosmos.staking.v1beta1.UnbondingDelegationEntry", UnbondingDelegationEntry], - ["/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", QueryValidatorDelegationsResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], + ["/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", QueryHistoricalInfoResponse], + ["/cosmos.staking.v1beta1.Redelegation", Redelegation], + ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", QueryDelegatorDelegationsResponse], + ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], + ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], + ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], ["/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", QueryUnbondingDelegationRequest], - ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", QueryDelegatorUnbondingDelegationsResponse], ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], - ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], - ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], - ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], + ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], + ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], + ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.staking.v1beta1.UnbondingDelegation", UnbondingDelegation], + ["/cosmos.staking.v1beta1.StakeAuthorization_Validators", StakeAuthorization_Validators], + ["/cosmos.staking.v1beta1.QueryPoolResponse", QueryPoolResponse], + ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], + ["/cosmos.staking.v1beta1.Validator", Validator], + ["/cosmos.staking.v1beta1.CommissionRates", CommissionRates], + ["/cosmos.staking.v1beta1.DVPairs", DVPairs], ["/cosmos.staking.v1beta1.StakeAuthorization", StakeAuthorization], + ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], - ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], - ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], - ["/cosmos.staking.v1beta1.Commission", Commission], - ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], - ["/cosmos.staking.v1beta1.Redelegation", Redelegation], - ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], - ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], - ["/cosmos.staking.v1beta1.QueryPoolResponse", QueryPoolResponse], + ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", QueryDelegatorValidatorResponse], + ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], + ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.RedelegationEntry", RedelegationEntry], + ["/cosmos.staking.v1beta1.QueryValidatorsResponse", QueryValidatorsResponse], ["/cosmos.staking.v1beta1.QueryValidatorsRequest", QueryValidatorsRequest], - ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], + ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], + ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", QueryValidatorUnbondingDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryDelegationResponse", QueryDelegationResponse], + ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], ]; diff --git a/ts-client/cosmos.staking.v1beta1/rest.ts b/ts-client/cosmos.staking.v1beta1/rest.ts index 43419072..f84b2bd1 100644 --- a/ts-client/cosmos.staking.v1beta1/rest.ts +++ b/ts-client/cosmos.staking.v1beta1/rest.ts @@ -9,6 +9,635 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface BlockID { + /** @format byte */ + hash?: string; + part_set_header?: { total?: number; hash?: string }; +} + +export enum BondStatus { + BOND_STATUS_UNSPECIFIED = "BOND_STATUS_UNSPECIFIED", + BOND_STATUS_UNBONDED = "BOND_STATUS_UNBONDED", + BOND_STATUS_UNBONDING = "BOND_STATUS_UNBONDING", + BOND_STATUS_BONDED = "BOND_STATUS_BONDED", +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export interface Commission { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + + /** @format date-time */ + update_time?: string; +} + +export interface CommissionRates { + rate?: string; + max_rate?: string; + max_change_rate?: string; +} + +export interface Consensus { + /** @format uint64 */ + block?: string; + + /** @format uint64 */ + app?: string; +} + +export interface DelegationResponse { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; +} + +export interface Description { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; +} + +export interface Header { + version?: { block?: string; app?: string }; + chain_id?: string; + + /** @format int64 */ + height?: string; + + /** @format date-time */ + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format byte */ + last_commit_hash?: string; + + /** @format byte */ + data_hash?: string; + + /** @format byte */ + validators_hash?: string; + + /** @format byte */ + next_validators_hash?: string; + + /** @format byte */ + consensus_hash?: string; + + /** @format byte */ + app_hash?: string; + + /** @format byte */ + last_results_hash?: string; + + /** @format byte */ + evidence_hash?: string; + + /** @format byte */ + proposer_address?: string; +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface PartSetHeader { + /** @format int64 */ + total?: number; + + /** @format byte */ + hash?: string; +} + +export interface QueryDelegationResponse { + delegation_response?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }; +} + +export interface QueryDelegatorDelegationsResponse { + delegation_responses?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryDelegatorUnbondingDelegationsResponse { + unbonding_responses?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryDelegatorValidatorResponse { + validator?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }; +} + +export interface QueryDelegatorValidatorsResponse { + validators?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryHistoricalInfoResponse { + hist?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + valset?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + }; +} + +export interface QueryParamsResponse { + params?: { + unbonding_time?: string; + max_validators?: number; + max_entries?: number; + historical_entries?: number; + bond_denom?: string; + min_commission_rate?: string; + }; +} + +export interface QueryPoolResponse { + pool?: { not_bonded_tokens?: string; bonded_tokens?: string }; +} + +export interface QueryRedelegationsResponse { + redelegation_responses?: { + redelegation?: { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }; + entries?: { + redelegation_entry?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }; + balance?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryUnbondingDelegationResponse { + unbond?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }; +} + +export interface QueryValidatorDelegationsResponse { + delegation_responses?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryValidatorResponse { + validator?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }; +} + +export interface QueryValidatorUnbondingDelegationsResponse { + unbonding_responses?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface QueryValidatorsResponse { + validators?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + pagination?: { next_key?: string; total?: string }; +} + +export interface Redelegation { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; +} + +export interface RedelegationEntry { + /** @format int64 */ + creation_height?: string; + + /** @format date-time */ + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + + /** @format uint64 */ + unbonding_id?: string; + + /** @format int64 */ + unbonding_on_hold_ref_count?: string; +} + +export interface RedelegationEntryResponse { + redelegation_entry?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }; + balance?: string; +} + +export interface RedelegationResponse { + redelegation?: { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }; + entries?: { + redelegation_entry?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }; + balance?: string; + }[]; +} + +export interface UnbondingDelegationEntry { + /** @format int64 */ + creation_height?: string; + + /** @format date-time */ + completion_time?: string; + initial_balance?: string; + balance?: string; + + /** @format uint64 */ + unbonding_id?: string; + + /** @format int64 */ + unbonding_on_hold_ref_count?: string; +} + +export interface V1Beta1Delegation { + delegator_address?: string; + validator_address?: string; + shares?: string; +} + +export interface V1Beta1HistoricalInfo { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + valset?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; +} + +export interface V1Beta1Params { + unbonding_time?: string; + + /** @format int64 */ + max_validators?: number; + + /** @format int64 */ + max_entries?: number; + + /** @format int64 */ + historical_entries?: number; + bond_denom?: string; + min_commission_rate?: string; +} + +export interface V1Beta1Pool { + not_bonded_tokens?: string; + bonded_tokens?: string; +} + +export interface V1Beta1UnbondingDelegation { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; +} + +export interface V1Beta1Validator { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { moniker?: string; identity?: string; website?: string; security_contact?: string; details?: string }; + + /** @format int64 */ + unbonding_height?: string; + + /** @format date-time */ + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + + /** @format int64 */ + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; +} + +export interface MsgBeginRedelegateResponse { + /** @format date-time */ + completion_time?: string; +} + +export type MsgCancelUnbondingDelegationResponse = object; + +export type MsgCreateValidatorResponse = object; + +export type MsgDelegateResponse = object; + +export type MsgEditValidatorResponse = object; + +export interface MsgUndelegateResponse { + /** @format date-time */ + completion_time?: string; + amount?: { denom?: string; amount?: string }; +} + +export type MsgUpdateParamsResponse = object; + +export interface Params { + unbonding_time?: string; + + /** @format int64 */ + max_validators?: number; + + /** @format int64 */ + max_entries?: number; + + /** @format int64 */ + historical_entries?: number; + bond_denom?: string; + min_commission_rate?: string; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +761,565 @@ export class HttpClient { /** * @title HTTP API Console cosmos.staking.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryDelegatorDelegations + * @request GET:/cosmos/staking/v1beta1/delegations/{delegator_addr} + */ + queryDelegatorDelegations = ( + delegatorAddr: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + delegation_responses?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/delegations/${delegatorAddr}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryRedelegations + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations + */ + queryRedelegations = ( + delegatorAddr: string, + query?: { + src_validator_addr?: string; + dst_validator_addr?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + redelegation_responses?: { + redelegation?: { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }; + entries?: { + redelegation_entry?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + shares_dst?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }; + balance?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/redelegations`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegatorUnbondingDelegations + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations + */ + queryDelegatorUnbondingDelegations = ( + delegatorAddr: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + unbonding_responses?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/unbonding_delegations`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegatorValidators + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators + */ + queryDelegatorValidators = ( + delegatorAddr: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + validators?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegatorValidator + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr} + */ + queryDelegatorValidator = (delegatorAddr: string, validatorAddr: string, params: RequestParams = {}) => + this.request< + { + validator?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators/${validatorAddr}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryHistoricalInfo + * @request GET:/cosmos/staking/v1beta1/historical_info/{height} + */ + queryHistoricalInfo = (height: string, params: RequestParams = {}) => + this.request< + { + hist?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + valset?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: + | "BOND_STATUS_UNSPECIFIED" + | "BOND_STATUS_UNBONDED" + | "BOND_STATUS_UNBONDING" + | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/historical_info/${height}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryParams + * @request GET:/cosmos/staking/v1beta1/params + */ + queryParams = (params: RequestParams = {}) => + this.request< + { + params?: { + unbonding_time?: string; + max_validators?: number; + max_entries?: number; + historical_entries?: number; + bond_denom?: string; + min_commission_rate?: string; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/params`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryPool + * @request GET:/cosmos/staking/v1beta1/pool + */ + queryPool = (params: RequestParams = {}) => + this.request< + { pool?: { not_bonded_tokens?: string; bonded_tokens?: string } }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/pool`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidators + * @request GET:/cosmos/staking/v1beta1/validators + */ + queryValidators = ( + query?: { + status?: string; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + validators?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidator + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr} + */ + queryValidator = (validatorAddr: string, params: RequestParams = {}) => + this.request< + { + validator?: { + operator_address?: string; + consensus_pubkey?: { "@type"?: string }; + jailed?: boolean; + status?: "BOND_STATUS_UNSPECIFIED" | "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED"; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + unbonding_height?: string; + unbonding_time?: string; + commission?: { + commission_rates?: { rate?: string; max_rate?: string; max_change_rate?: string }; + update_time?: string; + }; + min_self_delegation?: string; + unbonding_on_hold_ref_count?: string; + unbonding_ids?: string[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorDelegations + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations + */ + queryValidatorDelegations = ( + validatorAddr: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + delegation_responses?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryDelegation + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr} + */ + queryDelegation = (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + delegation_response?: { + delegation?: { delegator_address?: string; validator_address?: string; shares?: string }; + balance?: { denom?: string; amount?: string }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryUnbondingDelegation + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation + */ + queryUnbondingDelegation = (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + unbond?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}/unbonding_delegation`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryValidatorUnbondingDelegations + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations + */ + queryValidatorUnbondingDelegations = ( + validatorAddr: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request< + { + unbonding_responses?: { + delegator_address?: string; + validator_address?: string; + entries?: { + creation_height?: string; + completion_time?: string; + initial_balance?: string; + balance?: string; + unbonding_id?: string; + unbonding_on_hold_ref_count?: string; + }[]; + }[]; + pagination?: { next_key?: string; total?: string }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/unbonding_delegations`, + method: "GET", + query: query, + ...params, + }); +} diff --git a/ts-client/cosmos.tx.v1beta1/api.swagger.yml b/ts-client/cosmos.tx.v1beta1/api.swagger.yml index c239d8db..ca0ddc7b 100644 --- a/ts-client/cosmos.tx.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.tx.v1beta1/api.swagger.yml @@ -3,3 +3,3846 @@ info: title: HTTP API Console cosmos.tx.v1beta1 name: '' description: '' +paths: + /cosmos/tx/v1beta1/decode: + post: + operationId: Service_TxDecode + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/TxDecodeResponse' + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + tags: + - Service + /cosmos/tx/v1beta1/decode/amino: + post: + operationId: Service_TxDecodeAmino + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amino_json: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + amino_binary: + type: string + format: byte + tags: + - Service + /cosmos/tx/v1beta1/encode: + post: + operationId: Service_TxEncode + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + $ref: '#/definitions/TxEncodeRequest' + tags: + - Service + /cosmos/tx/v1beta1/encode/amino: + post: + operationId: Service_TxEncodeAmino + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amino_binary: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + amino_json: + type: string + tags: + - Service + /cosmos/tx/v1beta1/simulate: + post: + operationId: Service_Simulate + responses: + '200': + description: A successful response. + schema: + type: object + properties: + gas_info: + type: object + properties: + gas_wanted: + type: string + format: uint64 + gas_used: + type: string + format: uint64 + result: + type: object + properties: + data: + type: string + format: byte + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + $ref: '#/definitions/SimulateRequest' + tags: + - Service + /cosmos/tx/v1beta1/txs: + get: + operationId: Service_GetTxsEvent + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/GetTxsEventResponse' + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: events + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + - name: order_by + description: |2- + - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults + to ASC in this case. + - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + in: query + required: false + type: string + enum: + - ORDER_BY_UNSPECIFIED + - ORDER_BY_ASC + - ORDER_BY_DESC + default: ORDER_BY_UNSPECIFIED + - name: page + in: query + required: false + type: string + format: uint64 + - name: limit + in: query + required: false + type: string + format: uint64 + - name: query + in: query + required: false + type: string + tags: + - Service + post: + operationId: Service_BroadcastTx + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tx_response: + type: object + properties: + height: + type: string + format: int64 + txhash: + type: string + codespace: + type: string + code: + type: integer + format: int64 + data: + type: string + raw_log: + type: string + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + info: + type: string + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + tx: + type: object + properties: + '@type': + type: string + additionalProperties: {} + timestamp: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + mode: + type: string + enum: + - BROADCAST_MODE_UNSPECIFIED + - BROADCAST_MODE_BLOCK + - BROADCAST_MODE_SYNC + - BROADCAST_MODE_ASYNC + default: BROADCAST_MODE_UNSPECIFIED + tags: + - Service + /cosmos/tx/v1beta1/txs/block/{height}: + get: + operationId: Service_GetBlockWithTxs + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/GetBlockWithTxsResponse' + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: height + description: height is the height of the block to query. + in: path + required: true + type: string + format: int64 + - name: pagination.key + in: query + required: false + type: string + format: byte + - name: pagination.offset + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + in: query + required: false + type: boolean + - name: pagination.reverse + in: query + required: false + type: boolean + tags: + - Service + /cosmos/tx/v1beta1/txs/{hash}: + get: + operationId: Service_GetTx + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/GetTxResponse' + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: hash + description: hash is the tx hash to query, encoded as a hex string. + in: path + required: true + type: string + tags: + - Service +definitions: + ABCIMessageLog: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Attribute: + type: object + properties: + key: + type: string + value: + type: string + AuthInfo: + type: object + properties: + signer_infos: + type: array + items: + type: object + $ref: '#/definitions/SignerInfo' + fee: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + gas_limit: + type: string + format: uint64 + payer: + type: string + granter: + type: string + tip: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + tipper: + type: string + Block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + BlockID: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + BlockIDFlag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + BroadcastMode: + type: string + enum: + - BROADCAST_MODE_UNSPECIFIED + - BROADCAST_MODE_BLOCK + - BROADCAST_MODE_SYNC + - BROADCAST_MODE_ASYNC + default: BROADCAST_MODE_UNSPECIFIED + BroadcastTxRequest: + type: object + properties: + tx_bytes: + type: string + format: byte + mode: + type: string + enum: + - BROADCAST_MODE_UNSPECIFIED + - BROADCAST_MODE_BLOCK + - BROADCAST_MODE_SYNC + - BROADCAST_MODE_ASYNC + default: BROADCAST_MODE_UNSPECIFIED + BroadcastTxResponse: + type: object + properties: + tx_response: + type: object + properties: + height: + type: string + format: int64 + txhash: + type: string + codespace: + type: string + code: + type: integer + format: int64 + data: + type: string + raw_log: + type: string + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + info: + type: string + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + tx: + type: object + properties: + '@type': + type: string + additionalProperties: {} + timestamp: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + Commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + CommitSig: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + CompactBitArray: + type: object + properties: + extra_bits_stored: + type: integer + format: int64 + elems: + type: string + format: byte + Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + DuplicateVoteEvidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + Event: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + EventAttribute: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + Evidence: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + EvidenceList: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + Fee: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + gas_limit: + type: string + format: uint64 + payer: + type: string + granter: + type: string + GasInfo: + type: object + properties: + gas_wanted: + type: string + format: uint64 + gas_used: + type: string + format: uint64 + GetBlockWithTxsResponse: + type: object + properties: + txs: + type: array + items: + $ref: '#/definitions/Tx' + type: object + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + block: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + GetTxResponse: + type: object + properties: + tx: + $ref: '#/definitions/Tx' + tx_response: + type: object + properties: + height: + type: string + format: int64 + txhash: + type: string + codespace: + type: string + code: + type: integer + format: int64 + data: + type: string + raw_log: + type: string + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + info: + type: string + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + tx: + type: object + properties: + '@type': + type: string + additionalProperties: {} + timestamp: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + GetTxsEventResponse: + type: object + properties: + txs: + type: array + items: + $ref: '#/definitions/Tx' + type: object + tx_responses: + type: array + items: + type: object + properties: + height: + type: string + format: int64 + txhash: + type: string + codespace: + type: string + code: + type: integer + format: int64 + data: + type: string + raw_log: + type: string + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + info: + type: string + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + tx: + type: object + properties: + '@type': + type: string + additionalProperties: {} + timestamp: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + total: + type: string + format: uint64 + Header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + LightBlock: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + LightClientAttackEvidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + ModeInfo: + type: object + properties: + single: + type: object + properties: + mode: + type: string + enum: + - SIGN_MODE_UNSPECIFIED + - SIGN_MODE_DIRECT + - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX + - SIGN_MODE_LEGACY_AMINO_JSON + - SIGN_MODE_EIP_191 + default: SIGN_MODE_UNSPECIFIED + multi: + $ref: '#/definitions/ModeInfo.Multi' + ModeInfo.Multi: + type: object + properties: + bitarray: + type: object + properties: + extra_bits_stored: + type: integer + format: int64 + elems: + type: string + format: byte + mode_infos: + type: array + items: + $ref: '#/definitions/ModeInfo' + type: object + ModeInfo.Single: + type: object + properties: + mode: + type: string + enum: + - SIGN_MODE_UNSPECIFIED + - SIGN_MODE_DIRECT + - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX + - SIGN_MODE_LEGACY_AMINO_JSON + - SIGN_MODE_EIP_191 + default: SIGN_MODE_UNSPECIFIED + OrderBy: + type: string + enum: + - ORDER_BY_UNSPECIFIED + - ORDER_BY_ASC + - ORDER_BY_DESC + default: ORDER_BY_UNSPECIFIED + PageRequest: + type: object + properties: + key: + type: string + format: byte + offset: + type: string + format: uint64 + limit: + type: string + format: uint64 + count_total: + type: boolean + reverse: + type: boolean + PageResponse: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + PublicKey: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + SignMode: + type: string + enum: + - SIGN_MODE_UNSPECIFIED + - SIGN_MODE_DIRECT + - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX + - SIGN_MODE_LEGACY_AMINO_JSON + - SIGN_MODE_EIP_191 + default: SIGN_MODE_UNSPECIFIED + SignedHeader: + type: object + properties: + header: + type: object + properties: + version: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + last_commit_hash: + type: string + format: byte + data_hash: + type: string + format: byte + validators_hash: + type: string + format: byte + next_validators_hash: + type: string + format: byte + consensus_hash: + type: string + format: byte + app_hash: + type: string + format: byte + last_results_hash: + type: string + format: byte + evidence_hash: + type: string + format: byte + proposer_address: + type: string + format: byte + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + SignedMsgType: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + SignerInfo: + type: object + properties: + public_key: + type: object + properties: + '@type': + type: string + additionalProperties: {} + mode_info: + $ref: '#/definitions/ModeInfo' + sequence: + type: string + format: uint64 + SimulateRequest: + type: object + properties: + tx: + $ref: '#/definitions/Tx' + tx_bytes: + type: string + format: byte + SimulateResponse: + type: object + properties: + gas_info: + type: object + properties: + gas_wanted: + type: string + format: uint64 + gas_used: + type: string + format: uint64 + result: + type: object + properties: + data: + type: string + format: byte + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + StringEvent: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + Tip: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + tipper: + type: string + Tx: + type: object + properties: + body: + type: object + properties: + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + memo: + type: string + timeout_height: + type: string + format: uint64 + extension_options: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + non_critical_extension_options: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + auth_info: + $ref: '#/definitions/AuthInfo' + signatures: + type: array + items: + type: string + format: byte + TxBody: + type: object + properties: + messages: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + memo: + type: string + timeout_height: + type: string + format: uint64 + extension_options: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + non_critical_extension_options: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + TxDecodeAminoRequest: + type: object + properties: + amino_binary: + type: string + format: byte + TxDecodeAminoResponse: + type: object + properties: + amino_json: + type: string + TxDecodeRequest: + type: object + properties: + tx_bytes: + type: string + format: byte + TxDecodeResponse: + type: object + properties: + tx: + $ref: '#/definitions/Tx' + TxEncodeAminoRequest: + type: object + properties: + amino_json: + type: string + TxEncodeAminoResponse: + type: object + properties: + amino_binary: + type: string + format: byte + TxEncodeRequest: + type: object + properties: + tx: + $ref: '#/definitions/Tx' + TxEncodeResponse: + type: object + properties: + tx_bytes: + type: string + format: byte + TxResponse: + type: object + properties: + height: + type: string + format: int64 + txhash: + type: string + codespace: + type: string + code: + type: integer + format: int64 + data: + type: string + raw_log: + type: string + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + info: + type: string + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + tx: + type: object + properties: + '@type': + type: string + additionalProperties: {} + timestamp: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + ValidatorSet: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + Vote: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + extension: + type: string + format: byte + extension_signature: + type: string + format: byte + types.Data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + types.Validator: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + v1beta1.Result: + type: object + properties: + data: + type: string + format: byte + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} diff --git a/ts-client/cosmos.tx.v1beta1/module.ts b/ts-client/cosmos.tx.v1beta1/module.ts index 4b6511e8..c4871b7d 100755 --- a/ts-client/cosmos.tx.v1beta1/module.ts +++ b/ts-client/cosmos.tx.v1beta1/module.ts @@ -6,73 +6,79 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; -import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; -export { GetTxResponse, TxEncodeAminoResponse, AuxSignerData, SimulateResponse, TxEncodeResponse, TxDecodeAminoResponse, TxBody, ModeInfo_Multi, Tip, SignDocDirectAux, GetBlockWithTxsRequest, TxDecodeRequest, TxEncodeRequest, AuthInfo, ModeInfo_Single, GetTxRequest, TxDecodeResponse, ModeInfo, GetBlockWithTxsResponse, BroadcastTxRequest, TxEncodeAminoRequest, Tx, BroadcastTxResponse, SimulateRequest, TxDecodeAminoRequest, SignDoc, Fee, GetTxsEventResponse, TxRaw, SignerInfo, GetTxsEventRequest }; +export { SimulateRequest, TxEncodeAminoRequest, ModeInfo_Single, GetTxsEventResponse, BroadcastTxRequest, TxDecodeRequest, TxEncodeRequest, TxBody, GetTxRequest, GetTxResponse, Tip, TxEncodeAminoResponse, Tx, SignDoc, ModeInfo, ModeInfo_Multi, SimulateResponse, BroadcastTxResponse, TxEncodeResponse, GetBlockWithTxsResponse, AuthInfo, TxDecodeAminoRequest, GetTxsEventRequest, GetBlockWithTxsRequest, TxRaw, Fee, TxDecodeAminoResponse, SignDocDirectAux, SignerInfo, AuxSignerData, TxDecodeResponse }; -type sendGetTxResponseParams = { - value: GetTxResponse, +type sendSimulateRequestParams = { + value: SimulateRequest, fee?: StdFee, memo?: string }; -type sendTxEncodeAminoResponseParams = { - value: TxEncodeAminoResponse, +type sendTxEncodeAminoRequestParams = { + value: TxEncodeAminoRequest, fee?: StdFee, memo?: string }; -type sendAuxSignerDataParams = { - value: AuxSignerData, +type sendModeInfo_SingleParams = { + value: ModeInfo_Single, fee?: StdFee, memo?: string }; -type sendSimulateResponseParams = { - value: SimulateResponse, +type sendGetTxsEventResponseParams = { + value: GetTxsEventResponse, fee?: StdFee, memo?: string }; -type sendTxEncodeResponseParams = { - value: TxEncodeResponse, +type sendBroadcastTxRequestParams = { + value: BroadcastTxRequest, fee?: StdFee, memo?: string }; -type sendTxDecodeAminoResponseParams = { - value: TxDecodeAminoResponse, +type sendTxDecodeRequestParams = { + value: TxDecodeRequest, + fee?: StdFee, + memo?: string +}; + +type sendTxEncodeRequestParams = { + value: TxEncodeRequest, fee?: StdFee, memo?: string }; @@ -83,68 +89,68 @@ type sendTxBodyParams = { memo?: string }; -type sendModeInfo_MultiParams = { - value: ModeInfo_Multi, +type sendGetTxRequestParams = { + value: GetTxRequest, fee?: StdFee, memo?: string }; -type sendTipParams = { - value: Tip, +type sendGetTxResponseParams = { + value: GetTxResponse, fee?: StdFee, memo?: string }; -type sendSignDocDirectAuxParams = { - value: SignDocDirectAux, +type sendTipParams = { + value: Tip, fee?: StdFee, memo?: string }; -type sendGetBlockWithTxsRequestParams = { - value: GetBlockWithTxsRequest, +type sendTxEncodeAminoResponseParams = { + value: TxEncodeAminoResponse, fee?: StdFee, memo?: string }; -type sendTxDecodeRequestParams = { - value: TxDecodeRequest, +type sendTxParams = { + value: Tx, fee?: StdFee, memo?: string }; -type sendTxEncodeRequestParams = { - value: TxEncodeRequest, +type sendSignDocParams = { + value: SignDoc, fee?: StdFee, memo?: string }; -type sendAuthInfoParams = { - value: AuthInfo, +type sendModeInfoParams = { + value: ModeInfo, fee?: StdFee, memo?: string }; -type sendModeInfo_SingleParams = { - value: ModeInfo_Single, +type sendModeInfo_MultiParams = { + value: ModeInfo_Multi, fee?: StdFee, memo?: string }; -type sendGetTxRequestParams = { - value: GetTxRequest, +type sendSimulateResponseParams = { + value: SimulateResponse, fee?: StdFee, memo?: string }; -type sendTxDecodeResponseParams = { - value: TxDecodeResponse, +type sendBroadcastTxResponseParams = { + value: BroadcastTxResponse, fee?: StdFee, memo?: string }; -type sendModeInfoParams = { - value: ModeInfo, +type sendTxEncodeResponseParams = { + value: TxEncodeResponse, fee?: StdFee, memo?: string }; @@ -155,201 +161,195 @@ type sendGetBlockWithTxsResponseParams = { memo?: string }; -type sendBroadcastTxRequestParams = { - value: BroadcastTxRequest, +type sendAuthInfoParams = { + value: AuthInfo, fee?: StdFee, memo?: string }; -type sendTxEncodeAminoRequestParams = { - value: TxEncodeAminoRequest, +type sendTxDecodeAminoRequestParams = { + value: TxDecodeAminoRequest, fee?: StdFee, memo?: string }; -type sendTxParams = { - value: Tx, +type sendGetTxsEventRequestParams = { + value: GetTxsEventRequest, fee?: StdFee, memo?: string }; -type sendBroadcastTxResponseParams = { - value: BroadcastTxResponse, +type sendGetBlockWithTxsRequestParams = { + value: GetBlockWithTxsRequest, fee?: StdFee, memo?: string }; -type sendSimulateRequestParams = { - value: SimulateRequest, +type sendTxRawParams = { + value: TxRaw, fee?: StdFee, memo?: string }; -type sendTxDecodeAminoRequestParams = { - value: TxDecodeAminoRequest, +type sendFeeParams = { + value: Fee, fee?: StdFee, memo?: string }; -type sendSignDocParams = { - value: SignDoc, +type sendTxDecodeAminoResponseParams = { + value: TxDecodeAminoResponse, fee?: StdFee, memo?: string }; -type sendFeeParams = { - value: Fee, +type sendSignDocDirectAuxParams = { + value: SignDocDirectAux, fee?: StdFee, memo?: string }; -type sendGetTxsEventResponseParams = { - value: GetTxsEventResponse, +type sendSignerInfoParams = { + value: SignerInfo, fee?: StdFee, memo?: string }; -type sendTxRawParams = { - value: TxRaw, +type sendAuxSignerDataParams = { + value: AuxSignerData, fee?: StdFee, memo?: string }; -type sendSignerInfoParams = { - value: SignerInfo, +type sendTxDecodeResponseParams = { + value: TxDecodeResponse, fee?: StdFee, memo?: string }; -type sendGetTxsEventRequestParams = { - value: GetTxsEventRequest, - fee?: StdFee, - memo?: string -}; +type simulateRequestParams = { + value: SimulateRequest, +}; -type getTxResponseParams = { - value: GetTxResponse, +type txEncodeAminoRequestParams = { + value: TxEncodeAminoRequest, }; -type txEncodeAminoResponseParams = { - value: TxEncodeAminoResponse, +type modeInfoSingleParams = { + value: ModeInfo_Single, }; -type auxSignerDataParams = { - value: AuxSignerData, +type getTxsEventResponseParams = { + value: GetTxsEventResponse, }; -type simulateResponseParams = { - value: SimulateResponse, +type broadcastTxRequestParams = { + value: BroadcastTxRequest, }; -type txEncodeResponseParams = { - value: TxEncodeResponse, +type txDecodeRequestParams = { + value: TxDecodeRequest, }; -type txDecodeAminoResponseParams = { - value: TxDecodeAminoResponse, +type txEncodeRequestParams = { + value: TxEncodeRequest, }; type txBodyParams = { value: TxBody, }; -type modeInfoMultiParams = { - value: ModeInfo_Multi, +type getTxRequestParams = { + value: GetTxRequest, }; -type tipParams = { - value: Tip, +type getTxResponseParams = { + value: GetTxResponse, }; -type signDocDirectAuxParams = { - value: SignDocDirectAux, +type tipParams = { + value: Tip, }; -type getBlockWithTxsRequestParams = { - value: GetBlockWithTxsRequest, +type txEncodeAminoResponseParams = { + value: TxEncodeAminoResponse, }; -type txDecodeRequestParams = { - value: TxDecodeRequest, +type txParams = { + value: Tx, }; -type txEncodeRequestParams = { - value: TxEncodeRequest, +type signDocParams = { + value: SignDoc, }; -type authInfoParams = { - value: AuthInfo, +type modeInfoParams = { + value: ModeInfo, }; -type modeInfoSingleParams = { - value: ModeInfo_Single, +type modeInfoMultiParams = { + value: ModeInfo_Multi, }; -type getTxRequestParams = { - value: GetTxRequest, +type simulateResponseParams = { + value: SimulateResponse, }; -type txDecodeResponseParams = { - value: TxDecodeResponse, +type broadcastTxResponseParams = { + value: BroadcastTxResponse, }; -type modeInfoParams = { - value: ModeInfo, +type txEncodeResponseParams = { + value: TxEncodeResponse, }; type getBlockWithTxsResponseParams = { value: GetBlockWithTxsResponse, }; -type broadcastTxRequestParams = { - value: BroadcastTxRequest, -}; - -type txEncodeAminoRequestParams = { - value: TxEncodeAminoRequest, -}; - -type txParams = { - value: Tx, +type authInfoParams = { + value: AuthInfo, }; -type broadcastTxResponseParams = { - value: BroadcastTxResponse, +type txDecodeAminoRequestParams = { + value: TxDecodeAminoRequest, }; -type simulateRequestParams = { - value: SimulateRequest, +type getTxsEventRequestParams = { + value: GetTxsEventRequest, }; -type txDecodeAminoRequestParams = { - value: TxDecodeAminoRequest, +type getBlockWithTxsRequestParams = { + value: GetBlockWithTxsRequest, }; -type signDocParams = { - value: SignDoc, +type txRawParams = { + value: TxRaw, }; type feeParams = { value: Fee, }; -type getTxsEventResponseParams = { - value: GetTxsEventResponse, +type txDecodeAminoResponseParams = { + value: TxDecodeAminoResponse, }; -type txRawParams = { - value: TxRaw, +type signDocDirectAuxParams = { + value: SignDocDirectAux, }; type signerInfoParams = { value: SignerInfo, }; -type getTxsEventRequestParams = { - value: GetTxsEventRequest, +type auxSignerDataParams = { + value: AuxSignerData, +}; + +type txDecodeResponseParams = { + value: TxDecodeResponse, }; @@ -382,367 +382,353 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendGetTxResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getTxResponse({ value: GetTxResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendGetTxResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendTxEncodeAminoResponse({ value, fee, memo }: sendTxEncodeAminoResponseParams): Promise { + async sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSimulateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txEncodeAminoResponse({ value: TxEncodeAminoResponse.fromPartial(value) }) + let msg = this.simulateRequest({ value: SimulateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxEncodeAminoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSimulateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAuxSignerData({ value, fee, memo }: sendAuxSignerDataParams): Promise { + async sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAuxSignerData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxEncodeAminoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.auxSignerData({ value: AuxSignerData.fromPartial(value) }) + let msg = this.txEncodeAminoRequest({ value: TxEncodeAminoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAuxSignerData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeAminoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise { + async sendModeInfo_Single({ value, fee, memo }: sendModeInfo_SingleParams): Promise { if (!signer) { - throw new Error('TxClient:sendSimulateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModeInfo_Single: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.simulateResponse({ value: SimulateResponse.fromPartial(value) }) + let msg = this.modeInfoSingle({ value: ModeInfo_Single.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSimulateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo_Single: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise { + async sendGetTxsEventResponse({ value, fee, memo }: sendGetTxsEventResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetTxsEventResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txEncodeResponse({ value: TxEncodeResponse.fromPartial(value) }) + let msg = this.getTxsEventResponse({ value: GetTxsEventResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxEncodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxsEventResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeAminoResponse({ value, fee, memo }: sendTxDecodeAminoResponseParams): Promise { + async sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBroadcastTxRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txDecodeAminoResponse({ value: TxDecodeAminoResponse.fromPartial(value) }) + let msg = this.broadcastTxRequest({ value: BroadcastTxRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxDecodeAminoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBroadcastTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTxBody({ value, fee, memo }: sendTxBodyParams): Promise { + async sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxBody: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxDecodeRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txBody({ value: TxBody.fromPartial(value) }) + let msg = this.txDecodeRequest({ value: TxDecodeRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxBody: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise { + async sendTxEncodeRequest({ value, fee, memo }: sendTxEncodeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo_Multi: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxEncodeRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.modeInfoMulti({ value: ModeInfo_Multi.fromPartial(value) }) + let msg = this.txEncodeRequest({ value: TxEncodeRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModeInfo_Multi: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTip({ value, fee, memo }: sendTipParams): Promise { + async sendTxBody({ value, fee, memo }: sendTxBodyParams): Promise { if (!signer) { - throw new Error('TxClient:sendTip: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxBody: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tip({ value: Tip.fromPartial(value) }) + let msg = this.txBody({ value: TxBody.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTip: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxBody: Could not broadcast Tx: '+ e.message) } }, - async sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise { + async sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignDocDirectAux: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetTxRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signDocDirectAux({ value: SignDocDirectAux.fromPartial(value) }) + let msg = this.getTxRequest({ value: GetTxRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignDocDirectAux: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise { + async sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockWithTxsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getBlockWithTxsRequest({ value: GetBlockWithTxsRequest.fromPartial(value) }) + let msg = this.getTxResponse({ value: GetTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetBlockWithTxsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise { + async sendTip({ value, fee, memo }: sendTipParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTip: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txDecodeRequest({ value: TxDecodeRequest.fromPartial(value) }) + let msg = this.tip({ value: Tip.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxDecodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTip: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeRequest({ value, fee, memo }: sendTxEncodeRequestParams): Promise { + async sendTxEncodeAminoResponse({ value, fee, memo }: sendTxEncodeAminoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxEncodeAminoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txEncodeRequest({ value: TxEncodeRequest.fromPartial(value) }) + let msg = this.txEncodeAminoResponse({ value: TxEncodeAminoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxEncodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeAminoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise { + async sendTx({ value, fee, memo }: sendTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendAuthInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.authInfo({ value: AuthInfo.fromPartial(value) }) + let msg = this.tx({ value: Tx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAuthInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTx: Could not broadcast Tx: '+ e.message) } }, - async sendModeInfo_Single({ value, fee, memo }: sendModeInfo_SingleParams): Promise { + async sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo_Single: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignDoc: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.modeInfoSingle({ value: ModeInfo_Single.fromPartial(value) }) + let msg = this.signDoc({ value: SignDoc.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModeInfo_Single: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignDoc: Could not broadcast Tx: '+ e.message) } }, - async sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise { + async sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModeInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getTxRequest({ value: GetTxRequest.fromPartial(value) }) + let msg = this.modeInfo({ value: ModeInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise { + async sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModeInfo_Multi: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txDecodeResponse({ value: TxDecodeResponse.fromPartial(value) }) + let msg = this.modeInfoMulti({ value: ModeInfo_Multi.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxDecodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo_Multi: Could not broadcast Tx: '+ e.message) } }, - async sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise { + async sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSimulateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.modeInfo({ value: ModeInfo.fromPartial(value) }) + let msg = this.simulateResponse({ value: SimulateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModeInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSimulateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise { + async sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockWithTxsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBroadcastTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getBlockWithTxsResponse({ value: GetBlockWithTxsResponse.fromPartial(value) }) + let msg = this.broadcastTxResponse({ value: BroadcastTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetBlockWithTxsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBroadcastTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise { + async sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBroadcastTxRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxEncodeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.broadcastTxRequest({ value: BroadcastTxRequest.fromPartial(value) }) + let msg = this.txEncodeResponse({ value: TxEncodeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBroadcastTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise { + async sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetBlockWithTxsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txEncodeAminoRequest({ value: TxEncodeAminoRequest.fromPartial(value) }) + let msg = this.getBlockWithTxsResponse({ value: GetBlockWithTxsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxEncodeAminoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockWithTxsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTx({ value, fee, memo }: sendTxParams): Promise { + async sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAuthInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.tx({ value: Tx.fromPartial(value) }) + let msg = this.authInfo({ value: AuthInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAuthInfo: Could not broadcast Tx: '+ e.message) } }, - async sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise { + async sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendBroadcastTxResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxDecodeAminoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.broadcastTxResponse({ value: BroadcastTxResponse.fromPartial(value) }) + let msg = this.txDecodeAminoRequest({ value: TxDecodeAminoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBroadcastTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeAminoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise { + async sendGetTxsEventRequest({ value, fee, memo }: sendGetTxsEventRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSimulateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetTxsEventRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.simulateRequest({ value: SimulateRequest.fromPartial(value) }) + let msg = this.getTxsEventRequest({ value: GetTxsEventRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSimulateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxsEventRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise { + async sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetBlockWithTxsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txDecodeAminoRequest({ value: TxDecodeAminoRequest.fromPartial(value) }) + let msg = this.getBlockWithTxsRequest({ value: GetBlockWithTxsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxDecodeAminoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockWithTxsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise { + async sendTxRaw({ value, fee, memo }: sendTxRawParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignDoc: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxRaw: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signDoc({ value: SignDoc.fromPartial(value) }) + let msg = this.txRaw({ value: TxRaw.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignDoc: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxRaw: Could not broadcast Tx: '+ e.message) } }, @@ -760,31 +746,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGetTxsEventResponse({ value, fee, memo }: sendGetTxsEventResponseParams): Promise { + async sendTxDecodeAminoResponse({ value, fee, memo }: sendTxDecodeAminoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxsEventResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTxDecodeAminoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getTxsEventResponse({ value: GetTxsEventResponse.fromPartial(value) }) + let msg = this.txDecodeAminoResponse({ value: TxDecodeAminoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetTxsEventResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeAminoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxRaw({ value, fee, memo }: sendTxRawParams): Promise { + async sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxRaw: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignDocDirectAux: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.txRaw({ value: TxRaw.fromPartial(value) }) + let msg = this.signDocDirectAux({ value: SignDocDirectAux.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTxRaw: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignDocDirectAux: Could not broadcast Tx: '+ e.message) } }, @@ -802,226 +788,232 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGetTxsEventRequest({ value, fee, memo }: sendGetTxsEventRequestParams): Promise { + async sendAuxSignerData({ value, fee, memo }: sendAuxSignerDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxsEventRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAuxSignerData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getTxsEventRequest({ value: GetTxsEventRequest.fromPartial(value) }) + let msg = this.auxSignerData({ value: AuxSignerData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetTxsEventRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAuxSignerData: Could not broadcast Tx: '+ e.message) } }, - - getTxResponse({ value }: getTxResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial( value ) } + async sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendTxDecodeResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.txDecodeResponse({ value: TxDecodeResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendTxDecodeResponse: Could not broadcast Tx: '+ e.message) } }, - txEncodeAminoResponse({ value }: txEncodeAminoResponseParams): EncodeObject { + + simulateRequest({ value }: simulateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message) } }, - auxSignerData({ value }: auxSignerDataParams): EncodeObject { + txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", value: AuxSignerData.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AuxSignerData: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeAminoRequest: Could not create message: ' + e.message) } }, - simulateResponse({ value }: simulateResponseParams): EncodeObject { + modeInfoSingle({ value }: modeInfoSingleParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message) } }, - txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject { + getTxsEventResponse({ value }: getTxsEventResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", value: GetTxsEventResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxsEventResponse: Could not create message: ' + e.message) } }, - txDecodeAminoResponse({ value }: txDecodeAminoResponseParams): EncodeObject { + broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse", value: TxDecodeAminoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeAminoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message) } }, - txBody({ value }: txBodyParams): EncodeObject { + txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxBody: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message) } }, - modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject { + txEncodeRequest({ value }: txEncodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message) } }, - tip({ value }: tipParams): EncodeObject { + txBody({ value }: txBodyParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Tip: Could not create message: ' + e.message) + throw new Error('TxClient:TxBody: Could not create message: ' + e.message) } }, - signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject { + getTxRequest({ value }: getTxRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message) } }, - getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject { + getTxResponse({ value }: getTxResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", value: GetBlockWithTxsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockWithTxsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message) } }, - txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject { + tip({ value }: tipParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Tip: Could not create message: ' + e.message) } }, - txEncodeRequest({ value }: txEncodeRequestParams): EncodeObject { + txEncodeAminoResponse({ value }: txEncodeAminoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message) } }, - authInfo({ value }: authInfoParams): EncodeObject { + tx({ value }: txParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message) + throw new Error('TxClient:Tx: Could not create message: ' + e.message) } }, - modeInfoSingle({ value }: modeInfoSingleParams): EncodeObject { + signDoc({ value }: signDocParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message) + throw new Error('TxClient:SignDoc: Could not create message: ' + e.message) } }, - getTxRequest({ value }: getTxRequestParams): EncodeObject { + modeInfo({ value }: modeInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message) } }, - txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject { + modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message) } }, - modeInfo({ value }: modeInfoParams): EncodeObject { + simulateResponse({ value }: simulateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message) + throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message) } }, - getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject { + broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message) } }, - broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject { + txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message) } }, - txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject { + getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeAminoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message) } }, - tx({ value }: txParams): EncodeObject { + authInfo({ value }: authInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Tx: Could not create message: ' + e.message) + throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message) } }, - broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject { + txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message) } }, - simulateRequest({ value }: simulateRequestParams): EncodeObject { + getTxsEventRequest({ value }: getTxsEventRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message) } }, - txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject { + getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", value: GetBlockWithTxsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockWithTxsRequest: Could not create message: ' + e.message) } }, - signDoc({ value }: signDocParams): EncodeObject { + txRaw({ value }: txRawParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignDoc: Could not create message: ' + e.message) + throw new Error('TxClient:TxRaw: Could not create message: ' + e.message) } }, @@ -1033,19 +1025,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - getTxsEventResponse({ value }: getTxsEventResponseParams): EncodeObject { + txDecodeAminoResponse({ value }: txDecodeAminoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", value: GetTxsEventResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse", value: TxDecodeAminoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxsEventResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeAminoResponse: Could not create message: ' + e.message) } }, - txRaw({ value }: txRawParams): EncodeObject { + signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxRaw: Could not create message: ' + e.message) + throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message) } }, @@ -1057,11 +1049,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - getTxsEventRequest({ value }: getTxsEventRequestParams): EncodeObject { + auxSignerData({ value }: auxSignerDataParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", value: AuxSignerData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message) + throw new Error('TxClient:AuxSignerData: Could not create message: ' + e.message) + } + }, + + txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.tx.v1beta1/registry.ts b/ts-client/cosmos.tx.v1beta1/registry.ts index 1f3ef30a..39a96c36 100755 --- a/ts-client/cosmos.tx.v1beta1/registry.ts +++ b/ts-client/cosmos.tx.v1beta1/registry.ts @@ -1,68 +1,68 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; -import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], - ["/cosmos.tx.v1beta1.TxEncodeAminoResponse", TxEncodeAminoResponse], - ["/cosmos.tx.v1beta1.AuxSignerData", AuxSignerData], - ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], - ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], - ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], - ["/cosmos.tx.v1beta1.TxBody", TxBody], - ["/cosmos.tx.v1beta1.ModeInfo_Multi", ModeInfo_Multi], - ["/cosmos.tx.v1beta1.Tip", Tip], - ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], - ["/cosmos.tx.v1beta1.GetBlockWithTxsRequest", GetBlockWithTxsRequest], + ["/cosmos.tx.v1beta1.SimulateRequest", SimulateRequest], + ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], + ["/cosmos.tx.v1beta1.ModeInfo_Single", ModeInfo_Single], + ["/cosmos.tx.v1beta1.GetTxsEventResponse", GetTxsEventResponse], + ["/cosmos.tx.v1beta1.BroadcastTxRequest", BroadcastTxRequest], ["/cosmos.tx.v1beta1.TxDecodeRequest", TxDecodeRequest], ["/cosmos.tx.v1beta1.TxEncodeRequest", TxEncodeRequest], - ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], - ["/cosmos.tx.v1beta1.ModeInfo_Single", ModeInfo_Single], + ["/cosmos.tx.v1beta1.TxBody", TxBody], ["/cosmos.tx.v1beta1.GetTxRequest", GetTxRequest], - ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], - ["/cosmos.tx.v1beta1.ModeInfo", ModeInfo], - ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], - ["/cosmos.tx.v1beta1.BroadcastTxRequest", BroadcastTxRequest], - ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], + ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], + ["/cosmos.tx.v1beta1.Tip", Tip], + ["/cosmos.tx.v1beta1.TxEncodeAminoResponse", TxEncodeAminoResponse], ["/cosmos.tx.v1beta1.Tx", Tx], + ["/cosmos.tx.v1beta1.SignDoc", SignDoc], + ["/cosmos.tx.v1beta1.ModeInfo", ModeInfo], + ["/cosmos.tx.v1beta1.ModeInfo_Multi", ModeInfo_Multi], + ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], ["/cosmos.tx.v1beta1.BroadcastTxResponse", BroadcastTxResponse], - ["/cosmos.tx.v1beta1.SimulateRequest", SimulateRequest], + ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], + ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], + ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], ["/cosmos.tx.v1beta1.TxDecodeAminoRequest", TxDecodeAminoRequest], - ["/cosmos.tx.v1beta1.SignDoc", SignDoc], - ["/cosmos.tx.v1beta1.Fee", Fee], - ["/cosmos.tx.v1beta1.GetTxsEventResponse", GetTxsEventResponse], + ["/cosmos.tx.v1beta1.GetTxsEventRequest", GetTxsEventRequest], + ["/cosmos.tx.v1beta1.GetBlockWithTxsRequest", GetBlockWithTxsRequest], ["/cosmos.tx.v1beta1.TxRaw", TxRaw], + ["/cosmos.tx.v1beta1.Fee", Fee], + ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], + ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], ["/cosmos.tx.v1beta1.SignerInfo", SignerInfo], - ["/cosmos.tx.v1beta1.GetTxsEventRequest", GetTxsEventRequest], + ["/cosmos.tx.v1beta1.AuxSignerData", AuxSignerData], + ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], ]; diff --git a/ts-client/cosmos.tx.v1beta1/rest.ts b/ts-client/cosmos.tx.v1beta1/rest.ts index 0bb9e4e3..11e6b884 100644 --- a/ts-client/cosmos.tx.v1beta1/rest.ts +++ b/ts-client/cosmos.tx.v1beta1/rest.ts @@ -9,6 +9,1195 @@ * --------------------------------------------------------------- */ +export interface ABCIMessageLog { + /** @format int64 */ + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; +} + +export interface Any { + "@type"?: string; +} + +export interface Attribute { + key?: string; + value?: string; +} + +export interface AuthInfo { + signer_infos?: SignerInfo[]; + fee?: { amount?: { denom?: string; amount?: string }[]; gas_limit?: string; payer?: string; granter?: string }; + tip?: { amount?: { denom?: string; amount?: string }[]; tipper?: string }; +} + +export interface Block { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; +} + +export interface BlockID { + /** @format byte */ + hash?: string; + part_set_header?: { total?: number; hash?: string }; +} + +export enum BlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = "BLOCK_ID_FLAG_UNKNOWN", + BLOCK_ID_FLAG_ABSENT = "BLOCK_ID_FLAG_ABSENT", + BLOCK_ID_FLAG_COMMIT = "BLOCK_ID_FLAG_COMMIT", + BLOCK_ID_FLAG_NIL = "BLOCK_ID_FLAG_NIL", +} + +export enum BroadcastMode { + BROADCAST_MODE_UNSPECIFIED = "BROADCAST_MODE_UNSPECIFIED", + BROADCAST_MODE_BLOCK = "BROADCAST_MODE_BLOCK", + BROADCAST_MODE_SYNC = "BROADCAST_MODE_SYNC", + BROADCAST_MODE_ASYNC = "BROADCAST_MODE_ASYNC", +} + +export interface BroadcastTxRequest { + /** @format byte */ + tx_bytes?: string; + mode?: "BROADCAST_MODE_UNSPECIFIED" | "BROADCAST_MODE_BLOCK" | "BROADCAST_MODE_SYNC" | "BROADCAST_MODE_ASYNC"; +} + +export interface BroadcastTxResponse { + tx_response?: { + height?: string; + txhash?: string; + codespace?: string; + code?: number; + data?: string; + raw_log?: string; + logs?: { + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; + }[]; + info?: string; + gas_wanted?: string; + gas_used?: string; + tx?: { "@type"?: string }; + timestamp?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + }; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export interface Commit { + /** @format int64 */ + height?: string; + + /** @format int32 */ + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; +} + +export interface CommitSig { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + + /** @format byte */ + validator_address?: string; + + /** @format date-time */ + timestamp?: string; + + /** @format byte */ + signature?: string; +} + +export interface CompactBitArray { + /** @format int64 */ + extra_bits_stored?: number; + + /** @format byte */ + elems?: string; +} + +export interface Consensus { + /** @format uint64 */ + block?: string; + + /** @format uint64 */ + app?: string; +} + +export interface DuplicateVoteEvidence { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + + /** @format int64 */ + total_voting_power?: string; + + /** @format int64 */ + validator_power?: string; + + /** @format date-time */ + timestamp?: string; +} + +export interface Event { + type?: string; + attributes?: { key?: string; value?: string; index?: boolean }[]; +} + +export interface EventAttribute { + key?: string; + value?: string; + index?: boolean; +} + +export interface Evidence { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; +} + +export interface EvidenceList { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; +} + +export interface Fee { + amount?: { denom?: string; amount?: string }[]; + + /** @format uint64 */ + gas_limit?: string; + payer?: string; + granter?: string; +} + +export interface GasInfo { + /** @format uint64 */ + gas_wanted?: string; + + /** @format uint64 */ + gas_used?: string; +} + +export interface GetBlockWithTxsResponse { + txs?: Tx[]; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + block?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + data?: { txs?: string[] }; + evidence?: { + evidence?: { + duplicate_vote_evidence?: { + vote_a?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + vote_b?: { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; + extension?: string; + extension_signature?: string; + }; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; + }; + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + total_voting_power?: string; + timestamp?: string; + }; + }[]; + }; + last_commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + pagination?: { next_key?: string; total?: string }; +} + +export interface GetTxResponse { + tx?: Tx; + tx_response?: { + height?: string; + txhash?: string; + codespace?: string; + code?: number; + data?: string; + raw_log?: string; + logs?: { + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; + }[]; + info?: string; + gas_wanted?: string; + gas_used?: string; + tx?: { "@type"?: string }; + timestamp?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + }; +} + +export interface GetTxsEventResponse { + txs?: Tx[]; + tx_responses?: { + height?: string; + txhash?: string; + codespace?: string; + code?: number; + data?: string; + raw_log?: string; + logs?: { + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; + }[]; + info?: string; + gas_wanted?: string; + gas_used?: string; + tx?: { "@type"?: string }; + timestamp?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + }[]; + pagination?: { next_key?: string; total?: string }; + + /** @format uint64 */ + total?: string; +} + +export interface Header { + version?: { block?: string; app?: string }; + chain_id?: string; + + /** @format int64 */ + height?: string; + + /** @format date-time */ + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format byte */ + last_commit_hash?: string; + + /** @format byte */ + data_hash?: string; + + /** @format byte */ + validators_hash?: string; + + /** @format byte */ + next_validators_hash?: string; + + /** @format byte */ + consensus_hash?: string; + + /** @format byte */ + app_hash?: string; + + /** @format byte */ + last_results_hash?: string; + + /** @format byte */ + evidence_hash?: string; + + /** @format byte */ + proposer_address?: string; +} + +export interface LightBlock { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; +} + +export interface LightClientAttackEvidence { + conflicting_block?: { + signed_header?: { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: + | "BLOCK_ID_FLAG_UNKNOWN" + | "BLOCK_ID_FLAG_ABSENT" + | "BLOCK_ID_FLAG_COMMIT" + | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + total_voting_power?: string; + }; + }; + + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + + /** @format int64 */ + total_voting_power?: string; + + /** @format date-time */ + timestamp?: string; +} + +export interface ModeInfo { + single?: { + mode?: + | "SIGN_MODE_UNSPECIFIED" + | "SIGN_MODE_DIRECT" + | "SIGN_MODE_TEXTUAL" + | "SIGN_MODE_DIRECT_AUX" + | "SIGN_MODE_LEGACY_AMINO_JSON" + | "SIGN_MODE_EIP_191"; + }; + multi?: ModeInfoMulti; +} + +export interface ModeInfoMulti { + bitarray?: { extra_bits_stored?: number; elems?: string }; + mode_infos?: ModeInfo[]; +} + +export interface ModeInfoSingle { + mode?: + | "SIGN_MODE_UNSPECIFIED" + | "SIGN_MODE_DIRECT" + | "SIGN_MODE_TEXTUAL" + | "SIGN_MODE_DIRECT_AUX" + | "SIGN_MODE_LEGACY_AMINO_JSON" + | "SIGN_MODE_EIP_191"; +} + +export enum OrderBy { + ORDER_BY_UNSPECIFIED = "ORDER_BY_UNSPECIFIED", + ORDER_BY_ASC = "ORDER_BY_ASC", + ORDER_BY_DESC = "ORDER_BY_DESC", +} + +export interface PageRequest { + /** @format byte */ + key?: string; + + /** @format uint64 */ + offset?: string; + + /** @format uint64 */ + limit?: string; + count_total?: boolean; + reverse?: boolean; +} + +export interface PageResponse { + /** @format byte */ + next_key?: string; + + /** @format uint64 */ + total?: string; +} + +export interface PartSetHeader { + /** @format int64 */ + total?: number; + + /** @format byte */ + hash?: string; +} + +export interface PublicKey { + /** @format byte */ + ed25519?: string; + + /** @format byte */ + secp256k1?: string; +} + +export enum SignMode { + SIGN_MODE_UNSPECIFIED = "SIGN_MODE_UNSPECIFIED", + SIGN_MODE_DIRECT = "SIGN_MODE_DIRECT", + SIGN_MODE_TEXTUAL = "SIGN_MODE_TEXTUAL", + SIGN_MODE_DIRECT_AUX = "SIGN_MODE_DIRECT_AUX", + SIGN_MODE_LEGACY_AMINO_JSON = "SIGN_MODE_LEGACY_AMINO_JSON", + SIGNMODEEIP191 = "SIGN_MODE_EIP_191", +} + +export interface SignedHeader { + header?: { + version?: { block?: string; app?: string }; + chain_id?: string; + height?: string; + time?: string; + last_block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + last_commit_hash?: string; + data_hash?: string; + validators_hash?: string; + next_validators_hash?: string; + consensus_hash?: string; + app_hash?: string; + last_results_hash?: string; + evidence_hash?: string; + proposer_address?: string; + }; + commit?: { + height?: string; + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + signatures?: { + block_id_flag?: "BLOCK_ID_FLAG_UNKNOWN" | "BLOCK_ID_FLAG_ABSENT" | "BLOCK_ID_FLAG_COMMIT" | "BLOCK_ID_FLAG_NIL"; + validator_address?: string; + timestamp?: string; + signature?: string; + }[]; + }; +} + +export enum SignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = "SIGNED_MSG_TYPE_UNKNOWN", + SIGNED_MSG_TYPE_PREVOTE = "SIGNED_MSG_TYPE_PREVOTE", + SIGNED_MSG_TYPE_PRECOMMIT = "SIGNED_MSG_TYPE_PRECOMMIT", + SIGNED_MSG_TYPE_PROPOSAL = "SIGNED_MSG_TYPE_PROPOSAL", +} + +export interface SignerInfo { + public_key?: { "@type"?: string }; + mode_info?: ModeInfo; + + /** @format uint64 */ + sequence?: string; +} + +export interface SimulateRequest { + tx?: Tx; + + /** @format byte */ + tx_bytes?: string; +} + +export interface SimulateResponse { + gas_info?: { gas_wanted?: string; gas_used?: string }; + result?: { + data?: string; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + msg_responses?: { "@type"?: string }[]; + }; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export interface StringEvent { + type?: string; + attributes?: { key?: string; value?: string }[]; +} + +export interface Tip { + amount?: { denom?: string; amount?: string }[]; + tipper?: string; +} + +export interface Tx { + body?: { + messages?: { "@type"?: string }[]; + memo?: string; + timeout_height?: string; + extension_options?: { "@type"?: string }[]; + non_critical_extension_options?: { "@type"?: string }[]; + }; + auth_info?: AuthInfo; + signatures?: string[]; +} + +export interface TxBody { + messages?: { "@type"?: string }[]; + memo?: string; + + /** @format uint64 */ + timeout_height?: string; + extension_options?: { "@type"?: string }[]; + non_critical_extension_options?: { "@type"?: string }[]; +} + +export interface TxDecodeAminoRequest { + /** @format byte */ + amino_binary?: string; +} + +export interface TxDecodeAminoResponse { + amino_json?: string; +} + +export interface TxDecodeRequest { + /** @format byte */ + tx_bytes?: string; +} + +export interface TxDecodeResponse { + tx?: Tx; +} + +export interface TxEncodeAminoRequest { + amino_json?: string; +} + +export interface TxEncodeAminoResponse { + /** @format byte */ + amino_binary?: string; +} + +export interface TxEncodeRequest { + tx?: Tx; +} + +export interface TxEncodeResponse { + /** @format byte */ + tx_bytes?: string; +} + +export interface TxResponse { + /** @format int64 */ + height?: string; + txhash?: string; + codespace?: string; + + /** @format int64 */ + code?: number; + data?: string; + raw_log?: string; + logs?: { + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; + }[]; + info?: string; + + /** @format int64 */ + gas_wanted?: string; + + /** @format int64 */ + gas_used?: string; + tx?: { "@type"?: string }; + timestamp?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; +} + +export interface ValidatorSet { + validators?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }[]; + proposer?: { + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + voting_power?: string; + proposer_priority?: string; + }; + + /** @format int64 */ + total_voting_power?: string; +} + +export interface Vote { + type?: + | "SIGNED_MSG_TYPE_UNKNOWN" + | "SIGNED_MSG_TYPE_PREVOTE" + | "SIGNED_MSG_TYPE_PRECOMMIT" + | "SIGNED_MSG_TYPE_PROPOSAL"; + + /** @format int64 */ + height?: string; + + /** @format int32 */ + round?: number; + block_id?: { hash?: string; part_set_header?: { total?: number; hash?: string } }; + + /** @format date-time */ + timestamp?: string; + + /** @format byte */ + validator_address?: string; + + /** @format int32 */ + validator_index?: number; + + /** @format byte */ + signature?: string; + + /** @format byte */ + extension?: string; + + /** @format byte */ + extension_signature?: string; +} + +export interface TypesData { + txs?: string[]; +} + +export interface TypesValidator { + /** @format byte */ + address?: string; + pub_key?: { ed25519?: string; secp256k1?: string }; + + /** @format int64 */ + voting_power?: string; + + /** @format int64 */ + proposer_priority?: string; +} + +export interface V1Beta1Result { + /** @format byte */ + data?: string; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + msg_responses?: { "@type"?: string }[]; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +1321,208 @@ export class HttpClient { /** * @title HTTP API Console cosmos.tx.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Service + * @name ServiceTxDecode + * @request POST:/cosmos/tx/v1beta1/decode + */ + serviceTxDecode = (body: { tx_bytes?: string }, params: RequestParams = {}) => + this.request({ + path: `/cosmos/tx/v1beta1/decode`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceTxDecodeAmino + * @request POST:/cosmos/tx/v1beta1/decode/amino + */ + serviceTxDecodeAmino = (body: { amino_binary?: string }, params: RequestParams = {}) => + this.request<{ amino_json?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/tx/v1beta1/decode/amino`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceTxEncode + * @request POST:/cosmos/tx/v1beta1/encode + */ + serviceTxEncode = (body: TxEncodeRequest, params: RequestParams = {}) => + this.request<{ tx_bytes?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/tx/v1beta1/encode`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceTxEncodeAmino + * @request POST:/cosmos/tx/v1beta1/encode/amino + */ + serviceTxEncodeAmino = (body: { amino_json?: string }, params: RequestParams = {}) => + this.request<{ amino_binary?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/tx/v1beta1/encode/amino`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceSimulate + * @request POST:/cosmos/tx/v1beta1/simulate + */ + serviceSimulate = (body: SimulateRequest, params: RequestParams = {}) => + this.request< + { + gas_info?: { gas_wanted?: string; gas_used?: string }; + result?: { + data?: string; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + msg_responses?: { "@type"?: string }[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/tx/v1beta1/simulate`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetTxsEvent + * @request GET:/cosmos/tx/v1beta1/txs + */ + serviceGetTxsEvent = ( + query?: { + events?: string[]; + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + order_by?: "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC"; + page?: string; + limit?: string; + query?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/cosmos/tx/v1beta1/txs`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceBroadcastTx + * @request POST:/cosmos/tx/v1beta1/txs + */ + serviceBroadcastTx = ( + body: { + tx_bytes?: string; + mode?: "BROADCAST_MODE_UNSPECIFIED" | "BROADCAST_MODE_BLOCK" | "BROADCAST_MODE_SYNC" | "BROADCAST_MODE_ASYNC"; + }, + params: RequestParams = {}, + ) => + this.request< + { + tx_response?: { + height?: string; + txhash?: string; + codespace?: string; + code?: number; + data?: string; + raw_log?: string; + logs?: { + msg_index?: number; + log?: string; + events?: { type?: string; attributes?: { key?: string; value?: string }[] }[]; + }[]; + info?: string; + gas_wanted?: string; + gas_used?: string; + tx?: { "@type"?: string }; + timestamp?: string; + events?: { type?: string; attributes?: { key?: string; value?: string; index?: boolean }[] }[]; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/tx/v1beta1/txs`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetBlockWithTxs + * @request GET:/cosmos/tx/v1beta1/txs/block/{height} + */ + serviceGetBlockWithTxs = ( + height: string, + query?: { + "pagination.key"?: string; + "pagination.offset"?: string; + "pagination.limit"?: string; + "pagination.count_total"?: boolean; + "pagination.reverse"?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/cosmos/tx/v1beta1/txs/block/${height}`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Service + * @name ServiceGetTx + * @request GET:/cosmos/tx/v1beta1/txs/{hash} + */ + serviceGetTx = (hash: string, params: RequestParams = {}) => + this.request({ + path: `/cosmos/tx/v1beta1/txs/${hash}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.upgrade.v1beta1/api.swagger.yml b/ts-client/cosmos.upgrade.v1beta1/api.swagger.yml index 12c29812..cc494c04 100644 --- a/ts-client/cosmos.upgrade.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.upgrade.v1beta1/api.swagger.yml @@ -3,3 +3,312 @@ info: title: HTTP API Console cosmos.upgrade.v1beta1 name: '' description: '' +paths: + /cosmos/upgrade/v1beta1/applied_plan/{name}: + get: + operationId: Query_AppliedPlan + responses: + '200': + description: A successful response. + schema: + type: object + properties: + height: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: name + description: name is the name of the applied plan to query for. + in: path + required: true + type: string + tags: + - Query + /cosmos/upgrade/v1beta1/authority: + get: + operationId: Query_Authority + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/upgrade/v1beta1/current_plan: + get: + operationId: Query_CurrentPlan + responses: + '200': + description: A successful response. + schema: + type: object + properties: + plan: + type: object + properties: + name: + type: string + time: + type: string + format: date-time + height: + type: string + format: int64 + info: + type: string + upgraded_client_state: + type: object + properties: + '@type': + type: string + additionalProperties: {} + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/upgrade/v1beta1/module_versions: + get: + operationId: Query_ModuleVersions + responses: + '200': + description: A successful response. + schema: + type: object + properties: + module_versions: + type: array + items: + type: object + properties: + name: + type: string + version: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: module_name + in: query + required: false + type: string + tags: + - Query + /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}: + get: + operationId: Query_UpgradedConsensusState + responses: + '200': + description: A successful response. + schema: + type: object + properties: + upgraded_consensus_state: + type: string + format: byte + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: last_height + description: |- + last height of the current chain must be sent in request + as this is the height under which next consensus state is stored + in: path + required: true + type: string + format: int64 + tags: + - Query +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + ModuleVersion: + type: object + properties: + name: + type: string + version: + type: string + format: uint64 + Plan: + type: object + properties: + name: + type: string + time: + type: string + format: date-time + height: + type: string + format: int64 + info: + type: string + upgraded_client_state: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryAppliedPlanResponse: + type: object + properties: + height: + type: string + format: int64 + QueryAuthorityResponse: + type: object + properties: + address: + type: string + QueryCurrentPlanResponse: + type: object + properties: + plan: + type: object + properties: + name: + type: string + time: + type: string + format: date-time + height: + type: string + format: int64 + info: + type: string + upgraded_client_state: + type: object + properties: + '@type': + type: string + additionalProperties: {} + QueryModuleVersionsResponse: + type: object + properties: + module_versions: + type: array + items: + type: object + properties: + name: + type: string + version: + type: string + format: uint64 + QueryUpgradedConsensusStateResponse: + type: object + properties: + upgraded_consensus_state: + type: string + format: byte + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + MsgCancelUpgradeResponse: + type: object + MsgSoftwareUpgradeResponse: + type: object diff --git a/ts-client/cosmos.upgrade.v1beta1/module.ts b/ts-client/cosmos.upgrade.v1beta1/module.ts index 58834bc8..b58673e8 100755 --- a/ts-client/cosmos.upgrade.v1beta1/module.ts +++ b/ts-client/cosmos.upgrade.v1beta1/module.ts @@ -6,66 +6,66 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -export { SoftwareUpgradeProposal, CancelSoftwareUpgradeProposal, QueryAppliedPlanResponse, QueryModuleVersionsRequest, Plan, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, ModuleVersion, QueryCurrentPlanResponse, QueryAuthorityResponse, MsgSoftwareUpgrade, QueryAuthorityRequest, QueryCurrentPlanRequest, QueryAppliedPlanRequest, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsResponse, MsgCancelUpgradeResponse }; +export { MsgCancelUpgradeResponse, SoftwareUpgradeProposal, QueryCurrentPlanResponse, QueryUpgradedConsensusStateRequest, QueryAuthorityRequest, MsgCancelUpgrade, Plan, ModuleVersion, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryUpgradedConsensusStateResponse, QueryAuthorityResponse, CancelSoftwareUpgradeProposal, QueryCurrentPlanRequest, QueryAppliedPlanRequest, QueryAppliedPlanResponse, MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse }; -type sendSoftwareUpgradeProposalParams = { - value: SoftwareUpgradeProposal, +type sendMsgCancelUpgradeResponseParams = { + value: MsgCancelUpgradeResponse, fee?: StdFee, memo?: string }; -type sendCancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal, +type sendSoftwareUpgradeProposalParams = { + value: SoftwareUpgradeProposal, fee?: StdFee, memo?: string }; -type sendQueryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse, +type sendQueryCurrentPlanResponseParams = { + value: QueryCurrentPlanResponse, fee?: StdFee, memo?: string }; -type sendQueryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest, +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendPlanParams = { - value: Plan, +type sendQueryAuthorityRequestParams = { + value: QueryAuthorityRequest, fee?: StdFee, memo?: string }; -type sendMsgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse, +type sendMsgCancelUpgradeParams = { + value: MsgCancelUpgrade, fee?: StdFee, memo?: string }; -type sendMsgCancelUpgradeParams = { - value: MsgCancelUpgrade, +type sendPlanParams = { + value: Plan, fee?: StdFee, memo?: string }; @@ -76,26 +76,32 @@ type sendModuleVersionParams = { memo?: string }; -type sendQueryCurrentPlanResponseParams = { - value: QueryCurrentPlanResponse, +type sendQueryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest, fee?: StdFee, memo?: string }; -type sendQueryAuthorityResponseParams = { - value: QueryAuthorityResponse, +type sendQueryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse, fee?: StdFee, memo?: string }; -type sendMsgSoftwareUpgradeParams = { - value: MsgSoftwareUpgrade, +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendQueryAuthorityRequestParams = { - value: QueryAuthorityRequest, +type sendQueryAuthorityResponseParams = { + value: QueryAuthorityResponse, + fee?: StdFee, + memo?: string +}; + +type sendCancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal, fee?: StdFee, memo?: string }; @@ -112,77 +118,75 @@ type sendQueryAppliedPlanRequestParams = { memo?: string }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type sendQueryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse, fee?: StdFee, memo?: string }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type sendMsgSoftwareUpgradeParams = { + value: MsgSoftwareUpgrade, fee?: StdFee, memo?: string }; -type sendQueryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse, +type sendMsgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse, fee?: StdFee, memo?: string }; -type sendMsgCancelUpgradeResponseParams = { + +type msgCancelUpgradeResponseParams = { value: MsgCancelUpgradeResponse, - fee?: StdFee, - memo?: string }; - type softwareUpgradeProposalParams = { value: SoftwareUpgradeProposal, }; -type cancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal, +type queryCurrentPlanResponseParams = { + value: QueryCurrentPlanResponse, }; -type queryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse, +type queryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, }; -type queryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest, +type queryAuthorityRequestParams = { + value: QueryAuthorityRequest, +}; + +type msgCancelUpgradeParams = { + value: MsgCancelUpgrade, }; type planParams = { value: Plan, }; -type msgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse, +type moduleVersionParams = { + value: ModuleVersion, }; -type msgCancelUpgradeParams = { - value: MsgCancelUpgrade, +type queryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest, }; -type moduleVersionParams = { - value: ModuleVersion, +type queryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse, }; -type queryCurrentPlanResponseParams = { - value: QueryCurrentPlanResponse, +type queryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, }; type queryAuthorityResponseParams = { value: QueryAuthorityResponse, }; -type msgSoftwareUpgradeParams = { - value: MsgSoftwareUpgrade, -}; - -type queryAuthorityRequestParams = { - value: QueryAuthorityRequest, +type cancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal, }; type queryCurrentPlanRequestParams = { @@ -193,20 +197,16 @@ type queryAppliedPlanRequestParams = { value: QueryAppliedPlanRequest, }; -type queryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, -}; - -type queryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type queryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse, }; -type queryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse, +type msgSoftwareUpgradeParams = { + value: MsgSoftwareUpgrade, }; -type msgCancelUpgradeResponseParams = { - value: MsgCancelUpgradeResponse, +type msgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse, }; @@ -239,101 +239,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise { + async sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSoftwareUpgradeProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelUpgradeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.softwareUpgradeProposal({ value: SoftwareUpgradeProposal.fromPartial(value) }) + let msg = this.msgCancelUpgradeResponse({ value: MsgCancelUpgradeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise { + async sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSoftwareUpgradeProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.cancelSoftwareUpgradeProposal({ value: CancelSoftwareUpgradeProposal.fromPartial(value) }) + let msg = this.softwareUpgradeProposal({ value: SoftwareUpgradeProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAppliedPlanResponse({ value, fee, memo }: sendQueryAppliedPlanResponseParams): Promise { + async sendQueryCurrentPlanResponse({ value, fee, memo }: sendQueryCurrentPlanResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAppliedPlanResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCurrentPlanResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAppliedPlanResponse({ value: QueryAppliedPlanResponse.fromPartial(value) }) + let msg = this.queryCurrentPlanResponse({ value: QueryCurrentPlanResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAppliedPlanResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCurrentPlanResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryModuleVersionsRequest({ value: QueryModuleVersionsRequest.fromPartial(value) }) + let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryModuleVersionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendPlan({ value, fee, memo }: sendPlanParams): Promise { + async sendQueryAuthorityRequest({ value, fee, memo }: sendQueryAuthorityRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendPlan: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAuthorityRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.plan({ value: Plan.fromPartial(value) }) + let msg = this.queryAuthorityRequest({ value: QueryAuthorityRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPlan: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAuthorityRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise { + async sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCancelUpgrade: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSoftwareUpgradeResponse({ value: MsgSoftwareUpgradeResponse.fromPartial(value) }) + let msg = this.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise { + async sendPlan({ value, fee, memo }: sendPlanParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgrade: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPlan: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(value) }) + let msg = this.plan({ value: Plan.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPlan: Could not broadcast Tx: '+ e.message) } }, @@ -351,59 +351,73 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryCurrentPlanResponse({ value, fee, memo }: sendQueryCurrentPlanResponseParams): Promise { + async sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCurrentPlanResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleVersionsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCurrentPlanResponse({ value: QueryCurrentPlanResponse.fromPartial(value) }) + let msg = this.queryModuleVersionsRequest({ value: QueryModuleVersionsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCurrentPlanResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleVersionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise { + async sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAuthorityResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleVersionsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAuthorityResponse({ value: QueryAuthorityResponse.fromPartial(value) }) + let msg = this.queryModuleVersionsResponse({ value: QueryModuleVersionsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleVersionsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSoftwareUpgrade({ value, fee, memo }: sendMsgSoftwareUpgradeParams): Promise { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSoftwareUpgrade: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(value) }) + let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAuthorityRequest({ value, fee, memo }: sendQueryAuthorityRequestParams): Promise { + async sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAuthorityRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAuthorityResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAuthorityRequest({ value: QueryAuthorityRequest.fromPartial(value) }) + let msg = this.queryAuthorityResponse({ value: QueryAuthorityResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAuthorityRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise { + if (!signer) { + throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.cancelSoftwareUpgradeProposal({ value: CancelSoftwareUpgradeProposal.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, @@ -435,63 +449,57 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { + async sendQueryAppliedPlanResponse({ value, fee, memo }: sendQueryAppliedPlanResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAppliedPlanResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }) + let msg = this.queryAppliedPlanResponse({ value: QueryAppliedPlanResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAppliedPlanResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { + async sendMsgSoftwareUpgrade({ value, fee, memo }: sendMsgSoftwareUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSoftwareUpgrade: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }) + let msg = this.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise { + async sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryModuleVersionsResponse({ value: QueryModuleVersionsResponse.fromPartial(value) }) + let msg = this.msgSoftwareUpgradeResponse({ value: MsgSoftwareUpgradeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryModuleVersionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgradeResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCancelUpgradeResponse({ value: MsgCancelUpgradeResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + + msgCancelUpgradeResponse({ value }: msgCancelUpgradeResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", value: MsgCancelUpgradeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendMsgCancelUpgradeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgCancelUpgradeResponse: Could not create message: ' + e.message) } }, - softwareUpgradeProposal({ value }: softwareUpgradeProposalParams): EncodeObject { try { return { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: SoftwareUpgradeProposal.fromPartial( value ) } @@ -500,27 +508,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject { + queryCurrentPlanResponse({ value }: queryCurrentPlanResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message) } }, - queryAppliedPlanResponse({ value }: queryAppliedPlanResponseParams): EncodeObject { + queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) } }, - queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject { + queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message) + } + }, + + msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject { + try { + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message) } }, @@ -532,35 +548,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgSoftwareUpgradeResponse({ value }: msgSoftwareUpgradeResponseParams): EncodeObject { + moduleVersion({ value }: moduleVersionParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", value: MsgSoftwareUpgradeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSoftwareUpgradeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModuleVersion: Could not create message: ' + e.message) } }, - msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject { + queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message) } }, - moduleVersion({ value }: moduleVersionParams): EncodeObject { + queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleVersion: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message) } }, - queryCurrentPlanResponse({ value }: queryCurrentPlanResponseParams): EncodeObject { + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) } }, @@ -572,19 +588,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgSoftwareUpgrade({ value }: msgSoftwareUpgradeParams): EncodeObject { - try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgSoftwareUpgrade: Could not create message: ' + e.message) - } - }, - - queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject { + cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message) + throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message) } }, @@ -604,35 +612,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) - } - }, - - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { + queryAppliedPlanResponse({ value }: queryAppliedPlanResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message) } }, - queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject { + msgSoftwareUpgrade({ value }: msgSoftwareUpgradeParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSoftwareUpgrade: Could not create message: ' + e.message) } }, - msgCancelUpgradeResponse({ value }: msgCancelUpgradeResponseParams): EncodeObject { + msgSoftwareUpgradeResponse({ value }: msgSoftwareUpgradeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", value: MsgCancelUpgradeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", value: MsgSoftwareUpgradeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUpgradeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSoftwareUpgradeResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.upgrade.v1beta1/registry.ts b/ts-client/cosmos.upgrade.v1beta1/registry.ts index 1a39ccc8..4dd80664 100755 --- a/ts-client/cosmos.upgrade.v1beta1/registry.ts +++ b/ts-client/cosmos.upgrade.v1beta1/registry.ts @@ -1,42 +1,42 @@ import { GeneratedType } from "@cosmjs/proto-signing"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], ["/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", SoftwareUpgradeProposal], - ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], - ["/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", QueryAppliedPlanResponse], - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], - ["/cosmos.upgrade.v1beta1.Plan", Plan], - ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], + ["/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", QueryCurrentPlanResponse], + ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade], + ["/cosmos.upgrade.v1beta1.Plan", Plan], ["/cosmos.upgrade.v1beta1.ModuleVersion", ModuleVersion], - ["/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", QueryCurrentPlanResponse], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], + ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], ["/cosmos.upgrade.v1beta1.QueryAuthorityResponse", QueryAuthorityResponse], - ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], - ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], + ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], ["/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", QueryCurrentPlanRequest], ["/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", QueryAppliedPlanRequest], - ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], - ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], - ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], + ["/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", QueryAppliedPlanResponse], + ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], + ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], ]; diff --git a/ts-client/cosmos.upgrade.v1beta1/rest.ts b/ts-client/cosmos.upgrade.v1beta1/rest.ts index 1c48b4b3..e5d7c785 100644 --- a/ts-client/cosmos.upgrade.v1beta1/rest.ts +++ b/ts-client/cosmos.upgrade.v1beta1/rest.ts @@ -9,6 +9,62 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface ModuleVersion { + name?: string; + + /** @format uint64 */ + version?: string; +} + +export interface Plan { + name?: string; + + /** @format date-time */ + time?: string; + + /** @format int64 */ + height?: string; + info?: string; + upgraded_client_state?: { "@type"?: string }; +} + +export interface QueryAppliedPlanResponse { + /** @format int64 */ + height?: string; +} + +export interface QueryAuthorityResponse { + address?: string; +} + +export interface QueryCurrentPlanResponse { + plan?: { name?: string; time?: string; height?: string; info?: string; upgraded_client_state?: { "@type"?: string } }; +} + +export interface QueryModuleVersionsResponse { + module_versions?: { name?: string; version?: string }[]; +} + +export interface QueryUpgradedConsensusStateResponse { + /** @format byte */ + upgraded_consensus_state?: string; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + +export type MsgCancelUpgradeResponse = object; + +export type MsgSoftwareUpgradeResponse = object; + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; @@ -132,4 +188,92 @@ export class HttpClient { /** * @title HTTP API Console cosmos.upgrade.v1beta1 */ -export class Api extends HttpClient {} +export class Api extends HttpClient { + /** + * No description + * + * @tags Query + * @name QueryAppliedPlan + * @request GET:/cosmos/upgrade/v1beta1/applied_plan/{name} + */ + queryAppliedPlan = (name: string, params: RequestParams = {}) => + this.request<{ height?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/upgrade/v1beta1/applied_plan/${name}`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryAuthority + * @request GET:/cosmos/upgrade/v1beta1/authority + */ + queryAuthority = (params: RequestParams = {}) => + this.request<{ address?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmos/upgrade/v1beta1/authority`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryCurrentPlan + * @request GET:/cosmos/upgrade/v1beta1/current_plan + */ + queryCurrentPlan = (params: RequestParams = {}) => + this.request< + { + plan?: { + name?: string; + time?: string; + height?: string; + info?: string; + upgraded_client_state?: { "@type"?: string }; + }; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/upgrade/v1beta1/current_plan`, + method: "GET", + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryModuleVersions + * @request GET:/cosmos/upgrade/v1beta1/module_versions + */ + queryModuleVersions = (query?: { module_name?: string }, params: RequestParams = {}) => + this.request< + { module_versions?: { name?: string; version?: string }[] }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/upgrade/v1beta1/module_versions`, + method: "GET", + query: query, + ...params, + }); + + /** + * No description + * + * @tags Query + * @name QueryUpgradedConsensusState + * @request GET:/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height} + */ + queryUpgradedConsensusState = (lastHeight: string, params: RequestParams = {}) => + this.request< + { upgraded_consensus_state?: string }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/cosmos/upgrade/v1beta1/upgraded_consensus_state/${lastHeight}`, + method: "GET", + ...params, + }); +} diff --git a/ts-client/cosmos.vesting.v1beta1/api.swagger.yml b/ts-client/cosmos.vesting.v1beta1/api.swagger.yml index ac5293bc..370689df 100644 --- a/ts-client/cosmos.vesting.v1beta1/api.swagger.yml +++ b/ts-client/cosmos.vesting.v1beta1/api.swagger.yml @@ -3,3 +3,54 @@ info: title: HTTP API Console cosmos.vesting.v1beta1 name: '' description: '' +definitions: + Any: + type: object + properties: + '@type': + type: string + additionalProperties: {} + Coin: + type: object + properties: + denom: + type: string + amount: + type: string + MsgCreatePeriodicVestingAccountResponse: + type: object + MsgCreatePermanentLockedAccountResponse: + type: object + MsgCreateVestingAccountResponse: + type: object + Period: + type: object + properties: + length: + type: string + format: int64 + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} diff --git a/ts-client/cosmos.vesting.v1beta1/module.ts b/ts-client/cosmos.vesting.v1beta1/module.ts index 8c6dec5b..37322da1 100755 --- a/ts-client/cosmos.vesting.v1beta1/module.ts +++ b/ts-client/cosmos.vesting.v1beta1/module.ts @@ -6,21 +6,33 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; + +export { BaseVestingAccount, MsgCreatePeriodicVestingAccount, ContinuousVestingAccount, DelayedVestingAccount, MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccountResponse, Period, PeriodicVestingAccount, PermanentLockedAccount, MsgCreateVestingAccountResponse }; + +type sendBaseVestingAccountParams = { + value: BaseVestingAccount, + fee?: StdFee, + memo?: string +}; -export { ContinuousVestingAccount, PeriodicVestingAccount, PermanentLockedAccount, MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccountResponse, BaseVestingAccount, DelayedVestingAccount, Period, MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccountResponse }; +type sendMsgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount, + fee?: StdFee, + memo?: string +}; type sendContinuousVestingAccountParams = { value: ContinuousVestingAccount, @@ -28,20 +40,20 @@ type sendContinuousVestingAccountParams = { memo?: string }; -type sendPeriodicVestingAccountParams = { - value: PeriodicVestingAccount, +type sendDelayedVestingAccountParams = { + value: DelayedVestingAccount, fee?: StdFee, memo?: string }; -type sendPermanentLockedAccountParams = { - value: PermanentLockedAccount, +type sendMsgCreateVestingAccountParams = { + value: MsgCreateVestingAccount, fee?: StdFee, memo?: string }; -type sendMsgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount, +type sendMsgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount, fee?: StdFee, memo?: string }; @@ -52,26 +64,26 @@ type sendMsgCreatePermanentLockedAccountResponseParams = { memo?: string }; -type sendBaseVestingAccountParams = { - value: BaseVestingAccount, +type sendMsgCreatePeriodicVestingAccountResponseParams = { + value: MsgCreatePeriodicVestingAccountResponse, fee?: StdFee, memo?: string }; -type sendDelayedVestingAccountParams = { - value: DelayedVestingAccount, +type sendPeriodParams = { + value: Period, fee?: StdFee, memo?: string }; -type sendPeriodParams = { - value: Period, +type sendPeriodicVestingAccountParams = { + value: PeriodicVestingAccount, fee?: StdFee, memo?: string }; -type sendMsgCreateVestingAccountParams = { - value: MsgCreateVestingAccount, +type sendPermanentLockedAccountParams = { + value: PermanentLockedAccount, fee?: StdFee, memo?: string }; @@ -82,65 +94,53 @@ type sendMsgCreateVestingAccountResponseParams = { memo?: string }; -type sendMsgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount, - fee?: StdFee, - memo?: string -}; -type sendMsgCreatePeriodicVestingAccountResponseParams = { - value: MsgCreatePeriodicVestingAccountResponse, - fee?: StdFee, - memo?: string +type baseVestingAccountParams = { + value: BaseVestingAccount, }; +type msgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount, +}; type continuousVestingAccountParams = { value: ContinuousVestingAccount, }; -type periodicVestingAccountParams = { - value: PeriodicVestingAccount, +type delayedVestingAccountParams = { + value: DelayedVestingAccount, }; -type permanentLockedAccountParams = { - value: PermanentLockedAccount, +type msgCreateVestingAccountParams = { + value: MsgCreateVestingAccount, }; -type msgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount, +type msgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount, }; type msgCreatePermanentLockedAccountResponseParams = { value: MsgCreatePermanentLockedAccountResponse, }; -type baseVestingAccountParams = { - value: BaseVestingAccount, -}; - -type delayedVestingAccountParams = { - value: DelayedVestingAccount, +type msgCreatePeriodicVestingAccountResponseParams = { + value: MsgCreatePeriodicVestingAccountResponse, }; type periodParams = { value: Period, }; -type msgCreateVestingAccountParams = { - value: MsgCreateVestingAccount, -}; - -type msgCreateVestingAccountResponseParams = { - value: MsgCreateVestingAccountResponse, +type periodicVestingAccountParams = { + value: PeriodicVestingAccount, }; -type msgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount, +type permanentLockedAccountParams = { + value: PermanentLockedAccount, }; -type msgCreatePeriodicVestingAccountResponseParams = { - value: MsgCreatePeriodicVestingAccountResponse, +type msgCreateVestingAccountResponseParams = { + value: MsgCreateVestingAccountResponse, }; @@ -173,268 +173,268 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise { + async sendBaseVestingAccount({ value, fee, memo }: sendBaseVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendContinuousVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBaseVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.continuousVestingAccount({ value: ContinuousVestingAccount.fromPartial(value) }) + let msg = this.baseVestingAccount({ value: BaseVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContinuousVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBaseVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendPeriodicVestingAccount({ value, fee, memo }: sendPeriodicVestingAccountParams): Promise { + async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriodicVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.periodicVestingAccount({ value: PeriodicVestingAccount.fromPartial(value) }) + let msg = this.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPeriodicVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendPermanentLockedAccount({ value, fee, memo }: sendPermanentLockedAccountParams): Promise { + async sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendPermanentLockedAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContinuousVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.permanentLockedAccount({ value: PermanentLockedAccount.fromPartial(value) }) + let msg = this.continuousVestingAccount({ value: ContinuousVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPermanentLockedAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContinuousVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise { + async sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDelayedVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(value) }) + let msg = this.delayedVestingAccount({ value: DelayedVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelayedVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: sendMsgCreatePermanentLockedAccountResponseParams): Promise { + async sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreatePermanentLockedAccountResponse({ value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }) + let msg = this.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendBaseVestingAccount({ value, fee, memo }: sendBaseVestingAccountParams): Promise { + async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendBaseVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.baseVestingAccount({ value: BaseVestingAccount.fromPartial(value) }) + let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendBaseVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message) } }, - async sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise { + async sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: sendMsgCreatePermanentLockedAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelayedVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.delayedVestingAccount({ value: DelayedVestingAccount.fromPartial(value) }) + let msg = this.msgCreatePermanentLockedAccountResponse({ value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendDelayedVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPeriod({ value, fee, memo }: sendPeriodParams): Promise { + async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriod: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.period({ value: Period.fromPartial(value) }) + let msg = this.msgCreatePeriodicVestingAccountResponse({ value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPeriod: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise { + async sendPeriod({ value, fee, memo }: sendPeriodParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPeriod: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) }) + let msg = this.period({ value: Period.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriod: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise { + async sendPeriodicVestingAccount({ value, fee, memo }: sendPeriodicVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPeriodicVestingAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateVestingAccountResponse({ value: MsgCreateVestingAccountResponse.fromPartial(value) }) + let msg = this.periodicVestingAccount({ value: PeriodicVestingAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriodicVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise { + async sendPermanentLockedAccount({ value, fee, memo }: sendPermanentLockedAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPermanentLockedAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) }) + let msg = this.permanentLockedAccount({ value: PermanentLockedAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPermanentLockedAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountResponseParams): Promise { + async sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreatePeriodicVestingAccountResponse({ value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }) + let msg = this.msgCreateVestingAccountResponse({ value: MsgCreateVestingAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: '+ e.message) } }, - continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject { + baseVestingAccount({ value }: baseVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message) } }, - periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject { + msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message) } }, - permanentLockedAccount({ value }: permanentLockedAccountParams): EncodeObject { + continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message) + throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message) } }, - msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject { + delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message) } }, - msgCreatePermanentLockedAccountResponse({ value }: msgCreatePermanentLockedAccountResponseParams): EncodeObject { + msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePermanentLockedAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message) } }, - baseVestingAccount({ value }: baseVestingAccountParams): EncodeObject { + msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message) } }, - delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject { + msgCreatePermanentLockedAccountResponse({ value }: msgCreatePermanentLockedAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePermanentLockedAccountResponse: Could not create message: ' + e.message) } }, - period({ value }: periodParams): EncodeObject { + msgCreatePeriodicVestingAccountResponse({ value }: msgCreatePeriodicVestingAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Period: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message) } }, - msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject { + period({ value }: periodParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:Period: Could not create message: ' + e.message) } }, - msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject { + periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message) } }, - msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject { + permanentLockedAccount({ value }: permanentLockedAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message) + throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message) } }, - msgCreatePeriodicVestingAccountResponse({ value }: msgCreatePeriodicVestingAccountResponseParams): EncodeObject { + msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.vesting.v1beta1/registry.ts b/ts-client/cosmos.vesting.v1beta1/registry.ts index 31312fdc..9d35d9c3 100755 --- a/ts-client/cosmos.vesting.v1beta1/registry.ts +++ b/ts-client/cosmos.vesting.v1beta1/registry.ts @@ -1,30 +1,30 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], - ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], - ["/cosmos.vesting.v1beta1.PermanentLockedAccount", PermanentLockedAccount], - ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], ["/cosmos.vesting.v1beta1.BaseVestingAccount", BaseVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], ["/cosmos.vesting.v1beta1.DelayedVestingAccount", DelayedVestingAccount], - ["/cosmos.vesting.v1beta1.Period", Period], ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", MsgCreatePeriodicVestingAccountResponse], + ["/cosmos.vesting.v1beta1.Period", Period], + ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.PermanentLockedAccount", PermanentLockedAccount], + ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], ]; diff --git a/ts-client/cosmos.vesting.v1beta1/rest.ts b/ts-client/cosmos.vesting.v1beta1/rest.ts index 7b7e9261..d3f52612 100644 --- a/ts-client/cosmos.vesting.v1beta1/rest.ts +++ b/ts-client/cosmos.vesting.v1beta1/rest.ts @@ -9,6 +9,34 @@ * --------------------------------------------------------------- */ +export interface Any { + "@type"?: string; +} + +export interface Coin { + denom?: string; + amount?: string; +} + +export type MsgCreatePeriodicVestingAccountResponse = object; + +export type MsgCreatePermanentLockedAccountResponse = object; + +export type MsgCreateVestingAccountResponse = object; + +export interface Period { + /** @format int64 */ + length?: string; + amount?: { denom?: string; amount?: string }[]; +} + +export interface Status { + /** @format int32 */ + code?: number; + message?: string; + details?: { "@type"?: string }[]; +} + import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export type QueryParamsType = Record; diff --git a/ts-client/cosmwasm.wasm.v1/api.swagger.yml b/ts-client/cosmwasm.wasm.v1/api.swagger.yml index 1e31a193..0c279180 100644 --- a/ts-client/cosmwasm.wasm.v1/api.swagger.yml +++ b/ts-client/cosmwasm.wasm.v1/api.swagger.yml @@ -353,6 +353,55 @@ paths: type: boolean tags: - Query + /cosmwasm/wasm/v1/contract/build_address: + get: + operationId: Query_BuildAddress + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: code_hash + in: query + required: false + type: string + - name: creator_address + in: query + required: false + type: string + - name: salt + in: query + required: false + type: string + - name: init_args + in: query + required: false + type: string + format: byte + tags: + - Query /cosmwasm/wasm/v1/contract/{address}: get: operationId: Query_ContractInfo @@ -922,6 +971,11 @@ definitions: total: type: string format: uint64 + QueryBuildAddressResponse: + type: object + properties: + address: + type: string QueryCodeResponse: type: object properties: diff --git a/ts-client/cosmwasm.wasm.v1/module.ts b/ts-client/cosmwasm.wasm.v1/module.ts index 29504522..b8c84497 100755 --- a/ts-client/cosmwasm.wasm.v1/module.ts +++ b/ts-client/cosmwasm.wasm.v1/module.ts @@ -6,324 +6,338 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgStoreAndMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { UnpinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ContractInfo } from "./types/cosmwasm/wasm/v1/types"; -import { QueryContractHistoryRequest } from "./types/cosmwasm/wasm/v1/query"; -import { ContractExecutionAuthorization } from "./types/cosmwasm/wasm/v1/authz"; -import { ContractGrant } from "./types/cosmwasm/wasm/v1/authz"; -import { QueryContractInfoResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryParamsRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgIBCSendResponse } from "./types/cosmwasm/wasm/v1/ibc"; -import { StoreAndInstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { AbsoluteTxPosition } from "./types/cosmwasm/wasm/v1/types"; -import { QueryAllContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { QueryRawContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgSudoContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { AllowAllMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgInstantiateContract2 } from "./types/cosmwasm/wasm/v1/tx"; +import { CodeInfo } from "./types/cosmwasm/wasm/v1/types"; +import { QueryParamsResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryContractsByCodeRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractsByCodeResponse } from "./types/cosmwasm/wasm/v1/query"; import { MsgRemoveCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; -import { MigrateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ExecuteContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgIBCSend } from "./types/cosmwasm/wasm/v1/ibc"; -import { MsgExecuteContract } from "./types/cosmwasm/wasm/v1/tx"; import { AcceptedMessageKeysFilter } from "./types/cosmwasm/wasm/v1/authz"; -import { QueryContractsByCodeRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgAddCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateContractLabelResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Contract } from "./types/cosmwasm/wasm/v1/genesis"; -import { CodeInfo } from "./types/cosmwasm/wasm/v1/types"; -import { QueryContractHistoryResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUpdateParams } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { QueryCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryRawContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { AccessTypeParam } from "./types/cosmwasm/wasm/v1/types"; +import { Model } from "./types/cosmwasm/wasm/v1/types"; +import { QueryParamsRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgExecuteContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateInstantiateConfig } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgSudoContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgPinCodes } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryAllContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgIBCSendResponse } from "./types/cosmwasm/wasm/v1/ibc"; +import { MaxFundsLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { QueryContractHistoryRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgPinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; import { MsgIBCCloseChannel } from "./types/cosmwasm/wasm/v1/ibc"; -import { MsgUpdateContractLabel } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgInstantiateContract2Response } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { PinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { QueryAllContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgRemoveCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { InstantiateContract2Proposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { AccessConfig } from "./types/cosmwasm/wasm/v1/types"; import { MaxCallsLimit } from "./types/cosmwasm/wasm/v1/authz"; -import { MaxFundsLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { QueryBuildAddressRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateContractLabelResponse } from "./types/cosmwasm/wasm/v1/tx"; import { QueryCodesResponse } from "./types/cosmwasm/wasm/v1/query"; -import { Params } from "./types/cosmwasm/wasm/v1/types"; +import { MsgStoreCodeResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { InstantiateContract2Proposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QueryContractsByCreatorResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgAddCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractInfo } from "./types/cosmwasm/wasm/v1/types"; +import { StoreCodeProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; import { CodeGrant } from "./types/cosmwasm/wasm/v1/authz"; -import { QuerySmartContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { QueryContractsByCodeResponse } from "./types/cosmwasm/wasm/v1/query"; -import { ContractCodeHistoryEntry } from "./types/cosmwasm/wasm/v1/types"; -import { AccessConfigUpdate } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ContractMigrationAuthorization } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgUpdateAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { CombinedLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgStoreAndMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateContractLabel } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgIBCSend } from "./types/cosmwasm/wasm/v1/ibc"; +import { PinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { MsgUnpinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; import { AcceptedMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; -import { CodeInfoResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryPinnedCodesRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgExecuteContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Model } from "./types/cosmwasm/wasm/v1/types"; -import { AccessTypeParam } from "./types/cosmwasm/wasm/v1/types"; +import { Contract } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgInstantiateContract2Response } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryContractInfoRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryAllContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { QueryCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgAddCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgClearAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgStoreAndInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractCodeHistoryEntry } from "./types/cosmwasm/wasm/v1/types"; +import { ContractExecutionAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { QueryContractsByCreatorRequest } from "./types/cosmwasm/wasm/v1/query"; -import { InstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgUpdateInstantiateConfig } from "./types/cosmwasm/wasm/v1/tx"; -import { UpdateAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgUpdateParamsResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { SudoContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; import { QueryCodeRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgClearAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgRemoveCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { Sequence } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgStoreAndMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { AbsoluteTxPosition } from "./types/cosmwasm/wasm/v1/types"; +import { MsgMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractMigrationAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { Code } from "./types/cosmwasm/wasm/v1/genesis"; -import { QueryContractInfoRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractInfoResponse } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractHistoryResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgExecuteContract } from "./types/cosmwasm/wasm/v1/tx"; import { MsgUnpinCodes } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgInstantiateContract2 } from "./types/cosmwasm/wasm/v1/tx"; -import { ClearAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgPinCodes } from "./types/cosmwasm/wasm/v1/tx"; -import { QueryContractsByCreatorResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUpdateInstantiateConfigResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgSudoContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreCode } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgClearAdmin } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgPinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { GenesisState } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgStoreAndInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; import { StoreCodeAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { QueryCodeResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgAddCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { CombinedLimit } from "./types/cosmwasm/wasm/v1/authz"; -import { QuerySmartContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUnpinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgStoreCode } from "./types/cosmwasm/wasm/v1/tx"; import { UpdateInstantiateConfigProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { AccessConfigUpdate } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QueryPinnedCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { AllowAllMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; import { MsgInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgClearAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Sequence } from "./types/cosmwasm/wasm/v1/genesis"; -import { StoreCodeProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { QueryRawContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateInstantiateConfigResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgSudoContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { StoreAndInstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ExecuteContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ContractGrant } from "./types/cosmwasm/wasm/v1/authz"; +import { SudoContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ClearAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { UnpinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QuerySmartContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { CodeInfoResponse } from "./types/cosmwasm/wasm/v1/query"; +import { AccessConfig } from "./types/cosmwasm/wasm/v1/types"; +import { MsgUpdateParams } from "./types/cosmwasm/wasm/v1/tx"; +import { MigrateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { GenesisState } from "./types/cosmwasm/wasm/v1/genesis"; +import { QueryRawContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryBuildAddressResponse } from "./types/cosmwasm/wasm/v1/query"; +import { Params } from "./types/cosmwasm/wasm/v1/types"; +import { InstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { UpdateAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QuerySmartContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; import { QueryPinnedCodesResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryParamsResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgStoreCodeResponse } from "./types/cosmwasm/wasm/v1/tx"; -export { MsgStoreAndMigrateContract, MsgUpdateAdminResponse, UnpinCodesProposal, ContractInfo, QueryContractHistoryRequest, ContractExecutionAuthorization, ContractGrant, QueryContractInfoResponse, QueryParamsRequest, MsgIBCSendResponse, StoreAndInstantiateContractProposal, AbsoluteTxPosition, QueryAllContractStateRequest, QueryRawContractStateRequest, MsgInstantiateContract, MsgSudoContractResponse, AllowAllMessagesFilter, MsgRemoveCodeUploadParamsAddresses, MigrateContractProposal, ExecuteContractProposal, MsgIBCSend, MsgExecuteContract, AcceptedMessageKeysFilter, QueryContractsByCodeRequest, MsgAddCodeUploadParamsAddresses, MsgUpdateContractLabelResponse, Contract, CodeInfo, QueryContractHistoryResponse, MsgUpdateParams, MsgStoreAndInstantiateContract, QueryCodesRequest, MsgIBCCloseChannel, MsgUpdateContractLabel, MsgInstantiateContract2Response, MsgMigrateContractResponse, MsgStoreAndInstantiateContractResponse, PinCodesProposal, QueryAllContractStateResponse, MsgRemoveCodeUploadParamsAddressesResponse, InstantiateContract2Proposal, AccessConfig, MaxCallsLimit, MaxFundsLimit, QueryCodesResponse, Params, CodeGrant, QuerySmartContractStateRequest, QueryContractsByCodeResponse, ContractCodeHistoryEntry, AccessConfigUpdate, ContractMigrationAuthorization, AcceptedMessagesFilter, CodeInfoResponse, QueryPinnedCodesRequest, MsgExecuteContractResponse, Model, AccessTypeParam, QueryContractsByCreatorRequest, InstantiateContractProposal, MsgUpdateInstantiateConfig, UpdateAdminProposal, MsgUpdateParamsResponse, MsgStoreAndMigrateContractResponse, SudoContractProposal, QueryCodeRequest, Code, QueryContractInfoRequest, MsgUnpinCodes, MsgInstantiateContract2, ClearAdminProposal, MsgPinCodes, QueryContractsByCreatorResponse, MsgUpdateInstantiateConfigResponse, MsgSudoContract, MsgStoreCode, MsgClearAdmin, MsgPinCodesResponse, GenesisState, StoreCodeAuthorization, QueryCodeResponse, MsgAddCodeUploadParamsAddressesResponse, CombinedLimit, QuerySmartContractStateResponse, MsgUnpinCodesResponse, UpdateInstantiateConfigProposal, MsgMigrateContract, MsgUpdateAdmin, MsgInstantiateContractResponse, MsgClearAdminResponse, Sequence, StoreCodeProposal, QueryRawContractStateResponse, QueryPinnedCodesResponse, QueryParamsResponse, MsgStoreCodeResponse }; +export { MsgInstantiateContract2, CodeInfo, QueryParamsResponse, MsgUpdateParamsResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, MsgRemoveCodeUploadParamsAddresses, AcceptedMessageKeysFilter, QueryRawContractStateResponse, AccessTypeParam, Model, QueryParamsRequest, MsgExecuteContractResponse, MsgUpdateInstantiateConfig, MsgSudoContract, MsgPinCodes, QueryAllContractStateRequest, MsgIBCSendResponse, MaxFundsLimit, QueryContractHistoryRequest, MsgPinCodesResponse, MsgIBCCloseChannel, MaxCallsLimit, QueryBuildAddressRequest, MsgUpdateContractLabelResponse, QueryCodesResponse, MsgStoreCodeResponse, MsgUpdateAdmin, InstantiateContract2Proposal, QueryContractsByCreatorResponse, MsgAddCodeUploadParamsAddresses, ContractInfo, StoreCodeProposal, CodeGrant, MsgUpdateAdminResponse, CombinedLimit, MsgStoreAndMigrateContract, MsgUpdateContractLabel, MsgIBCSend, PinCodesProposal, MsgUnpinCodesResponse, AcceptedMessagesFilter, Contract, MsgInstantiateContract2Response, QueryContractInfoRequest, QueryAllContractStateResponse, QueryCodesRequest, MsgAddCodeUploadParamsAddressesResponse, MsgMigrateContract, MsgClearAdminResponse, MsgStoreAndInstantiateContract, ContractCodeHistoryEntry, ContractExecutionAuthorization, QueryContractsByCreatorRequest, QueryCodeRequest, MsgClearAdmin, MsgRemoveCodeUploadParamsAddressesResponse, Sequence, MsgStoreAndMigrateContractResponse, AbsoluteTxPosition, MsgMigrateContractResponse, ContractMigrationAuthorization, Code, QueryContractInfoResponse, QueryContractHistoryResponse, MsgExecuteContract, MsgUnpinCodes, MsgStoreAndInstantiateContractResponse, StoreCodeAuthorization, QueryCodeResponse, MsgInstantiateContract, MsgStoreCode, UpdateInstantiateConfigProposal, AccessConfigUpdate, QueryPinnedCodesRequest, AllowAllMessagesFilter, MsgInstantiateContractResponse, MsgUpdateInstantiateConfigResponse, MsgSudoContractResponse, StoreAndInstantiateContractProposal, ExecuteContractProposal, ContractGrant, SudoContractProposal, ClearAdminProposal, UnpinCodesProposal, QuerySmartContractStateResponse, CodeInfoResponse, AccessConfig, MsgUpdateParams, MigrateContractProposal, GenesisState, QueryRawContractStateRequest, QueryBuildAddressResponse, Params, InstantiateContractProposal, UpdateAdminProposal, QuerySmartContractStateRequest, QueryPinnedCodesResponse }; -type sendMsgStoreAndMigrateContractParams = { - value: MsgStoreAndMigrateContract, +type sendMsgInstantiateContract2Params = { + value: MsgInstantiateContract2, fee?: StdFee, memo?: string }; -type sendMsgUpdateAdminResponseParams = { - value: MsgUpdateAdminResponse, +type sendCodeInfoParams = { + value: CodeInfo, fee?: StdFee, memo?: string }; -type sendUnpinCodesProposalParams = { - value: UnpinCodesProposal, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendContractInfoParams = { - value: ContractInfo, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryContractHistoryRequestParams = { - value: QueryContractHistoryRequest, +type sendQueryContractsByCodeRequestParams = { + value: QueryContractsByCodeRequest, fee?: StdFee, memo?: string }; -type sendContractExecutionAuthorizationParams = { - value: ContractExecutionAuthorization, +type sendQueryContractsByCodeResponseParams = { + value: QueryContractsByCodeResponse, fee?: StdFee, memo?: string }; -type sendContractGrantParams = { - value: ContractGrant, +type sendMsgRemoveCodeUploadParamsAddressesParams = { + value: MsgRemoveCodeUploadParamsAddresses, fee?: StdFee, memo?: string }; -type sendQueryContractInfoResponseParams = { - value: QueryContractInfoResponse, +type sendAcceptedMessageKeysFilterParams = { + value: AcceptedMessageKeysFilter, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryRawContractStateResponseParams = { + value: QueryRawContractStateResponse, fee?: StdFee, memo?: string }; -type sendMsgIBCSendResponseParams = { - value: MsgIBCSendResponse, +type sendAccessTypeParamParams = { + value: AccessTypeParam, fee?: StdFee, memo?: string }; -type sendStoreAndInstantiateContractProposalParams = { - value: StoreAndInstantiateContractProposal, +type sendModelParams = { + value: Model, fee?: StdFee, memo?: string }; -type sendAbsoluteTxPositionParams = { - value: AbsoluteTxPosition, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryAllContractStateRequestParams = { - value: QueryAllContractStateRequest, +type sendMsgExecuteContractResponseParams = { + value: MsgExecuteContractResponse, fee?: StdFee, memo?: string }; -type sendQueryRawContractStateRequestParams = { - value: QueryRawContractStateRequest, +type sendMsgUpdateInstantiateConfigParams = { + value: MsgUpdateInstantiateConfig, fee?: StdFee, memo?: string }; -type sendMsgInstantiateContractParams = { - value: MsgInstantiateContract, +type sendMsgSudoContractParams = { + value: MsgSudoContract, fee?: StdFee, memo?: string }; -type sendMsgSudoContractResponseParams = { - value: MsgSudoContractResponse, +type sendMsgPinCodesParams = { + value: MsgPinCodes, fee?: StdFee, memo?: string }; -type sendAllowAllMessagesFilterParams = { - value: AllowAllMessagesFilter, +type sendQueryAllContractStateRequestParams = { + value: QueryAllContractStateRequest, fee?: StdFee, memo?: string }; -type sendMsgRemoveCodeUploadParamsAddressesParams = { - value: MsgRemoveCodeUploadParamsAddresses, +type sendMsgIBCSendResponseParams = { + value: MsgIBCSendResponse, fee?: StdFee, memo?: string }; -type sendMigrateContractProposalParams = { - value: MigrateContractProposal, +type sendMaxFundsLimitParams = { + value: MaxFundsLimit, fee?: StdFee, memo?: string }; -type sendExecuteContractProposalParams = { - value: ExecuteContractProposal, +type sendQueryContractHistoryRequestParams = { + value: QueryContractHistoryRequest, fee?: StdFee, memo?: string }; -type sendMsgIBCSendParams = { - value: MsgIBCSend, +type sendMsgPinCodesResponseParams = { + value: MsgPinCodesResponse, fee?: StdFee, memo?: string }; -type sendMsgExecuteContractParams = { - value: MsgExecuteContract, +type sendMsgIBCCloseChannelParams = { + value: MsgIBCCloseChannel, fee?: StdFee, memo?: string }; -type sendAcceptedMessageKeysFilterParams = { - value: AcceptedMessageKeysFilter, +type sendMaxCallsLimitParams = { + value: MaxCallsLimit, fee?: StdFee, memo?: string }; -type sendQueryContractsByCodeRequestParams = { - value: QueryContractsByCodeRequest, +type sendQueryBuildAddressRequestParams = { + value: QueryBuildAddressRequest, fee?: StdFee, memo?: string }; -type sendMsgAddCodeUploadParamsAddressesParams = { - value: MsgAddCodeUploadParamsAddresses, +type sendMsgUpdateContractLabelResponseParams = { + value: MsgUpdateContractLabelResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateContractLabelResponseParams = { - value: MsgUpdateContractLabelResponse, +type sendQueryCodesResponseParams = { + value: QueryCodesResponse, fee?: StdFee, memo?: string }; -type sendContractParams = { - value: Contract, +type sendMsgStoreCodeResponseParams = { + value: MsgStoreCodeResponse, fee?: StdFee, memo?: string }; -type sendCodeInfoParams = { - value: CodeInfo, +type sendMsgUpdateAdminParams = { + value: MsgUpdateAdmin, fee?: StdFee, memo?: string }; -type sendQueryContractHistoryResponseParams = { - value: QueryContractHistoryResponse, +type sendInstantiateContract2ProposalParams = { + value: InstantiateContract2Proposal, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryContractsByCreatorResponseParams = { + value: QueryContractsByCreatorResponse, fee?: StdFee, memo?: string }; -type sendMsgStoreAndInstantiateContractParams = { - value: MsgStoreAndInstantiateContract, +type sendMsgAddCodeUploadParamsAddressesParams = { + value: MsgAddCodeUploadParamsAddresses, fee?: StdFee, memo?: string }; -type sendQueryCodesRequestParams = { - value: QueryCodesRequest, +type sendContractInfoParams = { + value: ContractInfo, fee?: StdFee, memo?: string }; -type sendMsgIBCCloseChannelParams = { - value: MsgIBCCloseChannel, +type sendStoreCodeProposalParams = { + value: StoreCodeProposal, fee?: StdFee, memo?: string }; -type sendMsgUpdateContractLabelParams = { - value: MsgUpdateContractLabel, +type sendCodeGrantParams = { + value: CodeGrant, fee?: StdFee, memo?: string }; -type sendMsgInstantiateContract2ResponseParams = { - value: MsgInstantiateContract2Response, +type sendMsgUpdateAdminResponseParams = { + value: MsgUpdateAdminResponse, fee?: StdFee, memo?: string }; -type sendMsgMigrateContractResponseParams = { - value: MsgMigrateContractResponse, +type sendCombinedLimitParams = { + value: CombinedLimit, fee?: StdFee, memo?: string }; -type sendMsgStoreAndInstantiateContractResponseParams = { - value: MsgStoreAndInstantiateContractResponse, +type sendMsgStoreAndMigrateContractParams = { + value: MsgStoreAndMigrateContract, + fee?: StdFee, + memo?: string +}; + +type sendMsgUpdateContractLabelParams = { + value: MsgUpdateContractLabel, + fee?: StdFee, + memo?: string +}; + +type sendMsgIBCSendParams = { + value: MsgIBCSend, fee?: StdFee, memo?: string }; @@ -334,68 +348,68 @@ type sendPinCodesProposalParams = { memo?: string }; -type sendQueryAllContractStateResponseParams = { - value: QueryAllContractStateResponse, +type sendMsgUnpinCodesResponseParams = { + value: MsgUnpinCodesResponse, fee?: StdFee, memo?: string }; -type sendMsgRemoveCodeUploadParamsAddressesResponseParams = { - value: MsgRemoveCodeUploadParamsAddressesResponse, +type sendAcceptedMessagesFilterParams = { + value: AcceptedMessagesFilter, fee?: StdFee, memo?: string }; -type sendInstantiateContract2ProposalParams = { - value: InstantiateContract2Proposal, +type sendContractParams = { + value: Contract, fee?: StdFee, memo?: string }; -type sendAccessConfigParams = { - value: AccessConfig, +type sendMsgInstantiateContract2ResponseParams = { + value: MsgInstantiateContract2Response, fee?: StdFee, memo?: string }; -type sendMaxCallsLimitParams = { - value: MaxCallsLimit, +type sendQueryContractInfoRequestParams = { + value: QueryContractInfoRequest, fee?: StdFee, memo?: string }; -type sendMaxFundsLimitParams = { - value: MaxFundsLimit, +type sendQueryAllContractStateResponseParams = { + value: QueryAllContractStateResponse, fee?: StdFee, memo?: string }; -type sendQueryCodesResponseParams = { - value: QueryCodesResponse, +type sendQueryCodesRequestParams = { + value: QueryCodesRequest, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendMsgAddCodeUploadParamsAddressesResponseParams = { + value: MsgAddCodeUploadParamsAddressesResponse, fee?: StdFee, memo?: string }; -type sendCodeGrantParams = { - value: CodeGrant, +type sendMsgMigrateContractParams = { + value: MsgMigrateContract, fee?: StdFee, memo?: string }; -type sendQuerySmartContractStateRequestParams = { - value: QuerySmartContractStateRequest, +type sendMsgClearAdminResponseParams = { + value: MsgClearAdminResponse, fee?: StdFee, memo?: string }; -type sendQueryContractsByCodeResponseParams = { - value: QueryContractsByCodeResponse, +type sendMsgStoreAndInstantiateContractParams = { + value: MsgStoreAndInstantiateContract, fee?: StdFee, memo?: string }; @@ -406,200 +420,200 @@ type sendContractCodeHistoryEntryParams = { memo?: string }; -type sendAccessConfigUpdateParams = { - value: AccessConfigUpdate, +type sendContractExecutionAuthorizationParams = { + value: ContractExecutionAuthorization, fee?: StdFee, memo?: string }; -type sendContractMigrationAuthorizationParams = { - value: ContractMigrationAuthorization, +type sendQueryContractsByCreatorRequestParams = { + value: QueryContractsByCreatorRequest, fee?: StdFee, memo?: string }; -type sendAcceptedMessagesFilterParams = { - value: AcceptedMessagesFilter, +type sendQueryCodeRequestParams = { + value: QueryCodeRequest, fee?: StdFee, memo?: string }; -type sendCodeInfoResponseParams = { - value: CodeInfoResponse, +type sendMsgClearAdminParams = { + value: MsgClearAdmin, fee?: StdFee, memo?: string }; -type sendQueryPinnedCodesRequestParams = { - value: QueryPinnedCodesRequest, +type sendMsgRemoveCodeUploadParamsAddressesResponseParams = { + value: MsgRemoveCodeUploadParamsAddressesResponse, fee?: StdFee, memo?: string }; -type sendMsgExecuteContractResponseParams = { - value: MsgExecuteContractResponse, +type sendSequenceParams = { + value: Sequence, fee?: StdFee, memo?: string }; -type sendModelParams = { - value: Model, +type sendMsgStoreAndMigrateContractResponseParams = { + value: MsgStoreAndMigrateContractResponse, fee?: StdFee, memo?: string }; -type sendAccessTypeParamParams = { - value: AccessTypeParam, +type sendAbsoluteTxPositionParams = { + value: AbsoluteTxPosition, fee?: StdFee, memo?: string }; -type sendQueryContractsByCreatorRequestParams = { - value: QueryContractsByCreatorRequest, +type sendMsgMigrateContractResponseParams = { + value: MsgMigrateContractResponse, fee?: StdFee, memo?: string }; -type sendInstantiateContractProposalParams = { - value: InstantiateContractProposal, +type sendContractMigrationAuthorizationParams = { + value: ContractMigrationAuthorization, fee?: StdFee, memo?: string }; -type sendMsgUpdateInstantiateConfigParams = { - value: MsgUpdateInstantiateConfig, +type sendCodeParams = { + value: Code, fee?: StdFee, memo?: string }; -type sendUpdateAdminProposalParams = { - value: UpdateAdminProposal, +type sendQueryContractInfoResponseParams = { + value: QueryContractInfoResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryContractHistoryResponseParams = { + value: QueryContractHistoryResponse, fee?: StdFee, memo?: string }; -type sendMsgStoreAndMigrateContractResponseParams = { - value: MsgStoreAndMigrateContractResponse, +type sendMsgExecuteContractParams = { + value: MsgExecuteContract, fee?: StdFee, memo?: string }; -type sendSudoContractProposalParams = { - value: SudoContractProposal, +type sendMsgUnpinCodesParams = { + value: MsgUnpinCodes, fee?: StdFee, memo?: string }; -type sendQueryCodeRequestParams = { - value: QueryCodeRequest, +type sendMsgStoreAndInstantiateContractResponseParams = { + value: MsgStoreAndInstantiateContractResponse, fee?: StdFee, memo?: string }; -type sendCodeParams = { - value: Code, +type sendStoreCodeAuthorizationParams = { + value: StoreCodeAuthorization, fee?: StdFee, memo?: string }; -type sendQueryContractInfoRequestParams = { - value: QueryContractInfoRequest, +type sendQueryCodeResponseParams = { + value: QueryCodeResponse, fee?: StdFee, memo?: string }; -type sendMsgUnpinCodesParams = { - value: MsgUnpinCodes, +type sendMsgInstantiateContractParams = { + value: MsgInstantiateContract, fee?: StdFee, memo?: string }; -type sendMsgInstantiateContract2Params = { - value: MsgInstantiateContract2, +type sendMsgStoreCodeParams = { + value: MsgStoreCode, fee?: StdFee, memo?: string }; -type sendClearAdminProposalParams = { - value: ClearAdminProposal, +type sendUpdateInstantiateConfigProposalParams = { + value: UpdateInstantiateConfigProposal, fee?: StdFee, memo?: string }; -type sendMsgPinCodesParams = { - value: MsgPinCodes, +type sendAccessConfigUpdateParams = { + value: AccessConfigUpdate, fee?: StdFee, memo?: string }; -type sendQueryContractsByCreatorResponseParams = { - value: QueryContractsByCreatorResponse, +type sendQueryPinnedCodesRequestParams = { + value: QueryPinnedCodesRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateInstantiateConfigResponseParams = { - value: MsgUpdateInstantiateConfigResponse, +type sendAllowAllMessagesFilterParams = { + value: AllowAllMessagesFilter, fee?: StdFee, memo?: string }; -type sendMsgSudoContractParams = { - value: MsgSudoContract, +type sendMsgInstantiateContractResponseParams = { + value: MsgInstantiateContractResponse, fee?: StdFee, memo?: string }; -type sendMsgStoreCodeParams = { - value: MsgStoreCode, +type sendMsgUpdateInstantiateConfigResponseParams = { + value: MsgUpdateInstantiateConfigResponse, fee?: StdFee, memo?: string }; -type sendMsgClearAdminParams = { - value: MsgClearAdmin, +type sendMsgSudoContractResponseParams = { + value: MsgSudoContractResponse, fee?: StdFee, memo?: string }; -type sendMsgPinCodesResponseParams = { - value: MsgPinCodesResponse, +type sendStoreAndInstantiateContractProposalParams = { + value: StoreAndInstantiateContractProposal, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendExecuteContractProposalParams = { + value: ExecuteContractProposal, fee?: StdFee, memo?: string }; -type sendStoreCodeAuthorizationParams = { - value: StoreCodeAuthorization, +type sendContractGrantParams = { + value: ContractGrant, fee?: StdFee, memo?: string }; -type sendQueryCodeResponseParams = { - value: QueryCodeResponse, +type sendSudoContractProposalParams = { + value: SudoContractProposal, fee?: StdFee, memo?: string }; -type sendMsgAddCodeUploadParamsAddressesResponseParams = { - value: MsgAddCodeUploadParamsAddressesResponse, +type sendClearAdminProposalParams = { + value: ClearAdminProposal, fee?: StdFee, memo?: string }; -type sendCombinedLimitParams = { - value: CombinedLimit, +type sendUnpinCodesProposalParams = { + value: UnpinCodesProposal, fee?: StdFee, memo?: string }; @@ -610,461 +624,469 @@ type sendQuerySmartContractStateResponseParams = { memo?: string }; -type sendMsgUnpinCodesResponseParams = { - value: MsgUnpinCodesResponse, +type sendCodeInfoResponseParams = { + value: CodeInfoResponse, fee?: StdFee, memo?: string }; -type sendUpdateInstantiateConfigProposalParams = { - value: UpdateInstantiateConfigProposal, +type sendAccessConfigParams = { + value: AccessConfig, fee?: StdFee, memo?: string }; -type sendMsgMigrateContractParams = { - value: MsgMigrateContract, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgUpdateAdminParams = { - value: MsgUpdateAdmin, +type sendMigrateContractProposalParams = { + value: MigrateContractProposal, fee?: StdFee, memo?: string }; -type sendMsgInstantiateContractResponseParams = { - value: MsgInstantiateContractResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgClearAdminResponseParams = { - value: MsgClearAdminResponse, +type sendQueryRawContractStateRequestParams = { + value: QueryRawContractStateRequest, fee?: StdFee, memo?: string }; -type sendSequenceParams = { - value: Sequence, +type sendQueryBuildAddressResponseParams = { + value: QueryBuildAddressResponse, fee?: StdFee, memo?: string }; -type sendStoreCodeProposalParams = { - value: StoreCodeProposal, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryRawContractStateResponseParams = { - value: QueryRawContractStateResponse, +type sendInstantiateContractProposalParams = { + value: InstantiateContractProposal, fee?: StdFee, memo?: string }; -type sendQueryPinnedCodesResponseParams = { - value: QueryPinnedCodesResponse, +type sendUpdateAdminProposalParams = { + value: UpdateAdminProposal, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQuerySmartContractStateRequestParams = { + value: QuerySmartContractStateRequest, fee?: StdFee, memo?: string }; -type sendMsgStoreCodeResponseParams = { - value: MsgStoreCodeResponse, +type sendQueryPinnedCodesResponseParams = { + value: QueryPinnedCodesResponse, fee?: StdFee, memo?: string }; -type msgStoreAndMigrateContractParams = { - value: MsgStoreAndMigrateContract, +type msgInstantiateContract2Params = { + value: MsgInstantiateContract2, }; -type msgUpdateAdminResponseParams = { - value: MsgUpdateAdminResponse, +type codeInfoParams = { + value: CodeInfo, }; -type unpinCodesProposalParams = { - value: UnpinCodesProposal, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type contractInfoParams = { - value: ContractInfo, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryContractHistoryRequestParams = { - value: QueryContractHistoryRequest, +type queryContractsByCodeRequestParams = { + value: QueryContractsByCodeRequest, }; -type contractExecutionAuthorizationParams = { - value: ContractExecutionAuthorization, +type queryContractsByCodeResponseParams = { + value: QueryContractsByCodeResponse, }; -type contractGrantParams = { - value: ContractGrant, +type msgRemoveCodeUploadParamsAddressesParams = { + value: MsgRemoveCodeUploadParamsAddresses, }; -type queryContractInfoResponseParams = { - value: QueryContractInfoResponse, +type acceptedMessageKeysFilterParams = { + value: AcceptedMessageKeysFilter, +}; + +type queryRawContractStateResponseParams = { + value: QueryRawContractStateResponse, +}; + +type accessTypeParamParams = { + value: AccessTypeParam, +}; + +type modelParams = { + value: Model, }; type queryParamsRequestParams = { value: QueryParamsRequest, }; -type msgIbcsendResponseParams = { - value: MsgIBCSendResponse, +type msgExecuteContractResponseParams = { + value: MsgExecuteContractResponse, }; -type storeAndInstantiateContractProposalParams = { - value: StoreAndInstantiateContractProposal, +type msgUpdateInstantiateConfigParams = { + value: MsgUpdateInstantiateConfig, }; -type absoluteTxPositionParams = { - value: AbsoluteTxPosition, +type msgSudoContractParams = { + value: MsgSudoContract, +}; + +type msgPinCodesParams = { + value: MsgPinCodes, }; type queryAllContractStateRequestParams = { value: QueryAllContractStateRequest, }; -type queryRawContractStateRequestParams = { - value: QueryRawContractStateRequest, +type msgIbcsendResponseParams = { + value: MsgIBCSendResponse, }; -type msgInstantiateContractParams = { - value: MsgInstantiateContract, +type maxFundsLimitParams = { + value: MaxFundsLimit, }; -type msgSudoContractResponseParams = { - value: MsgSudoContractResponse, +type queryContractHistoryRequestParams = { + value: QueryContractHistoryRequest, }; -type allowAllMessagesFilterParams = { - value: AllowAllMessagesFilter, +type msgPinCodesResponseParams = { + value: MsgPinCodesResponse, }; -type msgRemoveCodeUploadParamsAddressesParams = { - value: MsgRemoveCodeUploadParamsAddresses, +type msgIbccloseChannelParams = { + value: MsgIBCCloseChannel, }; -type migrateContractProposalParams = { - value: MigrateContractProposal, +type maxCallsLimitParams = { + value: MaxCallsLimit, }; -type executeContractProposalParams = { - value: ExecuteContractProposal, +type queryBuildAddressRequestParams = { + value: QueryBuildAddressRequest, }; -type msgIbcsendParams = { - value: MsgIBCSend, +type msgUpdateContractLabelResponseParams = { + value: MsgUpdateContractLabelResponse, }; -type msgExecuteContractParams = { - value: MsgExecuteContract, +type queryCodesResponseParams = { + value: QueryCodesResponse, }; -type acceptedMessageKeysFilterParams = { - value: AcceptedMessageKeysFilter, +type msgStoreCodeResponseParams = { + value: MsgStoreCodeResponse, }; -type queryContractsByCodeRequestParams = { - value: QueryContractsByCodeRequest, +type msgUpdateAdminParams = { + value: MsgUpdateAdmin, }; -type msgAddCodeUploadParamsAddressesParams = { - value: MsgAddCodeUploadParamsAddresses, +type instantiateContract2ProposalParams = { + value: InstantiateContract2Proposal, }; -type msgUpdateContractLabelResponseParams = { - value: MsgUpdateContractLabelResponse, +type queryContractsByCreatorResponseParams = { + value: QueryContractsByCreatorResponse, }; -type contractParams = { - value: Contract, +type msgAddCodeUploadParamsAddressesParams = { + value: MsgAddCodeUploadParamsAddresses, }; -type codeInfoParams = { - value: CodeInfo, +type contractInfoParams = { + value: ContractInfo, }; -type queryContractHistoryResponseParams = { - value: QueryContractHistoryResponse, +type storeCodeProposalParams = { + value: StoreCodeProposal, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type codeGrantParams = { + value: CodeGrant, }; -type msgStoreAndInstantiateContractParams = { - value: MsgStoreAndInstantiateContract, +type msgUpdateAdminResponseParams = { + value: MsgUpdateAdminResponse, }; -type queryCodesRequestParams = { - value: QueryCodesRequest, +type combinedLimitParams = { + value: CombinedLimit, }; -type msgIbccloseChannelParams = { - value: MsgIBCCloseChannel, +type msgStoreAndMigrateContractParams = { + value: MsgStoreAndMigrateContract, }; type msgUpdateContractLabelParams = { value: MsgUpdateContractLabel, }; -type msgInstantiateContract2ResponseParams = { - value: MsgInstantiateContract2Response, -}; - -type msgMigrateContractResponseParams = { - value: MsgMigrateContractResponse, -}; - -type msgStoreAndInstantiateContractResponseParams = { - value: MsgStoreAndInstantiateContractResponse, +type msgIbcsendParams = { + value: MsgIBCSend, }; type pinCodesProposalParams = { value: PinCodesProposal, }; -type queryAllContractStateResponseParams = { - value: QueryAllContractStateResponse, +type msgUnpinCodesResponseParams = { + value: MsgUnpinCodesResponse, }; -type msgRemoveCodeUploadParamsAddressesResponseParams = { - value: MsgRemoveCodeUploadParamsAddressesResponse, +type acceptedMessagesFilterParams = { + value: AcceptedMessagesFilter, }; -type instantiateContract2ProposalParams = { - value: InstantiateContract2Proposal, +type contractParams = { + value: Contract, }; -type accessConfigParams = { - value: AccessConfig, +type msgInstantiateContract2ResponseParams = { + value: MsgInstantiateContract2Response, }; -type maxCallsLimitParams = { - value: MaxCallsLimit, +type queryContractInfoRequestParams = { + value: QueryContractInfoRequest, }; -type maxFundsLimitParams = { - value: MaxFundsLimit, +type queryAllContractStateResponseParams = { + value: QueryAllContractStateResponse, }; -type queryCodesResponseParams = { - value: QueryCodesResponse, +type queryCodesRequestParams = { + value: QueryCodesRequest, }; -type paramsParams = { - value: Params, +type msgAddCodeUploadParamsAddressesResponseParams = { + value: MsgAddCodeUploadParamsAddressesResponse, }; -type codeGrantParams = { - value: CodeGrant, +type msgMigrateContractParams = { + value: MsgMigrateContract, }; -type querySmartContractStateRequestParams = { - value: QuerySmartContractStateRequest, +type msgClearAdminResponseParams = { + value: MsgClearAdminResponse, }; -type queryContractsByCodeResponseParams = { - value: QueryContractsByCodeResponse, +type msgStoreAndInstantiateContractParams = { + value: MsgStoreAndInstantiateContract, }; type contractCodeHistoryEntryParams = { value: ContractCodeHistoryEntry, }; -type accessConfigUpdateParams = { - value: AccessConfigUpdate, +type contractExecutionAuthorizationParams = { + value: ContractExecutionAuthorization, }; -type contractMigrationAuthorizationParams = { - value: ContractMigrationAuthorization, +type queryContractsByCreatorRequestParams = { + value: QueryContractsByCreatorRequest, }; -type acceptedMessagesFilterParams = { - value: AcceptedMessagesFilter, +type queryCodeRequestParams = { + value: QueryCodeRequest, }; -type codeInfoResponseParams = { - value: CodeInfoResponse, +type msgClearAdminParams = { + value: MsgClearAdmin, }; -type queryPinnedCodesRequestParams = { - value: QueryPinnedCodesRequest, +type msgRemoveCodeUploadParamsAddressesResponseParams = { + value: MsgRemoveCodeUploadParamsAddressesResponse, }; -type msgExecuteContractResponseParams = { - value: MsgExecuteContractResponse, +type sequenceParams = { + value: Sequence, }; -type modelParams = { - value: Model, +type msgStoreAndMigrateContractResponseParams = { + value: MsgStoreAndMigrateContractResponse, }; -type accessTypeParamParams = { - value: AccessTypeParam, +type absoluteTxPositionParams = { + value: AbsoluteTxPosition, }; -type queryContractsByCreatorRequestParams = { - value: QueryContractsByCreatorRequest, +type msgMigrateContractResponseParams = { + value: MsgMigrateContractResponse, }; -type instantiateContractProposalParams = { - value: InstantiateContractProposal, +type contractMigrationAuthorizationParams = { + value: ContractMigrationAuthorization, }; -type msgUpdateInstantiateConfigParams = { - value: MsgUpdateInstantiateConfig, +type codeParams = { + value: Code, }; -type updateAdminProposalParams = { - value: UpdateAdminProposal, +type queryContractInfoResponseParams = { + value: QueryContractInfoResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryContractHistoryResponseParams = { + value: QueryContractHistoryResponse, }; -type msgStoreAndMigrateContractResponseParams = { - value: MsgStoreAndMigrateContractResponse, +type msgExecuteContractParams = { + value: MsgExecuteContract, }; -type sudoContractProposalParams = { - value: SudoContractProposal, +type msgUnpinCodesParams = { + value: MsgUnpinCodes, }; -type queryCodeRequestParams = { - value: QueryCodeRequest, +type msgStoreAndInstantiateContractResponseParams = { + value: MsgStoreAndInstantiateContractResponse, }; -type codeParams = { - value: Code, +type storeCodeAuthorizationParams = { + value: StoreCodeAuthorization, }; -type queryContractInfoRequestParams = { - value: QueryContractInfoRequest, +type queryCodeResponseParams = { + value: QueryCodeResponse, }; -type msgUnpinCodesParams = { - value: MsgUnpinCodes, +type msgInstantiateContractParams = { + value: MsgInstantiateContract, }; -type msgInstantiateContract2Params = { - value: MsgInstantiateContract2, +type msgStoreCodeParams = { + value: MsgStoreCode, }; -type clearAdminProposalParams = { - value: ClearAdminProposal, +type updateInstantiateConfigProposalParams = { + value: UpdateInstantiateConfigProposal, }; -type msgPinCodesParams = { - value: MsgPinCodes, +type accessConfigUpdateParams = { + value: AccessConfigUpdate, }; -type queryContractsByCreatorResponseParams = { - value: QueryContractsByCreatorResponse, +type queryPinnedCodesRequestParams = { + value: QueryPinnedCodesRequest, }; -type msgUpdateInstantiateConfigResponseParams = { - value: MsgUpdateInstantiateConfigResponse, +type allowAllMessagesFilterParams = { + value: AllowAllMessagesFilter, }; -type msgSudoContractParams = { - value: MsgSudoContract, +type msgInstantiateContractResponseParams = { + value: MsgInstantiateContractResponse, }; -type msgStoreCodeParams = { - value: MsgStoreCode, +type msgUpdateInstantiateConfigResponseParams = { + value: MsgUpdateInstantiateConfigResponse, }; -type msgClearAdminParams = { - value: MsgClearAdmin, +type msgSudoContractResponseParams = { + value: MsgSudoContractResponse, }; -type msgPinCodesResponseParams = { - value: MsgPinCodesResponse, +type storeAndInstantiateContractProposalParams = { + value: StoreAndInstantiateContractProposal, }; -type genesisStateParams = { - value: GenesisState, +type executeContractProposalParams = { + value: ExecuteContractProposal, }; -type storeCodeAuthorizationParams = { - value: StoreCodeAuthorization, +type contractGrantParams = { + value: ContractGrant, }; -type queryCodeResponseParams = { - value: QueryCodeResponse, +type sudoContractProposalParams = { + value: SudoContractProposal, }; -type msgAddCodeUploadParamsAddressesResponseParams = { - value: MsgAddCodeUploadParamsAddressesResponse, +type clearAdminProposalParams = { + value: ClearAdminProposal, }; -type combinedLimitParams = { - value: CombinedLimit, +type unpinCodesProposalParams = { + value: UnpinCodesProposal, }; type querySmartContractStateResponseParams = { value: QuerySmartContractStateResponse, }; -type msgUnpinCodesResponseParams = { - value: MsgUnpinCodesResponse, +type codeInfoResponseParams = { + value: CodeInfoResponse, }; -type updateInstantiateConfigProposalParams = { - value: UpdateInstantiateConfigProposal, +type accessConfigParams = { + value: AccessConfig, }; -type msgMigrateContractParams = { - value: MsgMigrateContract, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type msgUpdateAdminParams = { - value: MsgUpdateAdmin, +type migrateContractProposalParams = { + value: MigrateContractProposal, }; -type msgInstantiateContractResponseParams = { - value: MsgInstantiateContractResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgClearAdminResponseParams = { - value: MsgClearAdminResponse, +type queryRawContractStateRequestParams = { + value: QueryRawContractStateRequest, }; -type sequenceParams = { - value: Sequence, +type queryBuildAddressResponseParams = { + value: QueryBuildAddressResponse, }; -type storeCodeProposalParams = { - value: StoreCodeProposal, +type paramsParams = { + value: Params, }; -type queryRawContractStateResponseParams = { - value: QueryRawContractStateResponse, +type instantiateContractProposalParams = { + value: InstantiateContractProposal, }; -type queryPinnedCodesResponseParams = { - value: QueryPinnedCodesResponse, +type updateAdminProposalParams = { + value: UpdateAdminProposal, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type querySmartContractStateRequestParams = { + value: QuerySmartContractStateRequest, }; -type msgStoreCodeResponseParams = { - value: MsgStoreCodeResponse, +type queryPinnedCodesResponseParams = { + value: QueryPinnedCodesResponse, }; @@ -1097,171 +1119,227 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgStoreAndMigrateContract({ value, fee, memo }: sendMsgStoreAndMigrateContractParams): Promise { + async sendMsgInstantiateContract2({ value, fee, memo }: sendMsgInstantiateContract2Params): Promise { if (!signer) { - throw new Error('TxClient:sendMsgStoreAndMigrateContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgInstantiateContract2: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreAndMigrateContract({ value: MsgStoreAndMigrateContract.fromPartial(value) }) + let msg = this.msgInstantiateContract2({ value: MsgInstantiateContract2.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgStoreAndMigrateContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgInstantiateContract2: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateAdminResponse({ value, fee, memo }: sendMsgUpdateAdminResponseParams): Promise { + async sendCodeInfo({ value, fee, memo }: sendCodeInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCodeInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateAdminResponse({ value: MsgUpdateAdminResponse.fromPartial(value) }) + let msg = this.codeInfo({ value: CodeInfo.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendCodeInfo: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryContractsByCodeRequest({ value, fee, memo }: sendQueryContractsByCodeRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryContractsByCodeRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryContractsByCodeRequest({ value: QueryContractsByCodeRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryContractsByCodeRequest: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryContractsByCodeResponse({ value, fee, memo }: sendQueryContractsByCodeResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryContractsByCodeResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryContractsByCodeResponse({ value: QueryContractsByCodeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractsByCodeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendUnpinCodesProposal({ value, fee, memo }: sendUnpinCodesProposalParams): Promise { + async sendMsgRemoveCodeUploadParamsAddresses({ value, fee, memo }: sendMsgRemoveCodeUploadParamsAddressesParams): Promise { if (!signer) { - throw new Error('TxClient:sendUnpinCodesProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddresses: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.unpinCodesProposal({ value: UnpinCodesProposal.fromPartial(value) }) + let msg = this.msgRemoveCodeUploadParamsAddresses({ value: MsgRemoveCodeUploadParamsAddresses.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUnpinCodesProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddresses: Could not broadcast Tx: '+ e.message) } }, - async sendContractInfo({ value, fee, memo }: sendContractInfoParams): Promise { + async sendAcceptedMessageKeysFilter({ value, fee, memo }: sendAcceptedMessageKeysFilterParams): Promise { if (!signer) { - throw new Error('TxClient:sendContractInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAcceptedMessageKeysFilter: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contractInfo({ value: ContractInfo.fromPartial(value) }) + let msg = this.acceptedMessageKeysFilter({ value: AcceptedMessageKeysFilter.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContractInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAcceptedMessageKeysFilter: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractHistoryRequest({ value, fee, memo }: sendQueryContractHistoryRequestParams): Promise { + async sendQueryRawContractStateResponse({ value, fee, memo }: sendQueryRawContractStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractHistoryRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryRawContractStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractHistoryRequest({ value: QueryContractHistoryRequest.fromPartial(value) }) + let msg = this.queryRawContractStateResponse({ value: QueryRawContractStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractHistoryRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRawContractStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendContractExecutionAuthorization({ value, fee, memo }: sendContractExecutionAuthorizationParams): Promise { + async sendAccessTypeParam({ value, fee, memo }: sendAccessTypeParamParams): Promise { if (!signer) { - throw new Error('TxClient:sendContractExecutionAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAccessTypeParam: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contractExecutionAuthorization({ value: ContractExecutionAuthorization.fromPartial(value) }) + let msg = this.accessTypeParam({ value: AccessTypeParam.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContractExecutionAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAccessTypeParam: Could not broadcast Tx: '+ e.message) } }, - async sendContractGrant({ value, fee, memo }: sendContractGrantParams): Promise { + async sendModel({ value, fee, memo }: sendModelParams): Promise { if (!signer) { - throw new Error('TxClient:sendContractGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contractGrant({ value: ContractGrant.fromPartial(value) }) + let msg = this.model({ value: Model.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContractGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModel: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractInfoResponse({ value, fee, memo }: sendQueryContractInfoResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractInfoResponse({ value: QueryContractInfoResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMsgExecuteContractResponse({ value, fee, memo }: sendMsgExecuteContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecuteContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.msgExecuteContractResponse({ value: MsgExecuteContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecuteContractResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSendResponse({ value, fee, memo }: sendMsgIBCSendResponseParams): Promise { + async sendMsgUpdateInstantiateConfig({ value, fee, memo }: sendMsgUpdateInstantiateConfigParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSendResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateInstantiateConfig: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgIbcsendResponse({ value: MsgIBCSendResponse.fromPartial(value) }) + let msg = this.msgUpdateInstantiateConfig({ value: MsgUpdateInstantiateConfig.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgIBCSendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateInstantiateConfig: Could not broadcast Tx: '+ e.message) } }, - async sendStoreAndInstantiateContractProposal({ value, fee, memo }: sendStoreAndInstantiateContractProposalParams): Promise { + async sendMsgSudoContract({ value, fee, memo }: sendMsgSudoContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendStoreAndInstantiateContractProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSudoContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.storeAndInstantiateContractProposal({ value: StoreAndInstantiateContractProposal.fromPartial(value) }) + let msg = this.msgSudoContract({ value: MsgSudoContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStoreAndInstantiateContractProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSudoContract: Could not broadcast Tx: '+ e.message) } }, - async sendAbsoluteTxPosition({ value, fee, memo }: sendAbsoluteTxPositionParams): Promise { + async sendMsgPinCodes({ value, fee, memo }: sendMsgPinCodesParams): Promise { if (!signer) { - throw new Error('TxClient:sendAbsoluteTxPosition: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPinCodes: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.absoluteTxPosition({ value: AbsoluteTxPosition.fromPartial(value) }) + let msg = this.msgPinCodes({ value: MsgPinCodes.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAbsoluteTxPosition: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPinCodes: Could not broadcast Tx: '+ e.message) } }, @@ -1279,283 +1357,283 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryRawContractStateRequest({ value, fee, memo }: sendQueryRawContractStateRequestParams): Promise { + async sendMsgIBCSendResponse({ value, fee, memo }: sendMsgIBCSendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRawContractStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgIBCSendResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryRawContractStateRequest({ value: QueryRawContractStateRequest.fromPartial(value) }) + let msg = this.msgIbcsendResponse({ value: MsgIBCSendResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryRawContractStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgInstantiateContract({ value, fee, memo }: sendMsgInstantiateContractParams): Promise { + async sendMaxFundsLimit({ value, fee, memo }: sendMaxFundsLimitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgInstantiateContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMaxFundsLimit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgInstantiateContract({ value: MsgInstantiateContract.fromPartial(value) }) + let msg = this.maxFundsLimit({ value: MaxFundsLimit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgInstantiateContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMaxFundsLimit: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSudoContractResponse({ value, fee, memo }: sendMsgSudoContractResponseParams): Promise { + async sendQueryContractHistoryRequest({ value, fee, memo }: sendQueryContractHistoryRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSudoContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractHistoryRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSudoContractResponse({ value: MsgSudoContractResponse.fromPartial(value) }) + let msg = this.queryContractHistoryRequest({ value: QueryContractHistoryRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSudoContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractHistoryRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAllowAllMessagesFilter({ value, fee, memo }: sendAllowAllMessagesFilterParams): Promise { + async sendMsgPinCodesResponse({ value, fee, memo }: sendMsgPinCodesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAllowAllMessagesFilter: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPinCodesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.allowAllMessagesFilter({ value: AllowAllMessagesFilter.fromPartial(value) }) + let msg = this.msgPinCodesResponse({ value: MsgPinCodesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAllowAllMessagesFilter: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPinCodesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveCodeUploadParamsAddresses({ value, fee, memo }: sendMsgRemoveCodeUploadParamsAddressesParams): Promise { + async sendMsgIBCCloseChannel({ value, fee, memo }: sendMsgIBCCloseChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddresses: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgIBCCloseChannel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveCodeUploadParamsAddresses({ value: MsgRemoveCodeUploadParamsAddresses.fromPartial(value) }) + let msg = this.msgIbccloseChannel({ value: MsgIBCCloseChannel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddresses: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCCloseChannel: Could not broadcast Tx: '+ e.message) } }, - async sendMigrateContractProposal({ value, fee, memo }: sendMigrateContractProposalParams): Promise { + async sendMaxCallsLimit({ value, fee, memo }: sendMaxCallsLimitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMigrateContractProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMaxCallsLimit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.migrateContractProposal({ value: MigrateContractProposal.fromPartial(value) }) + let msg = this.maxCallsLimit({ value: MaxCallsLimit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMigrateContractProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMaxCallsLimit: Could not broadcast Tx: '+ e.message) } }, - async sendExecuteContractProposal({ value, fee, memo }: sendExecuteContractProposalParams): Promise { + async sendQueryBuildAddressRequest({ value, fee, memo }: sendQueryBuildAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendExecuteContractProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBuildAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.executeContractProposal({ value: ExecuteContractProposal.fromPartial(value) }) + let msg = this.queryBuildAddressRequest({ value: QueryBuildAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendExecuteContractProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBuildAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSend({ value, fee, memo }: sendMsgIBCSendParams): Promise { + async sendMsgUpdateContractLabelResponse({ value, fee, memo }: sendMsgUpdateContractLabelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSend: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateContractLabelResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgIbcsend({ value: MsgIBCSend.fromPartial(value) }) + let msg = this.msgUpdateContractLabelResponse({ value: MsgUpdateContractLabelResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgIBCSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateContractLabelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecuteContract({ value, fee, memo }: sendMsgExecuteContractParams): Promise { + async sendQueryCodesResponse({ value, fee, memo }: sendQueryCodesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecuteContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCodesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecuteContract({ value: MsgExecuteContract.fromPartial(value) }) + let msg = this.queryCodesResponse({ value: QueryCodesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecuteContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCodesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAcceptedMessageKeysFilter({ value, fee, memo }: sendAcceptedMessageKeysFilterParams): Promise { + async sendMsgStoreCodeResponse({ value, fee, memo }: sendMsgStoreCodeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAcceptedMessageKeysFilter: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreCodeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.acceptedMessageKeysFilter({ value: AcceptedMessageKeysFilter.fromPartial(value) }) + let msg = this.msgStoreCodeResponse({ value: MsgStoreCodeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAcceptedMessageKeysFilter: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreCodeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractsByCodeRequest({ value, fee, memo }: sendQueryContractsByCodeRequestParams): Promise { + async sendMsgUpdateAdmin({ value, fee, memo }: sendMsgUpdateAdminParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractsByCodeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateAdmin: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractsByCodeRequest({ value: QueryContractsByCodeRequest.fromPartial(value) }) + let msg = this.msgUpdateAdmin({ value: MsgUpdateAdmin.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractsByCodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateAdmin: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddCodeUploadParamsAddresses({ value, fee, memo }: sendMsgAddCodeUploadParamsAddressesParams): Promise { + async sendInstantiateContract2Proposal({ value, fee, memo }: sendInstantiateContract2ProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddCodeUploadParamsAddresses: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendInstantiateContract2Proposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddCodeUploadParamsAddresses({ value: MsgAddCodeUploadParamsAddresses.fromPartial(value) }) + let msg = this.instantiateContract2Proposal({ value: InstantiateContract2Proposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddCodeUploadParamsAddresses: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendInstantiateContract2Proposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateContractLabelResponse({ value, fee, memo }: sendMsgUpdateContractLabelResponseParams): Promise { + async sendQueryContractsByCreatorResponse({ value, fee, memo }: sendQueryContractsByCreatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateContractLabelResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractsByCreatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateContractLabelResponse({ value: MsgUpdateContractLabelResponse.fromPartial(value) }) + let msg = this.queryContractsByCreatorResponse({ value: QueryContractsByCreatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateContractLabelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractsByCreatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendContract({ value, fee, memo }: sendContractParams): Promise { + async sendMsgAddCodeUploadParamsAddresses({ value, fee, memo }: sendMsgAddCodeUploadParamsAddressesParams): Promise { if (!signer) { - throw new Error('TxClient:sendContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddCodeUploadParamsAddresses: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contract({ value: Contract.fromPartial(value) }) + let msg = this.msgAddCodeUploadParamsAddresses({ value: MsgAddCodeUploadParamsAddresses.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddCodeUploadParamsAddresses: Could not broadcast Tx: '+ e.message) } }, - async sendCodeInfo({ value, fee, memo }: sendCodeInfoParams): Promise { + async sendContractInfo({ value, fee, memo }: sendContractInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendCodeInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContractInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.codeInfo({ value: CodeInfo.fromPartial(value) }) + let msg = this.contractInfo({ value: ContractInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCodeInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContractInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractHistoryResponse({ value, fee, memo }: sendQueryContractHistoryResponseParams): Promise { + async sendStoreCodeProposal({ value, fee, memo }: sendStoreCodeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractHistoryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStoreCodeProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractHistoryResponse({ value: QueryContractHistoryResponse.fromPartial(value) }) + let msg = this.storeCodeProposal({ value: StoreCodeProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractHistoryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStoreCodeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendCodeGrant({ value, fee, memo }: sendCodeGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCodeGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.codeGrant({ value: CodeGrant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCodeGrant: Could not broadcast Tx: '+ e.message) } }, - async sendMsgStoreAndInstantiateContract({ value, fee, memo }: sendMsgStoreAndInstantiateContractParams): Promise { + async sendMsgUpdateAdminResponse({ value, fee, memo }: sendMsgUpdateAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgStoreAndInstantiateContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreAndInstantiateContract({ value: MsgStoreAndInstantiateContract.fromPartial(value) }) + let msg = this.msgUpdateAdminResponse({ value: MsgUpdateAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgStoreAndInstantiateContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCodesRequest({ value, fee, memo }: sendQueryCodesRequestParams): Promise { + async sendCombinedLimit({ value, fee, memo }: sendCombinedLimitParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCodesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCombinedLimit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCodesRequest({ value: QueryCodesRequest.fromPartial(value) }) + let msg = this.combinedLimit({ value: CombinedLimit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCodesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCombinedLimit: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCCloseChannel({ value, fee, memo }: sendMsgIBCCloseChannelParams): Promise { + async sendMsgStoreAndMigrateContract({ value, fee, memo }: sendMsgStoreAndMigrateContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCCloseChannel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreAndMigrateContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgIbccloseChannel({ value: MsgIBCCloseChannel.fromPartial(value) }) + let msg = this.msgStoreAndMigrateContract({ value: MsgStoreAndMigrateContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgIBCCloseChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreAndMigrateContract: Could not broadcast Tx: '+ e.message) } }, @@ -1573,549 +1651,549 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgInstantiateContract2Response({ value, fee, memo }: sendMsgInstantiateContract2ResponseParams): Promise { + async sendMsgIBCSend({ value, fee, memo }: sendMsgIBCSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgInstantiateContract2Response: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgIBCSend: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgInstantiateContract2Response({ value: MsgInstantiateContract2Response.fromPartial(value) }) + let msg = this.msgIbcsend({ value: MsgIBCSend.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgInstantiateContract2Response: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSend: Could not broadcast Tx: '+ e.message) } }, - async sendMsgMigrateContractResponse({ value, fee, memo }: sendMsgMigrateContractResponseParams): Promise { + async sendPinCodesProposal({ value, fee, memo }: sendPinCodesProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgMigrateContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPinCodesProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgMigrateContractResponse({ value: MsgMigrateContractResponse.fromPartial(value) }) + let msg = this.pinCodesProposal({ value: PinCodesProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgMigrateContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPinCodesProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgStoreAndInstantiateContractResponse({ value, fee, memo }: sendMsgStoreAndInstantiateContractResponseParams): Promise { + async sendMsgUnpinCodesResponse({ value, fee, memo }: sendMsgUnpinCodesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgStoreAndInstantiateContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUnpinCodesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreAndInstantiateContractResponse({ value: MsgStoreAndInstantiateContractResponse.fromPartial(value) }) + let msg = this.msgUnpinCodesResponse({ value: MsgUnpinCodesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgStoreAndInstantiateContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnpinCodesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPinCodesProposal({ value, fee, memo }: sendPinCodesProposalParams): Promise { + async sendAcceptedMessagesFilter({ value, fee, memo }: sendAcceptedMessagesFilterParams): Promise { if (!signer) { - throw new Error('TxClient:sendPinCodesProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAcceptedMessagesFilter: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.pinCodesProposal({ value: PinCodesProposal.fromPartial(value) }) + let msg = this.acceptedMessagesFilter({ value: AcceptedMessagesFilter.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPinCodesProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAcceptedMessagesFilter: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllContractStateResponse({ value, fee, memo }: sendQueryAllContractStateResponseParams): Promise { + async sendContract({ value, fee, memo }: sendContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllContractStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllContractStateResponse({ value: QueryAllContractStateResponse.fromPartial(value) }) + let msg = this.contract({ value: Contract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllContractStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContract: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveCodeUploadParamsAddressesResponse({ value, fee, memo }: sendMsgRemoveCodeUploadParamsAddressesResponseParams): Promise { + async sendMsgInstantiateContract2Response({ value, fee, memo }: sendMsgInstantiateContract2ResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddressesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgInstantiateContract2Response: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveCodeUploadParamsAddressesResponse({ value: MsgRemoveCodeUploadParamsAddressesResponse.fromPartial(value) }) + let msg = this.msgInstantiateContract2Response({ value: MsgInstantiateContract2Response.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddressesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgInstantiateContract2Response: Could not broadcast Tx: '+ e.message) } }, - async sendInstantiateContract2Proposal({ value, fee, memo }: sendInstantiateContract2ProposalParams): Promise { + async sendQueryContractInfoRequest({ value, fee, memo }: sendQueryContractInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendInstantiateContract2Proposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractInfoRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.instantiateContract2Proposal({ value: InstantiateContract2Proposal.fromPartial(value) }) + let msg = this.queryContractInfoRequest({ value: QueryContractInfoRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendInstantiateContract2Proposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAccessConfig({ value, fee, memo }: sendAccessConfigParams): Promise { + async sendQueryAllContractStateResponse({ value, fee, memo }: sendQueryAllContractStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAccessConfig: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllContractStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.accessConfig({ value: AccessConfig.fromPartial(value) }) + let msg = this.queryAllContractStateResponse({ value: QueryAllContractStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAccessConfig: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllContractStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMaxCallsLimit({ value, fee, memo }: sendMaxCallsLimitParams): Promise { + async sendQueryCodesRequest({ value, fee, memo }: sendQueryCodesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMaxCallsLimit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCodesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.maxCallsLimit({ value: MaxCallsLimit.fromPartial(value) }) + let msg = this.queryCodesRequest({ value: QueryCodesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMaxCallsLimit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCodesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMaxFundsLimit({ value, fee, memo }: sendMaxFundsLimitParams): Promise { + async sendMsgAddCodeUploadParamsAddressesResponse({ value, fee, memo }: sendMsgAddCodeUploadParamsAddressesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMaxFundsLimit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddCodeUploadParamsAddressesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.maxFundsLimit({ value: MaxFundsLimit.fromPartial(value) }) + let msg = this.msgAddCodeUploadParamsAddressesResponse({ value: MsgAddCodeUploadParamsAddressesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMaxFundsLimit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddCodeUploadParamsAddressesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCodesResponse({ value, fee, memo }: sendQueryCodesResponseParams): Promise { + async sendMsgMigrateContract({ value, fee, memo }: sendMsgMigrateContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCodesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgMigrateContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCodesResponse({ value: QueryCodesResponse.fromPartial(value) }) + let msg = this.msgMigrateContract({ value: MsgMigrateContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCodesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgMigrateContract: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendMsgClearAdminResponse({ value, fee, memo }: sendMsgClearAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgClearAdminResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.msgClearAdminResponse({ value: MsgClearAdminResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgClearAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCodeGrant({ value, fee, memo }: sendCodeGrantParams): Promise { + async sendMsgStoreAndInstantiateContract({ value, fee, memo }: sendMsgStoreAndInstantiateContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendCodeGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreAndInstantiateContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.codeGrant({ value: CodeGrant.fromPartial(value) }) + let msg = this.msgStoreAndInstantiateContract({ value: MsgStoreAndInstantiateContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCodeGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreAndInstantiateContract: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySmartContractStateRequest({ value, fee, memo }: sendQuerySmartContractStateRequestParams): Promise { + async sendContractCodeHistoryEntry({ value, fee, memo }: sendContractCodeHistoryEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySmartContractStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContractCodeHistoryEntry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySmartContractStateRequest({ value: QuerySmartContractStateRequest.fromPartial(value) }) + let msg = this.contractCodeHistoryEntry({ value: ContractCodeHistoryEntry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySmartContractStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContractCodeHistoryEntry: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractsByCodeResponse({ value, fee, memo }: sendQueryContractsByCodeResponseParams): Promise { + async sendContractExecutionAuthorization({ value, fee, memo }: sendContractExecutionAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractsByCodeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContractExecutionAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractsByCodeResponse({ value: QueryContractsByCodeResponse.fromPartial(value) }) + let msg = this.contractExecutionAuthorization({ value: ContractExecutionAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractsByCodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContractExecutionAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendContractCodeHistoryEntry({ value, fee, memo }: sendContractCodeHistoryEntryParams): Promise { + async sendQueryContractsByCreatorRequest({ value, fee, memo }: sendQueryContractsByCreatorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendContractCodeHistoryEntry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractsByCreatorRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contractCodeHistoryEntry({ value: ContractCodeHistoryEntry.fromPartial(value) }) + let msg = this.queryContractsByCreatorRequest({ value: QueryContractsByCreatorRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContractCodeHistoryEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractsByCreatorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAccessConfigUpdate({ value, fee, memo }: sendAccessConfigUpdateParams): Promise { + async sendQueryCodeRequest({ value, fee, memo }: sendQueryCodeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAccessConfigUpdate: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCodeRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.accessConfigUpdate({ value: AccessConfigUpdate.fromPartial(value) }) + let msg = this.queryCodeRequest({ value: QueryCodeRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAccessConfigUpdate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCodeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendContractMigrationAuthorization({ value, fee, memo }: sendContractMigrationAuthorizationParams): Promise { + async sendMsgClearAdmin({ value, fee, memo }: sendMsgClearAdminParams): Promise { if (!signer) { - throw new Error('TxClient:sendContractMigrationAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgClearAdmin: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.contractMigrationAuthorization({ value: ContractMigrationAuthorization.fromPartial(value) }) + let msg = this.msgClearAdmin({ value: MsgClearAdmin.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendContractMigrationAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgClearAdmin: Could not broadcast Tx: '+ e.message) } }, - async sendAcceptedMessagesFilter({ value, fee, memo }: sendAcceptedMessagesFilterParams): Promise { + async sendMsgRemoveCodeUploadParamsAddressesResponse({ value, fee, memo }: sendMsgRemoveCodeUploadParamsAddressesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAcceptedMessagesFilter: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddressesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.acceptedMessagesFilter({ value: AcceptedMessagesFilter.fromPartial(value) }) + let msg = this.msgRemoveCodeUploadParamsAddressesResponse({ value: MsgRemoveCodeUploadParamsAddressesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAcceptedMessagesFilter: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveCodeUploadParamsAddressesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCodeInfoResponse({ value, fee, memo }: sendCodeInfoResponseParams): Promise { + async sendSequence({ value, fee, memo }: sendSequenceParams): Promise { if (!signer) { - throw new Error('TxClient:sendCodeInfoResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSequence: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.codeInfoResponse({ value: CodeInfoResponse.fromPartial(value) }) + let msg = this.sequence({ value: Sequence.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCodeInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSequence: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPinnedCodesRequest({ value, fee, memo }: sendQueryPinnedCodesRequestParams): Promise { + async sendMsgStoreAndMigrateContractResponse({ value, fee, memo }: sendMsgStoreAndMigrateContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPinnedCodesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreAndMigrateContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPinnedCodesRequest({ value: QueryPinnedCodesRequest.fromPartial(value) }) + let msg = this.msgStoreAndMigrateContractResponse({ value: MsgStoreAndMigrateContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPinnedCodesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreAndMigrateContractResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecuteContractResponse({ value, fee, memo }: sendMsgExecuteContractResponseParams): Promise { + async sendAbsoluteTxPosition({ value, fee, memo }: sendAbsoluteTxPositionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecuteContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAbsoluteTxPosition: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgExecuteContractResponse({ value: MsgExecuteContractResponse.fromPartial(value) }) + let msg = this.absoluteTxPosition({ value: AbsoluteTxPosition.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgExecuteContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAbsoluteTxPosition: Could not broadcast Tx: '+ e.message) } }, - async sendModel({ value, fee, memo }: sendModelParams): Promise { + async sendMsgMigrateContractResponse({ value, fee, memo }: sendMsgMigrateContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgMigrateContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.model({ value: Model.fromPartial(value) }) + let msg = this.msgMigrateContractResponse({ value: MsgMigrateContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendModel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgMigrateContractResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAccessTypeParam({ value, fee, memo }: sendAccessTypeParamParams): Promise { + async sendContractMigrationAuthorization({ value, fee, memo }: sendContractMigrationAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendAccessTypeParam: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContractMigrationAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.accessTypeParam({ value: AccessTypeParam.fromPartial(value) }) + let msg = this.contractMigrationAuthorization({ value: ContractMigrationAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAccessTypeParam: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContractMigrationAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractsByCreatorRequest({ value, fee, memo }: sendQueryContractsByCreatorRequestParams): Promise { + async sendCode({ value, fee, memo }: sendCodeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractsByCreatorRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCode: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractsByCreatorRequest({ value: QueryContractsByCreatorRequest.fromPartial(value) }) + let msg = this.code({ value: Code.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractsByCreatorRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCode: Could not broadcast Tx: '+ e.message) } }, - async sendInstantiateContractProposal({ value, fee, memo }: sendInstantiateContractProposalParams): Promise { + async sendQueryContractInfoResponse({ value, fee, memo }: sendQueryContractInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendInstantiateContractProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.instantiateContractProposal({ value: InstantiateContractProposal.fromPartial(value) }) + let msg = this.queryContractInfoResponse({ value: QueryContractInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendInstantiateContractProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateInstantiateConfig({ value, fee, memo }: sendMsgUpdateInstantiateConfigParams): Promise { + async sendQueryContractHistoryResponse({ value, fee, memo }: sendQueryContractHistoryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateInstantiateConfig: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryContractHistoryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateInstantiateConfig({ value: MsgUpdateInstantiateConfig.fromPartial(value) }) + let msg = this.queryContractHistoryResponse({ value: QueryContractHistoryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateInstantiateConfig: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryContractHistoryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendUpdateAdminProposal({ value, fee, memo }: sendUpdateAdminProposalParams): Promise { + async sendMsgExecuteContract({ value, fee, memo }: sendMsgExecuteContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpdateAdminProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgExecuteContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.updateAdminProposal({ value: UpdateAdminProposal.fromPartial(value) }) + let msg = this.msgExecuteContract({ value: MsgExecuteContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUpdateAdminProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecuteContract: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgUnpinCodes({ value, fee, memo }: sendMsgUnpinCodesParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUnpinCodes: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.msgUnpinCodes({ value: MsgUnpinCodes.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnpinCodes: Could not broadcast Tx: '+ e.message) } }, - async sendMsgStoreAndMigrateContractResponse({ value, fee, memo }: sendMsgStoreAndMigrateContractResponseParams): Promise { + async sendMsgStoreAndInstantiateContractResponse({ value, fee, memo }: sendMsgStoreAndInstantiateContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgStoreAndMigrateContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreAndInstantiateContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreAndMigrateContractResponse({ value: MsgStoreAndMigrateContractResponse.fromPartial(value) }) + let msg = this.msgStoreAndInstantiateContractResponse({ value: MsgStoreAndInstantiateContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgStoreAndMigrateContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreAndInstantiateContractResponse: Could not broadcast Tx: '+ e.message) } }, - async sendSudoContractProposal({ value, fee, memo }: sendSudoContractProposalParams): Promise { + async sendStoreCodeAuthorization({ value, fee, memo }: sendStoreCodeAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendSudoContractProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStoreCodeAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.sudoContractProposal({ value: SudoContractProposal.fromPartial(value) }) + let msg = this.storeCodeAuthorization({ value: StoreCodeAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSudoContractProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStoreCodeAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCodeRequest({ value, fee, memo }: sendQueryCodeRequestParams): Promise { + async sendQueryCodeResponse({ value, fee, memo }: sendQueryCodeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCodeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCodeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCodeRequest({ value: QueryCodeRequest.fromPartial(value) }) + let msg = this.queryCodeResponse({ value: QueryCodeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCodeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCode({ value, fee, memo }: sendCodeParams): Promise { + async sendMsgInstantiateContract({ value, fee, memo }: sendMsgInstantiateContractParams): Promise { if (!signer) { - throw new Error('TxClient:sendCode: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgInstantiateContract: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.code({ value: Code.fromPartial(value) }) + let msg = this.msgInstantiateContract({ value: MsgInstantiateContract.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCode: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgInstantiateContract: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractInfoRequest({ value, fee, memo }: sendQueryContractInfoRequestParams): Promise { + async sendMsgStoreCode({ value, fee, memo }: sendMsgStoreCodeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractInfoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgStoreCode: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractInfoRequest({ value: QueryContractInfoRequest.fromPartial(value) }) + let msg = this.msgStoreCode({ value: MsgStoreCode.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgStoreCode: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUnpinCodes({ value, fee, memo }: sendMsgUnpinCodesParams): Promise { + async sendUpdateInstantiateConfigProposal({ value, fee, memo }: sendUpdateInstantiateConfigProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUnpinCodes: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUpdateInstantiateConfigProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUnpinCodes({ value: MsgUnpinCodes.fromPartial(value) }) + let msg = this.updateInstantiateConfigProposal({ value: UpdateInstantiateConfigProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUnpinCodes: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpdateInstantiateConfigProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgInstantiateContract2({ value, fee, memo }: sendMsgInstantiateContract2Params): Promise { + async sendAccessConfigUpdate({ value, fee, memo }: sendAccessConfigUpdateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgInstantiateContract2: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAccessConfigUpdate: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgInstantiateContract2({ value: MsgInstantiateContract2.fromPartial(value) }) + let msg = this.accessConfigUpdate({ value: AccessConfigUpdate.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgInstantiateContract2: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAccessConfigUpdate: Could not broadcast Tx: '+ e.message) } }, - async sendClearAdminProposal({ value, fee, memo }: sendClearAdminProposalParams): Promise { + async sendQueryPinnedCodesRequest({ value, fee, memo }: sendQueryPinnedCodesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendClearAdminProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPinnedCodesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.clearAdminProposal({ value: ClearAdminProposal.fromPartial(value) }) + let msg = this.queryPinnedCodesRequest({ value: QueryPinnedCodesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendClearAdminProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPinnedCodesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPinCodes({ value, fee, memo }: sendMsgPinCodesParams): Promise { + async sendAllowAllMessagesFilter({ value, fee, memo }: sendAllowAllMessagesFilterParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPinCodes: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAllowAllMessagesFilter: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPinCodes({ value: MsgPinCodes.fromPartial(value) }) + let msg = this.allowAllMessagesFilter({ value: AllowAllMessagesFilter.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPinCodes: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAllowAllMessagesFilter: Could not broadcast Tx: '+ e.message) } }, - async sendQueryContractsByCreatorResponse({ value, fee, memo }: sendQueryContractsByCreatorResponseParams): Promise { + async sendMsgInstantiateContractResponse({ value, fee, memo }: sendMsgInstantiateContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryContractsByCreatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgInstantiateContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryContractsByCreatorResponse({ value: QueryContractsByCreatorResponse.fromPartial(value) }) + let msg = this.msgInstantiateContractResponse({ value: MsgInstantiateContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryContractsByCreatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgInstantiateContractResponse: Could not broadcast Tx: '+ e.message) } }, @@ -2133,269 +2211,269 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgSudoContract({ value, fee, memo }: sendMsgSudoContractParams): Promise { + async sendMsgSudoContractResponse({ value, fee, memo }: sendMsgSudoContractResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSudoContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSudoContractResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSudoContract({ value: MsgSudoContract.fromPartial(value) }) + let msg = this.msgSudoContractResponse({ value: MsgSudoContractResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSudoContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSudoContractResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgStoreCode({ value, fee, memo }: sendMsgStoreCodeParams): Promise { + async sendStoreAndInstantiateContractProposal({ value, fee, memo }: sendStoreAndInstantiateContractProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgStoreCode: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStoreAndInstantiateContractProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreCode({ value: MsgStoreCode.fromPartial(value) }) + let msg = this.storeAndInstantiateContractProposal({ value: StoreAndInstantiateContractProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgStoreCode: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStoreAndInstantiateContractProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgClearAdmin({ value, fee, memo }: sendMsgClearAdminParams): Promise { + async sendExecuteContractProposal({ value, fee, memo }: sendExecuteContractProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgClearAdmin: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendExecuteContractProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgClearAdmin({ value: MsgClearAdmin.fromPartial(value) }) + let msg = this.executeContractProposal({ value: ExecuteContractProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgClearAdmin: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendExecuteContractProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPinCodesResponse({ value, fee, memo }: sendMsgPinCodesResponseParams): Promise { + async sendContractGrant({ value, fee, memo }: sendContractGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPinCodesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendContractGrant: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPinCodesResponse({ value: MsgPinCodesResponse.fromPartial(value) }) + let msg = this.contractGrant({ value: ContractGrant.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPinCodesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContractGrant: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendSudoContractProposal({ value, fee, memo }: sendSudoContractProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSudoContractProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.sudoContractProposal({ value: SudoContractProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSudoContractProposal: Could not broadcast Tx: '+ e.message) } }, - async sendStoreCodeAuthorization({ value, fee, memo }: sendStoreCodeAuthorizationParams): Promise { + async sendClearAdminProposal({ value, fee, memo }: sendClearAdminProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendStoreCodeAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendClearAdminProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.storeCodeAuthorization({ value: StoreCodeAuthorization.fromPartial(value) }) + let msg = this.clearAdminProposal({ value: ClearAdminProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStoreCodeAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClearAdminProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCodeResponse({ value, fee, memo }: sendQueryCodeResponseParams): Promise { + async sendUnpinCodesProposal({ value, fee, memo }: sendUnpinCodesProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCodeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUnpinCodesProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCodeResponse({ value: QueryCodeResponse.fromPartial(value) }) + let msg = this.unpinCodesProposal({ value: UnpinCodesProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUnpinCodesProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddCodeUploadParamsAddressesResponse({ value, fee, memo }: sendMsgAddCodeUploadParamsAddressesResponseParams): Promise { + async sendQuerySmartContractStateResponse({ value, fee, memo }: sendQuerySmartContractStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddCodeUploadParamsAddressesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySmartContractStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddCodeUploadParamsAddressesResponse({ value: MsgAddCodeUploadParamsAddressesResponse.fromPartial(value) }) + let msg = this.querySmartContractStateResponse({ value: QuerySmartContractStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddCodeUploadParamsAddressesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySmartContractStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCombinedLimit({ value, fee, memo }: sendCombinedLimitParams): Promise { + async sendCodeInfoResponse({ value, fee, memo }: sendCodeInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCombinedLimit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCodeInfoResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.combinedLimit({ value: CombinedLimit.fromPartial(value) }) + let msg = this.codeInfoResponse({ value: CodeInfoResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCombinedLimit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCodeInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySmartContractStateResponse({ value, fee, memo }: sendQuerySmartContractStateResponseParams): Promise { + async sendAccessConfig({ value, fee, memo }: sendAccessConfigParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySmartContractStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAccessConfig: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySmartContractStateResponse({ value: QuerySmartContractStateResponse.fromPartial(value) }) + let msg = this.accessConfig({ value: AccessConfig.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySmartContractStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAccessConfig: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUnpinCodesResponse({ value, fee, memo }: sendMsgUnpinCodesResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUnpinCodesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUnpinCodesResponse({ value: MsgUnpinCodesResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUnpinCodesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendUpdateInstantiateConfigProposal({ value, fee, memo }: sendUpdateInstantiateConfigProposalParams): Promise { + async sendMigrateContractProposal({ value, fee, memo }: sendMigrateContractProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpdateInstantiateConfigProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMigrateContractProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.updateInstantiateConfigProposal({ value: UpdateInstantiateConfigProposal.fromPartial(value) }) + let msg = this.migrateContractProposal({ value: MigrateContractProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUpdateInstantiateConfigProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMigrateContractProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgMigrateContract({ value, fee, memo }: sendMsgMigrateContractParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgMigrateContract: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgMigrateContract({ value: MsgMigrateContract.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgMigrateContract: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateAdmin({ value, fee, memo }: sendMsgUpdateAdminParams): Promise { + async sendQueryRawContractStateRequest({ value, fee, memo }: sendQueryRawContractStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateAdmin: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryRawContractStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateAdmin({ value: MsgUpdateAdmin.fromPartial(value) }) + let msg = this.queryRawContractStateRequest({ value: QueryRawContractStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateAdmin: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRawContractStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgInstantiateContractResponse({ value, fee, memo }: sendMsgInstantiateContractResponseParams): Promise { + async sendQueryBuildAddressResponse({ value, fee, memo }: sendQueryBuildAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgInstantiateContractResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryBuildAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgInstantiateContractResponse({ value: MsgInstantiateContractResponse.fromPartial(value) }) + let msg = this.queryBuildAddressResponse({ value: QueryBuildAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgInstantiateContractResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBuildAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgClearAdminResponse({ value, fee, memo }: sendMsgClearAdminResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgClearAdminResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgClearAdminResponse({ value: MsgClearAdminResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgClearAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendSequence({ value, fee, memo }: sendSequenceParams): Promise { + async sendInstantiateContractProposal({ value, fee, memo }: sendInstantiateContractProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendSequence: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendInstantiateContractProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.sequence({ value: Sequence.fromPartial(value) }) + let msg = this.instantiateContractProposal({ value: InstantiateContractProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSequence: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendInstantiateContractProposal: Could not broadcast Tx: '+ e.message) } }, - async sendStoreCodeProposal({ value, fee, memo }: sendStoreCodeProposalParams): Promise { + async sendUpdateAdminProposal({ value, fee, memo }: sendUpdateAdminProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendStoreCodeProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUpdateAdminProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.storeCodeProposal({ value: StoreCodeProposal.fromPartial(value) }) + let msg = this.updateAdminProposal({ value: UpdateAdminProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStoreCodeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpdateAdminProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryRawContractStateResponse({ value, fee, memo }: sendQueryRawContractStateResponseParams): Promise { + async sendQuerySmartContractStateRequest({ value, fee, memo }: sendQuerySmartContractStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRawContractStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySmartContractStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryRawContractStateResponse({ value: QueryRawContractStateResponse.fromPartial(value) }) + let msg = this.querySmartContractStateRequest({ value: QuerySmartContractStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryRawContractStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySmartContractStateRequest: Could not broadcast Tx: '+ e.message) } }, @@ -2413,96 +2491,92 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + + msgInstantiateContract2({ value }: msgInstantiateContract2Params): EncodeObject { + try { + return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2", value: MsgInstantiateContract2.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgInstantiateContract2: Could not create message: ' + e.message) } }, - async sendMsgStoreCodeResponse({ value, fee, memo }: sendMsgStoreCodeResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgStoreCodeResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgStoreCodeResponse({ value: MsgStoreCodeResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + codeInfo({ value }: codeInfoParams): EncodeObject { + try { + return { typeUrl: "/cosmwasm.wasm.v1.CodeInfo", value: CodeInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendMsgStoreCodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:CodeInfo: Could not create message: ' + e.message) } }, + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmwasm.wasm.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + } + }, - msgStoreAndMigrateContract({ value }: msgStoreAndMigrateContractParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract", value: MsgStoreAndMigrateContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreAndMigrateContract: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgUpdateAdminResponse({ value }: msgUpdateAdminResponseParams): EncodeObject { + queryContractsByCodeRequest({ value }: queryContractsByCodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse", value: MsgUpdateAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeRequest", value: QueryContractsByCodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractsByCodeRequest: Could not create message: ' + e.message) } }, - unpinCodesProposal({ value }: unpinCodesProposalParams): EncodeObject { + queryContractsByCodeResponse({ value }: queryContractsByCodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal", value: UnpinCodesProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeResponse", value: QueryContractsByCodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UnpinCodesProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractsByCodeResponse: Could not create message: ' + e.message) } }, - contractInfo({ value }: contractInfoParams): EncodeObject { + msgRemoveCodeUploadParamsAddresses({ value }: msgRemoveCodeUploadParamsAddressesParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ContractInfo", value: ContractInfo.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses", value: MsgRemoveCodeUploadParamsAddresses.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContractInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveCodeUploadParamsAddresses: Could not create message: ' + e.message) } }, - queryContractHistoryRequest({ value }: queryContractHistoryRequestParams): EncodeObject { + acceptedMessageKeysFilter({ value }: acceptedMessageKeysFilterParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryRequest", value: QueryContractHistoryRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter", value: AcceptedMessageKeysFilter.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractHistoryRequest: Could not create message: ' + e.message) + throw new Error('TxClient:AcceptedMessageKeysFilter: Could not create message: ' + e.message) } }, - contractExecutionAuthorization({ value }: contractExecutionAuthorizationParams): EncodeObject { + queryRawContractStateResponse({ value }: queryRawContractStateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization", value: ContractExecutionAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateResponse", value: QueryRawContractStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContractExecutionAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:QueryRawContractStateResponse: Could not create message: ' + e.message) } }, - contractGrant({ value }: contractGrantParams): EncodeObject { + accessTypeParam({ value }: accessTypeParamParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ContractGrant", value: ContractGrant.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AccessTypeParam", value: AccessTypeParam.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContractGrant: Could not create message: ' + e.message) + throw new Error('TxClient:AccessTypeParam: Could not create message: ' + e.message) } }, - queryContractInfoResponse({ value }: queryContractInfoResponseParams): EncodeObject { + model({ value }: modelParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoResponse", value: QueryContractInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.Model", value: Model.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Model: Could not create message: ' + e.message) } }, @@ -2514,27 +2588,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgIbcsendResponse({ value }: msgIbcsendResponseParams): EncodeObject { + msgExecuteContractResponse({ value }: msgExecuteContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCSendResponse", value: MsgIBCSendResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse", value: MsgExecuteContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSendResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecuteContractResponse: Could not create message: ' + e.message) } }, - storeAndInstantiateContractProposal({ value }: storeAndInstantiateContractProposalParams): EncodeObject { + msgUpdateInstantiateConfig({ value }: msgUpdateInstantiateConfigParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal", value: StoreAndInstantiateContractProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig", value: MsgUpdateInstantiateConfig.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StoreAndInstantiateContractProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateInstantiateConfig: Could not create message: ' + e.message) } }, - absoluteTxPosition({ value }: absoluteTxPositionParams): EncodeObject { + msgSudoContract({ value }: msgSudoContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AbsoluteTxPosition", value: AbsoluteTxPosition.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract", value: MsgSudoContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AbsoluteTxPosition: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSudoContract: Could not create message: ' + e.message) + } + }, + + msgPinCodes({ value }: msgPinCodesParams): EncodeObject { + try { + return { typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes", value: MsgPinCodes.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgPinCodes: Could not create message: ' + e.message) } }, @@ -2546,163 +2628,163 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryRawContractStateRequest({ value }: queryRawContractStateRequestParams): EncodeObject { + msgIbcsendResponse({ value }: msgIbcsendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateRequest", value: QueryRawContractStateRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCSendResponse", value: MsgIBCSendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRawContractStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSendResponse: Could not create message: ' + e.message) } }, - msgInstantiateContract({ value }: msgInstantiateContractParams): EncodeObject { + maxFundsLimit({ value }: maxFundsLimitParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract", value: MsgInstantiateContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit", value: MaxFundsLimit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgInstantiateContract: Could not create message: ' + e.message) + throw new Error('TxClient:MaxFundsLimit: Could not create message: ' + e.message) } }, - msgSudoContractResponse({ value }: msgSudoContractResponseParams): EncodeObject { + queryContractHistoryRequest({ value }: queryContractHistoryRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse", value: MsgSudoContractResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryRequest", value: QueryContractHistoryRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSudoContractResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractHistoryRequest: Could not create message: ' + e.message) } }, - allowAllMessagesFilter({ value }: allowAllMessagesFilterParams): EncodeObject { + msgPinCodesResponse({ value }: msgPinCodesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter", value: AllowAllMessagesFilter.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse", value: MsgPinCodesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AllowAllMessagesFilter: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPinCodesResponse: Could not create message: ' + e.message) } }, - msgRemoveCodeUploadParamsAddresses({ value }: msgRemoveCodeUploadParamsAddressesParams): EncodeObject { + msgIbccloseChannel({ value }: msgIbccloseChannelParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses", value: MsgRemoveCodeUploadParamsAddresses.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCCloseChannel", value: MsgIBCCloseChannel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveCodeUploadParamsAddresses: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCCloseChannel: Could not create message: ' + e.message) } }, - migrateContractProposal({ value }: migrateContractProposalParams): EncodeObject { + maxCallsLimit({ value }: maxCallsLimitParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal", value: MigrateContractProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit", value: MaxCallsLimit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MigrateContractProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MaxCallsLimit: Could not create message: ' + e.message) } }, - executeContractProposal({ value }: executeContractProposalParams): EncodeObject { + queryBuildAddressRequest({ value }: queryBuildAddressRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal", value: ExecuteContractProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressRequest", value: QueryBuildAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ExecuteContractProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBuildAddressRequest: Could not create message: ' + e.message) } }, - msgIbcsend({ value }: msgIbcsendParams): EncodeObject { + msgUpdateContractLabelResponse({ value }: msgUpdateContractLabelResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCSend", value: MsgIBCSend.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse", value: MsgUpdateContractLabelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSend: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateContractLabelResponse: Could not create message: ' + e.message) } }, - msgExecuteContract({ value }: msgExecuteContractParams): EncodeObject { + queryCodesResponse({ value }: queryCodesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract", value: MsgExecuteContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryCodesResponse", value: QueryCodesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecuteContract: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCodesResponse: Could not create message: ' + e.message) } }, - acceptedMessageKeysFilter({ value }: acceptedMessageKeysFilterParams): EncodeObject { + msgStoreCodeResponse({ value }: msgStoreCodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter", value: AcceptedMessageKeysFilter.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse", value: MsgStoreCodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AcceptedMessageKeysFilter: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreCodeResponse: Could not create message: ' + e.message) } }, - queryContractsByCodeRequest({ value }: queryContractsByCodeRequestParams): EncodeObject { + msgUpdateAdmin({ value }: msgUpdateAdminParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeRequest", value: QueryContractsByCodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin", value: MsgUpdateAdmin.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractsByCodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateAdmin: Could not create message: ' + e.message) } }, - msgAddCodeUploadParamsAddresses({ value }: msgAddCodeUploadParamsAddressesParams): EncodeObject { + instantiateContract2Proposal({ value }: instantiateContract2ProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses", value: MsgAddCodeUploadParamsAddresses.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal", value: InstantiateContract2Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddCodeUploadParamsAddresses: Could not create message: ' + e.message) + throw new Error('TxClient:InstantiateContract2Proposal: Could not create message: ' + e.message) } }, - msgUpdateContractLabelResponse({ value }: msgUpdateContractLabelResponseParams): EncodeObject { + queryContractsByCreatorResponse({ value }: queryContractsByCreatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse", value: MsgUpdateContractLabelResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse", value: QueryContractsByCreatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateContractLabelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractsByCreatorResponse: Could not create message: ' + e.message) } }, - contract({ value }: contractParams): EncodeObject { + msgAddCodeUploadParamsAddresses({ value }: msgAddCodeUploadParamsAddressesParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.Contract", value: Contract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses", value: MsgAddCodeUploadParamsAddresses.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Contract: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddCodeUploadParamsAddresses: Could not create message: ' + e.message) } }, - codeInfo({ value }: codeInfoParams): EncodeObject { + contractInfo({ value }: contractInfoParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.CodeInfo", value: CodeInfo.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ContractInfo", value: ContractInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CodeInfo: Could not create message: ' + e.message) + throw new Error('TxClient:ContractInfo: Could not create message: ' + e.message) } }, - queryContractHistoryResponse({ value }: queryContractHistoryResponseParams): EncodeObject { + storeCodeProposal({ value }: storeCodeProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryResponse", value: QueryContractHistoryResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal", value: StoreCodeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractHistoryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:StoreCodeProposal: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + codeGrant({ value }: codeGrantParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.CodeGrant", value: CodeGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:CodeGrant: Could not create message: ' + e.message) } }, - msgStoreAndInstantiateContract({ value }: msgStoreAndInstantiateContractParams): EncodeObject { + msgUpdateAdminResponse({ value }: msgUpdateAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract", value: MsgStoreAndInstantiateContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse", value: MsgUpdateAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreAndInstantiateContract: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateAdminResponse: Could not create message: ' + e.message) } }, - queryCodesRequest({ value }: queryCodesRequestParams): EncodeObject { + combinedLimit({ value }: combinedLimitParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryCodesRequest", value: QueryCodesRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.CombinedLimit", value: CombinedLimit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCodesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:CombinedLimit: Could not create message: ' + e.message) } }, - msgIbccloseChannel({ value }: msgIbccloseChannelParams): EncodeObject { + msgStoreAndMigrateContract({ value }: msgStoreAndMigrateContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCCloseChannel", value: MsgIBCCloseChannel.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract", value: MsgStoreAndMigrateContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCCloseChannel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreAndMigrateContract: Could not create message: ' + e.message) } }, @@ -2714,27 +2796,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgInstantiateContract2Response({ value }: msgInstantiateContract2ResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response", value: MsgInstantiateContract2Response.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgInstantiateContract2Response: Could not create message: ' + e.message) - } - }, - - msgMigrateContractResponse({ value }: msgMigrateContractResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse", value: MsgMigrateContractResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgMigrateContractResponse: Could not create message: ' + e.message) - } - }, - - msgStoreAndInstantiateContractResponse({ value }: msgStoreAndInstantiateContractResponseParams): EncodeObject { + msgIbcsend({ value }: msgIbcsendParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse", value: MsgStoreAndInstantiateContractResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgIBCSend", value: MsgIBCSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreAndInstantiateContractResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSend: Could not create message: ' + e.message) } }, @@ -2746,91 +2812,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryAllContractStateResponse({ value }: queryAllContractStateResponseParams): EncodeObject { + msgUnpinCodesResponse({ value }: msgUnpinCodesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateResponse", value: QueryAllContractStateResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse", value: MsgUnpinCodesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllContractStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnpinCodesResponse: Could not create message: ' + e.message) } }, - msgRemoveCodeUploadParamsAddressesResponse({ value }: msgRemoveCodeUploadParamsAddressesResponseParams): EncodeObject { + acceptedMessagesFilter({ value }: acceptedMessagesFilterParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse", value: MsgRemoveCodeUploadParamsAddressesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter", value: AcceptedMessagesFilter.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveCodeUploadParamsAddressesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AcceptedMessagesFilter: Could not create message: ' + e.message) } }, - instantiateContract2Proposal({ value }: instantiateContract2ProposalParams): EncodeObject { + contract({ value }: contractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal", value: InstantiateContract2Proposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.Contract", value: Contract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:InstantiateContract2Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:Contract: Could not create message: ' + e.message) } }, - accessConfig({ value }: accessConfigParams): EncodeObject { + msgInstantiateContract2Response({ value }: msgInstantiateContract2ResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AccessConfig", value: AccessConfig.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response", value: MsgInstantiateContract2Response.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AccessConfig: Could not create message: ' + e.message) + throw new Error('TxClient:MsgInstantiateContract2Response: Could not create message: ' + e.message) } }, - maxCallsLimit({ value }: maxCallsLimitParams): EncodeObject { + queryContractInfoRequest({ value }: queryContractInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit", value: MaxCallsLimit.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoRequest", value: QueryContractInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MaxCallsLimit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractInfoRequest: Could not create message: ' + e.message) } }, - maxFundsLimit({ value }: maxFundsLimitParams): EncodeObject { + queryAllContractStateResponse({ value }: queryAllContractStateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit", value: MaxFundsLimit.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateResponse", value: QueryAllContractStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MaxFundsLimit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllContractStateResponse: Could not create message: ' + e.message) } }, - queryCodesResponse({ value }: queryCodesResponseParams): EncodeObject { + queryCodesRequest({ value }: queryCodesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryCodesResponse", value: QueryCodesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryCodesRequest", value: QueryCodesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCodesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCodesRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + msgAddCodeUploadParamsAddressesResponse({ value }: msgAddCodeUploadParamsAddressesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse", value: MsgAddCodeUploadParamsAddressesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddCodeUploadParamsAddressesResponse: Could not create message: ' + e.message) } }, - codeGrant({ value }: codeGrantParams): EncodeObject { + msgMigrateContract({ value }: msgMigrateContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.CodeGrant", value: CodeGrant.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract", value: MsgMigrateContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CodeGrant: Could not create message: ' + e.message) + throw new Error('TxClient:MsgMigrateContract: Could not create message: ' + e.message) } }, - querySmartContractStateRequest({ value }: querySmartContractStateRequestParams): EncodeObject { + msgClearAdminResponse({ value }: msgClearAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateRequest", value: QuerySmartContractStateRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse", value: MsgClearAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySmartContractStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgClearAdminResponse: Could not create message: ' + e.message) } }, - queryContractsByCodeResponse({ value }: queryContractsByCodeResponseParams): EncodeObject { + msgStoreAndInstantiateContract({ value }: msgStoreAndInstantiateContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeResponse", value: QueryContractsByCodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract", value: MsgStoreAndInstantiateContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractsByCodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreAndInstantiateContract: Could not create message: ' + e.message) } }, @@ -2842,267 +2908,267 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - accessConfigUpdate({ value }: accessConfigUpdateParams): EncodeObject { + contractExecutionAuthorization({ value }: contractExecutionAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate", value: AccessConfigUpdate.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization", value: ContractExecutionAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AccessConfigUpdate: Could not create message: ' + e.message) + throw new Error('TxClient:ContractExecutionAuthorization: Could not create message: ' + e.message) } }, - contractMigrationAuthorization({ value }: contractMigrationAuthorizationParams): EncodeObject { + queryContractsByCreatorRequest({ value }: queryContractsByCreatorRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization", value: ContractMigrationAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest", value: QueryContractsByCreatorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContractMigrationAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractsByCreatorRequest: Could not create message: ' + e.message) } }, - acceptedMessagesFilter({ value }: acceptedMessagesFilterParams): EncodeObject { + queryCodeRequest({ value }: queryCodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter", value: AcceptedMessagesFilter.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryCodeRequest", value: QueryCodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AcceptedMessagesFilter: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCodeRequest: Could not create message: ' + e.message) } }, - codeInfoResponse({ value }: codeInfoResponseParams): EncodeObject { + msgClearAdmin({ value }: msgClearAdminParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.CodeInfoResponse", value: CodeInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin", value: MsgClearAdmin.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CodeInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgClearAdmin: Could not create message: ' + e.message) } }, - queryPinnedCodesRequest({ value }: queryPinnedCodesRequestParams): EncodeObject { + msgRemoveCodeUploadParamsAddressesResponse({ value }: msgRemoveCodeUploadParamsAddressesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesRequest", value: QueryPinnedCodesRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse", value: MsgRemoveCodeUploadParamsAddressesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPinnedCodesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveCodeUploadParamsAddressesResponse: Could not create message: ' + e.message) } }, - msgExecuteContractResponse({ value }: msgExecuteContractResponseParams): EncodeObject { + sequence({ value }: sequenceParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse", value: MsgExecuteContractResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.Sequence", value: Sequence.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecuteContractResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Sequence: Could not create message: ' + e.message) } }, - model({ value }: modelParams): EncodeObject { + msgStoreAndMigrateContractResponse({ value }: msgStoreAndMigrateContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.Model", value: Model.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse", value: MsgStoreAndMigrateContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Model: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreAndMigrateContractResponse: Could not create message: ' + e.message) } }, - accessTypeParam({ value }: accessTypeParamParams): EncodeObject { + absoluteTxPosition({ value }: absoluteTxPositionParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.AccessTypeParam", value: AccessTypeParam.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AbsoluteTxPosition", value: AbsoluteTxPosition.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AccessTypeParam: Could not create message: ' + e.message) + throw new Error('TxClient:AbsoluteTxPosition: Could not create message: ' + e.message) } }, - queryContractsByCreatorRequest({ value }: queryContractsByCreatorRequestParams): EncodeObject { + msgMigrateContractResponse({ value }: msgMigrateContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest", value: QueryContractsByCreatorRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse", value: MsgMigrateContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractsByCreatorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgMigrateContractResponse: Could not create message: ' + e.message) } }, - instantiateContractProposal({ value }: instantiateContractProposalParams): EncodeObject { + contractMigrationAuthorization({ value }: contractMigrationAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal", value: InstantiateContractProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization", value: ContractMigrationAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:InstantiateContractProposal: Could not create message: ' + e.message) + throw new Error('TxClient:ContractMigrationAuthorization: Could not create message: ' + e.message) } }, - msgUpdateInstantiateConfig({ value }: msgUpdateInstantiateConfigParams): EncodeObject { + code({ value }: codeParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig", value: MsgUpdateInstantiateConfig.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.Code", value: Code.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateInstantiateConfig: Could not create message: ' + e.message) + throw new Error('TxClient:Code: Could not create message: ' + e.message) } }, - updateAdminProposal({ value }: updateAdminProposalParams): EncodeObject { + queryContractInfoResponse({ value }: queryContractInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal", value: UpdateAdminProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoResponse", value: QueryContractInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UpdateAdminProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractInfoResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryContractHistoryResponse({ value }: queryContractHistoryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryResponse", value: QueryContractHistoryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryContractHistoryResponse: Could not create message: ' + e.message) } }, - msgStoreAndMigrateContractResponse({ value }: msgStoreAndMigrateContractResponseParams): EncodeObject { + msgExecuteContract({ value }: msgExecuteContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse", value: MsgStoreAndMigrateContractResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract", value: MsgExecuteContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreAndMigrateContractResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecuteContract: Could not create message: ' + e.message) } }, - sudoContractProposal({ value }: sudoContractProposalParams): EncodeObject { + msgUnpinCodes({ value }: msgUnpinCodesParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal", value: SudoContractProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes", value: MsgUnpinCodes.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SudoContractProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnpinCodes: Could not create message: ' + e.message) } }, - queryCodeRequest({ value }: queryCodeRequestParams): EncodeObject { + msgStoreAndInstantiateContractResponse({ value }: msgStoreAndInstantiateContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryCodeRequest", value: QueryCodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse", value: MsgStoreAndInstantiateContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreAndInstantiateContractResponse: Could not create message: ' + e.message) } }, - code({ value }: codeParams): EncodeObject { + storeCodeAuthorization({ value }: storeCodeAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.Code", value: Code.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization", value: StoreCodeAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Code: Could not create message: ' + e.message) + throw new Error('TxClient:StoreCodeAuthorization: Could not create message: ' + e.message) } }, - queryContractInfoRequest({ value }: queryContractInfoRequestParams): EncodeObject { + queryCodeResponse({ value }: queryCodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoRequest", value: QueryContractInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryCodeResponse", value: QueryCodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCodeResponse: Could not create message: ' + e.message) } }, - msgUnpinCodes({ value }: msgUnpinCodesParams): EncodeObject { + msgInstantiateContract({ value }: msgInstantiateContractParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes", value: MsgUnpinCodes.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract", value: MsgInstantiateContract.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUnpinCodes: Could not create message: ' + e.message) + throw new Error('TxClient:MsgInstantiateContract: Could not create message: ' + e.message) } }, - msgInstantiateContract2({ value }: msgInstantiateContract2Params): EncodeObject { + msgStoreCode({ value }: msgStoreCodeParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2", value: MsgInstantiateContract2.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode", value: MsgStoreCode.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgInstantiateContract2: Could not create message: ' + e.message) + throw new Error('TxClient:MsgStoreCode: Could not create message: ' + e.message) } }, - clearAdminProposal({ value }: clearAdminProposalParams): EncodeObject { + updateInstantiateConfigProposal({ value }: updateInstantiateConfigProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal", value: ClearAdminProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal", value: UpdateInstantiateConfigProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClearAdminProposal: Could not create message: ' + e.message) + throw new Error('TxClient:UpdateInstantiateConfigProposal: Could not create message: ' + e.message) } }, - msgPinCodes({ value }: msgPinCodesParams): EncodeObject { + accessConfigUpdate({ value }: accessConfigUpdateParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes", value: MsgPinCodes.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate", value: AccessConfigUpdate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPinCodes: Could not create message: ' + e.message) + throw new Error('TxClient:AccessConfigUpdate: Could not create message: ' + e.message) } }, - queryContractsByCreatorResponse({ value }: queryContractsByCreatorResponseParams): EncodeObject { + queryPinnedCodesRequest({ value }: queryPinnedCodesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse", value: QueryContractsByCreatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesRequest", value: QueryPinnedCodesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryContractsByCreatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPinnedCodesRequest: Could not create message: ' + e.message) } }, - msgUpdateInstantiateConfigResponse({ value }: msgUpdateInstantiateConfigResponseParams): EncodeObject { + allowAllMessagesFilter({ value }: allowAllMessagesFilterParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse", value: MsgUpdateInstantiateConfigResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter", value: AllowAllMessagesFilter.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateInstantiateConfigResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AllowAllMessagesFilter: Could not create message: ' + e.message) } }, - msgSudoContract({ value }: msgSudoContractParams): EncodeObject { + msgInstantiateContractResponse({ value }: msgInstantiateContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract", value: MsgSudoContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse", value: MsgInstantiateContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSudoContract: Could not create message: ' + e.message) + throw new Error('TxClient:MsgInstantiateContractResponse: Could not create message: ' + e.message) } }, - msgStoreCode({ value }: msgStoreCodeParams): EncodeObject { + msgUpdateInstantiateConfigResponse({ value }: msgUpdateInstantiateConfigResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode", value: MsgStoreCode.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse", value: MsgUpdateInstantiateConfigResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreCode: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateInstantiateConfigResponse: Could not create message: ' + e.message) } }, - msgClearAdmin({ value }: msgClearAdminParams): EncodeObject { + msgSudoContractResponse({ value }: msgSudoContractResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin", value: MsgClearAdmin.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse", value: MsgSudoContractResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgClearAdmin: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSudoContractResponse: Could not create message: ' + e.message) } }, - msgPinCodesResponse({ value }: msgPinCodesResponseParams): EncodeObject { + storeAndInstantiateContractProposal({ value }: storeAndInstantiateContractProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse", value: MsgPinCodesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal", value: StoreAndInstantiateContractProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPinCodesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:StoreAndInstantiateContractProposal: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + executeContractProposal({ value }: executeContractProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal", value: ExecuteContractProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:ExecuteContractProposal: Could not create message: ' + e.message) } }, - storeCodeAuthorization({ value }: storeCodeAuthorizationParams): EncodeObject { + contractGrant({ value }: contractGrantParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization", value: StoreCodeAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ContractGrant", value: ContractGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StoreCodeAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:ContractGrant: Could not create message: ' + e.message) } }, - queryCodeResponse({ value }: queryCodeResponseParams): EncodeObject { + sudoContractProposal({ value }: sudoContractProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryCodeResponse", value: QueryCodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal", value: SudoContractProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:SudoContractProposal: Could not create message: ' + e.message) } }, - msgAddCodeUploadParamsAddressesResponse({ value }: msgAddCodeUploadParamsAddressesResponseParams): EncodeObject { + clearAdminProposal({ value }: clearAdminProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse", value: MsgAddCodeUploadParamsAddressesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal", value: ClearAdminProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddCodeUploadParamsAddressesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ClearAdminProposal: Could not create message: ' + e.message) } }, - combinedLimit({ value }: combinedLimitParams): EncodeObject { + unpinCodesProposal({ value }: unpinCodesProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.CombinedLimit", value: CombinedLimit.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal", value: UnpinCodesProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CombinedLimit: Could not create message: ' + e.message) + throw new Error('TxClient:UnpinCodesProposal: Could not create message: ' + e.message) } }, @@ -3114,99 +3180,99 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUnpinCodesResponse({ value }: msgUnpinCodesResponseParams): EncodeObject { + codeInfoResponse({ value }: codeInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse", value: MsgUnpinCodesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.CodeInfoResponse", value: CodeInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUnpinCodesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:CodeInfoResponse: Could not create message: ' + e.message) } }, - updateInstantiateConfigProposal({ value }: updateInstantiateConfigProposalParams): EncodeObject { + accessConfig({ value }: accessConfigParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal", value: UpdateInstantiateConfigProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.AccessConfig", value: AccessConfig.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UpdateInstantiateConfigProposal: Could not create message: ' + e.message) + throw new Error('TxClient:AccessConfig: Could not create message: ' + e.message) } }, - msgMigrateContract({ value }: msgMigrateContractParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract", value: MsgMigrateContract.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgMigrateContract: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgUpdateAdmin({ value }: msgUpdateAdminParams): EncodeObject { + migrateContractProposal({ value }: migrateContractProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin", value: MsgUpdateAdmin.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal", value: MigrateContractProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateAdmin: Could not create message: ' + e.message) + throw new Error('TxClient:MigrateContractProposal: Could not create message: ' + e.message) } }, - msgInstantiateContractResponse({ value }: msgInstantiateContractResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse", value: MsgInstantiateContractResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgInstantiateContractResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgClearAdminResponse({ value }: msgClearAdminResponseParams): EncodeObject { + queryRawContractStateRequest({ value }: queryRawContractStateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse", value: MsgClearAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateRequest", value: QueryRawContractStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgClearAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryRawContractStateRequest: Could not create message: ' + e.message) } }, - sequence({ value }: sequenceParams): EncodeObject { + queryBuildAddressResponse({ value }: queryBuildAddressResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.Sequence", value: Sequence.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressResponse", value: QueryBuildAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Sequence: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBuildAddressResponse: Could not create message: ' + e.message) } }, - storeCodeProposal({ value }: storeCodeProposalParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal", value: StoreCodeProposal.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StoreCodeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryRawContractStateResponse({ value }: queryRawContractStateResponseParams): EncodeObject { + instantiateContractProposal({ value }: instantiateContractProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateResponse", value: QueryRawContractStateResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal", value: InstantiateContractProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRawContractStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:InstantiateContractProposal: Could not create message: ' + e.message) } }, - queryPinnedCodesResponse({ value }: queryPinnedCodesResponseParams): EncodeObject { + updateAdminProposal({ value }: updateAdminProposalParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesResponse", value: QueryPinnedCodesResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal", value: UpdateAdminProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPinnedCodesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:UpdateAdminProposal: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + querySmartContractStateRequest({ value }: querySmartContractStateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateRequest", value: QuerySmartContractStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySmartContractStateRequest: Could not create message: ' + e.message) } }, - msgStoreCodeResponse({ value }: msgStoreCodeResponseParams): EncodeObject { + queryPinnedCodesResponse({ value }: queryPinnedCodesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse", value: MsgStoreCodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesResponse", value: QueryPinnedCodesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgStoreCodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPinnedCodesResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmwasm.wasm.v1/registry.ts b/ts-client/cosmwasm.wasm.v1/registry.ts index 7e5dc173..9403e7ba 100755 --- a/ts-client/cosmwasm.wasm.v1/registry.ts +++ b/ts-client/cosmwasm.wasm.v1/registry.ts @@ -1,198 +1,202 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgStoreAndMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { UnpinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ContractInfo } from "./types/cosmwasm/wasm/v1/types"; -import { QueryContractHistoryRequest } from "./types/cosmwasm/wasm/v1/query"; -import { ContractExecutionAuthorization } from "./types/cosmwasm/wasm/v1/authz"; -import { ContractGrant } from "./types/cosmwasm/wasm/v1/authz"; -import { QueryContractInfoResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryParamsRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgIBCSendResponse } from "./types/cosmwasm/wasm/v1/ibc"; -import { StoreAndInstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { AbsoluteTxPosition } from "./types/cosmwasm/wasm/v1/types"; -import { QueryAllContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { QueryRawContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgSudoContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { AllowAllMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgInstantiateContract2 } from "./types/cosmwasm/wasm/v1/tx"; +import { CodeInfo } from "./types/cosmwasm/wasm/v1/types"; +import { QueryParamsResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryContractsByCodeRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractsByCodeResponse } from "./types/cosmwasm/wasm/v1/query"; import { MsgRemoveCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; -import { MigrateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ExecuteContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgIBCSend } from "./types/cosmwasm/wasm/v1/ibc"; -import { MsgExecuteContract } from "./types/cosmwasm/wasm/v1/tx"; import { AcceptedMessageKeysFilter } from "./types/cosmwasm/wasm/v1/authz"; -import { QueryContractsByCodeRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgAddCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateContractLabelResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Contract } from "./types/cosmwasm/wasm/v1/genesis"; -import { CodeInfo } from "./types/cosmwasm/wasm/v1/types"; -import { QueryContractHistoryResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUpdateParams } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { QueryCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryRawContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { AccessTypeParam } from "./types/cosmwasm/wasm/v1/types"; +import { Model } from "./types/cosmwasm/wasm/v1/types"; +import { QueryParamsRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgExecuteContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateInstantiateConfig } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgSudoContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgPinCodes } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryAllContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgIBCSendResponse } from "./types/cosmwasm/wasm/v1/ibc"; +import { MaxFundsLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { QueryContractHistoryRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgPinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; import { MsgIBCCloseChannel } from "./types/cosmwasm/wasm/v1/ibc"; -import { MsgUpdateContractLabel } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgInstantiateContract2Response } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { PinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { QueryAllContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgRemoveCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { InstantiateContract2Proposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { AccessConfig } from "./types/cosmwasm/wasm/v1/types"; import { MaxCallsLimit } from "./types/cosmwasm/wasm/v1/authz"; -import { MaxFundsLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { QueryBuildAddressRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateContractLabelResponse } from "./types/cosmwasm/wasm/v1/tx"; import { QueryCodesResponse } from "./types/cosmwasm/wasm/v1/query"; -import { Params } from "./types/cosmwasm/wasm/v1/types"; +import { MsgStoreCodeResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { InstantiateContract2Proposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QueryContractsByCreatorResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgAddCodeUploadParamsAddresses } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractInfo } from "./types/cosmwasm/wasm/v1/types"; +import { StoreCodeProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; import { CodeGrant } from "./types/cosmwasm/wasm/v1/authz"; -import { QuerySmartContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; -import { QueryContractsByCodeResponse } from "./types/cosmwasm/wasm/v1/query"; -import { ContractCodeHistoryEntry } from "./types/cosmwasm/wasm/v1/types"; -import { AccessConfigUpdate } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { ContractMigrationAuthorization } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgUpdateAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { CombinedLimit } from "./types/cosmwasm/wasm/v1/authz"; +import { MsgStoreAndMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgUpdateContractLabel } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgIBCSend } from "./types/cosmwasm/wasm/v1/ibc"; +import { PinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { MsgUnpinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; import { AcceptedMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; -import { CodeInfoResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryPinnedCodesRequest } from "./types/cosmwasm/wasm/v1/query"; -import { MsgExecuteContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Model } from "./types/cosmwasm/wasm/v1/types"; -import { AccessTypeParam } from "./types/cosmwasm/wasm/v1/types"; +import { Contract } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgInstantiateContract2Response } from "./types/cosmwasm/wasm/v1/tx"; +import { QueryContractInfoRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryAllContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { QueryCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgAddCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgClearAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgStoreAndInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractCodeHistoryEntry } from "./types/cosmwasm/wasm/v1/types"; +import { ContractExecutionAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { QueryContractsByCreatorRequest } from "./types/cosmwasm/wasm/v1/query"; -import { InstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgUpdateInstantiateConfig } from "./types/cosmwasm/wasm/v1/tx"; -import { UpdateAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgUpdateParamsResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreAndMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { SudoContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; import { QueryCodeRequest } from "./types/cosmwasm/wasm/v1/query"; +import { MsgClearAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgRemoveCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { Sequence } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgStoreAndMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { AbsoluteTxPosition } from "./types/cosmwasm/wasm/v1/types"; +import { MsgMigrateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { ContractMigrationAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { Code } from "./types/cosmwasm/wasm/v1/genesis"; -import { QueryContractInfoRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractInfoResponse } from "./types/cosmwasm/wasm/v1/query"; +import { QueryContractHistoryResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgExecuteContract } from "./types/cosmwasm/wasm/v1/tx"; import { MsgUnpinCodes } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgInstantiateContract2 } from "./types/cosmwasm/wasm/v1/tx"; -import { ClearAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgPinCodes } from "./types/cosmwasm/wasm/v1/tx"; -import { QueryContractsByCreatorResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUpdateInstantiateConfigResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgSudoContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgStoreCode } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgClearAdmin } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgPinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { GenesisState } from "./types/cosmwasm/wasm/v1/genesis"; +import { MsgStoreAndInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; import { StoreCodeAuthorization } from "./types/cosmwasm/wasm/v1/authz"; import { QueryCodeResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgAddCodeUploadParamsAddressesResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { CombinedLimit } from "./types/cosmwasm/wasm/v1/authz"; -import { QuerySmartContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgUnpinCodesResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgInstantiateContract } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgStoreCode } from "./types/cosmwasm/wasm/v1/tx"; import { UpdateInstantiateConfigProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { MsgMigrateContract } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgUpdateAdmin } from "./types/cosmwasm/wasm/v1/tx"; +import { AccessConfigUpdate } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QueryPinnedCodesRequest } from "./types/cosmwasm/wasm/v1/query"; +import { AllowAllMessagesFilter } from "./types/cosmwasm/wasm/v1/authz"; import { MsgInstantiateContractResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { MsgClearAdminResponse } from "./types/cosmwasm/wasm/v1/tx"; -import { Sequence } from "./types/cosmwasm/wasm/v1/genesis"; -import { StoreCodeProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; -import { QueryRawContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { MsgUpdateInstantiateConfigResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { MsgSudoContractResponse } from "./types/cosmwasm/wasm/v1/tx"; +import { StoreAndInstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ExecuteContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ContractGrant } from "./types/cosmwasm/wasm/v1/authz"; +import { SudoContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { ClearAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { UnpinCodesProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QuerySmartContractStateResponse } from "./types/cosmwasm/wasm/v1/query"; +import { CodeInfoResponse } from "./types/cosmwasm/wasm/v1/query"; +import { AccessConfig } from "./types/cosmwasm/wasm/v1/types"; +import { MsgUpdateParams } from "./types/cosmwasm/wasm/v1/tx"; +import { MigrateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { GenesisState } from "./types/cosmwasm/wasm/v1/genesis"; +import { QueryRawContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; +import { QueryBuildAddressResponse } from "./types/cosmwasm/wasm/v1/query"; +import { Params } from "./types/cosmwasm/wasm/v1/types"; +import { InstantiateContractProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { UpdateAdminProposal } from "./types/cosmwasm/wasm/v1/proposal_legacy"; +import { QuerySmartContractStateRequest } from "./types/cosmwasm/wasm/v1/query"; import { QueryPinnedCodesResponse } from "./types/cosmwasm/wasm/v1/query"; -import { QueryParamsResponse } from "./types/cosmwasm/wasm/v1/query"; -import { MsgStoreCodeResponse } from "./types/cosmwasm/wasm/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmwasm.wasm.v1.MsgStoreAndMigrateContract", MsgStoreAndMigrateContract], - ["/cosmwasm.wasm.v1.MsgUpdateAdminResponse", MsgUpdateAdminResponse], - ["/cosmwasm.wasm.v1.UnpinCodesProposal", UnpinCodesProposal], - ["/cosmwasm.wasm.v1.ContractInfo", ContractInfo], - ["/cosmwasm.wasm.v1.QueryContractHistoryRequest", QueryContractHistoryRequest], - ["/cosmwasm.wasm.v1.ContractExecutionAuthorization", ContractExecutionAuthorization], - ["/cosmwasm.wasm.v1.ContractGrant", ContractGrant], - ["/cosmwasm.wasm.v1.QueryContractInfoResponse", QueryContractInfoResponse], - ["/cosmwasm.wasm.v1.QueryParamsRequest", QueryParamsRequest], - ["/cosmwasm.wasm.v1.MsgIBCSendResponse", MsgIBCSendResponse], - ["/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal", StoreAndInstantiateContractProposal], - ["/cosmwasm.wasm.v1.AbsoluteTxPosition", AbsoluteTxPosition], - ["/cosmwasm.wasm.v1.QueryAllContractStateRequest", QueryAllContractStateRequest], - ["/cosmwasm.wasm.v1.QueryRawContractStateRequest", QueryRawContractStateRequest], - ["/cosmwasm.wasm.v1.MsgInstantiateContract", MsgInstantiateContract], - ["/cosmwasm.wasm.v1.MsgSudoContractResponse", MsgSudoContractResponse], - ["/cosmwasm.wasm.v1.AllowAllMessagesFilter", AllowAllMessagesFilter], + ["/cosmwasm.wasm.v1.MsgInstantiateContract2", MsgInstantiateContract2], + ["/cosmwasm.wasm.v1.CodeInfo", CodeInfo], + ["/cosmwasm.wasm.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmwasm.wasm.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmwasm.wasm.v1.QueryContractsByCodeRequest", QueryContractsByCodeRequest], + ["/cosmwasm.wasm.v1.QueryContractsByCodeResponse", QueryContractsByCodeResponse], ["/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses", MsgRemoveCodeUploadParamsAddresses], - ["/cosmwasm.wasm.v1.MigrateContractProposal", MigrateContractProposal], - ["/cosmwasm.wasm.v1.ExecuteContractProposal", ExecuteContractProposal], - ["/cosmwasm.wasm.v1.MsgIBCSend", MsgIBCSend], - ["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract], ["/cosmwasm.wasm.v1.AcceptedMessageKeysFilter", AcceptedMessageKeysFilter], - ["/cosmwasm.wasm.v1.QueryContractsByCodeRequest", QueryContractsByCodeRequest], - ["/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses", MsgAddCodeUploadParamsAddresses], - ["/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse", MsgUpdateContractLabelResponse], - ["/cosmwasm.wasm.v1.Contract", Contract], - ["/cosmwasm.wasm.v1.CodeInfo", CodeInfo], - ["/cosmwasm.wasm.v1.QueryContractHistoryResponse", QueryContractHistoryResponse], - ["/cosmwasm.wasm.v1.MsgUpdateParams", MsgUpdateParams], - ["/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract", MsgStoreAndInstantiateContract], - ["/cosmwasm.wasm.v1.QueryCodesRequest", QueryCodesRequest], + ["/cosmwasm.wasm.v1.QueryRawContractStateResponse", QueryRawContractStateResponse], + ["/cosmwasm.wasm.v1.AccessTypeParam", AccessTypeParam], + ["/cosmwasm.wasm.v1.Model", Model], + ["/cosmwasm.wasm.v1.QueryParamsRequest", QueryParamsRequest], + ["/cosmwasm.wasm.v1.MsgExecuteContractResponse", MsgExecuteContractResponse], + ["/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig", MsgUpdateInstantiateConfig], + ["/cosmwasm.wasm.v1.MsgSudoContract", MsgSudoContract], + ["/cosmwasm.wasm.v1.MsgPinCodes", MsgPinCodes], + ["/cosmwasm.wasm.v1.QueryAllContractStateRequest", QueryAllContractStateRequest], + ["/cosmwasm.wasm.v1.MsgIBCSendResponse", MsgIBCSendResponse], + ["/cosmwasm.wasm.v1.MaxFundsLimit", MaxFundsLimit], + ["/cosmwasm.wasm.v1.QueryContractHistoryRequest", QueryContractHistoryRequest], + ["/cosmwasm.wasm.v1.MsgPinCodesResponse", MsgPinCodesResponse], ["/cosmwasm.wasm.v1.MsgIBCCloseChannel", MsgIBCCloseChannel], - ["/cosmwasm.wasm.v1.MsgUpdateContractLabel", MsgUpdateContractLabel], - ["/cosmwasm.wasm.v1.MsgInstantiateContract2Response", MsgInstantiateContract2Response], - ["/cosmwasm.wasm.v1.MsgMigrateContractResponse", MsgMigrateContractResponse], - ["/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse", MsgStoreAndInstantiateContractResponse], - ["/cosmwasm.wasm.v1.PinCodesProposal", PinCodesProposal], - ["/cosmwasm.wasm.v1.QueryAllContractStateResponse", QueryAllContractStateResponse], - ["/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse", MsgRemoveCodeUploadParamsAddressesResponse], - ["/cosmwasm.wasm.v1.InstantiateContract2Proposal", InstantiateContract2Proposal], - ["/cosmwasm.wasm.v1.AccessConfig", AccessConfig], ["/cosmwasm.wasm.v1.MaxCallsLimit", MaxCallsLimit], - ["/cosmwasm.wasm.v1.MaxFundsLimit", MaxFundsLimit], + ["/cosmwasm.wasm.v1.QueryBuildAddressRequest", QueryBuildAddressRequest], + ["/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse", MsgUpdateContractLabelResponse], ["/cosmwasm.wasm.v1.QueryCodesResponse", QueryCodesResponse], - ["/cosmwasm.wasm.v1.Params", Params], + ["/cosmwasm.wasm.v1.MsgStoreCodeResponse", MsgStoreCodeResponse], + ["/cosmwasm.wasm.v1.MsgUpdateAdmin", MsgUpdateAdmin], + ["/cosmwasm.wasm.v1.InstantiateContract2Proposal", InstantiateContract2Proposal], + ["/cosmwasm.wasm.v1.QueryContractsByCreatorResponse", QueryContractsByCreatorResponse], + ["/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses", MsgAddCodeUploadParamsAddresses], + ["/cosmwasm.wasm.v1.ContractInfo", ContractInfo], + ["/cosmwasm.wasm.v1.StoreCodeProposal", StoreCodeProposal], ["/cosmwasm.wasm.v1.CodeGrant", CodeGrant], - ["/cosmwasm.wasm.v1.QuerySmartContractStateRequest", QuerySmartContractStateRequest], - ["/cosmwasm.wasm.v1.QueryContractsByCodeResponse", QueryContractsByCodeResponse], - ["/cosmwasm.wasm.v1.ContractCodeHistoryEntry", ContractCodeHistoryEntry], - ["/cosmwasm.wasm.v1.AccessConfigUpdate", AccessConfigUpdate], - ["/cosmwasm.wasm.v1.ContractMigrationAuthorization", ContractMigrationAuthorization], + ["/cosmwasm.wasm.v1.MsgUpdateAdminResponse", MsgUpdateAdminResponse], + ["/cosmwasm.wasm.v1.CombinedLimit", CombinedLimit], + ["/cosmwasm.wasm.v1.MsgStoreAndMigrateContract", MsgStoreAndMigrateContract], + ["/cosmwasm.wasm.v1.MsgUpdateContractLabel", MsgUpdateContractLabel], + ["/cosmwasm.wasm.v1.MsgIBCSend", MsgIBCSend], + ["/cosmwasm.wasm.v1.PinCodesProposal", PinCodesProposal], + ["/cosmwasm.wasm.v1.MsgUnpinCodesResponse", MsgUnpinCodesResponse], ["/cosmwasm.wasm.v1.AcceptedMessagesFilter", AcceptedMessagesFilter], - ["/cosmwasm.wasm.v1.CodeInfoResponse", CodeInfoResponse], - ["/cosmwasm.wasm.v1.QueryPinnedCodesRequest", QueryPinnedCodesRequest], - ["/cosmwasm.wasm.v1.MsgExecuteContractResponse", MsgExecuteContractResponse], - ["/cosmwasm.wasm.v1.Model", Model], - ["/cosmwasm.wasm.v1.AccessTypeParam", AccessTypeParam], + ["/cosmwasm.wasm.v1.Contract", Contract], + ["/cosmwasm.wasm.v1.MsgInstantiateContract2Response", MsgInstantiateContract2Response], + ["/cosmwasm.wasm.v1.QueryContractInfoRequest", QueryContractInfoRequest], + ["/cosmwasm.wasm.v1.QueryAllContractStateResponse", QueryAllContractStateResponse], + ["/cosmwasm.wasm.v1.QueryCodesRequest", QueryCodesRequest], + ["/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse", MsgAddCodeUploadParamsAddressesResponse], + ["/cosmwasm.wasm.v1.MsgMigrateContract", MsgMigrateContract], + ["/cosmwasm.wasm.v1.MsgClearAdminResponse", MsgClearAdminResponse], + ["/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract", MsgStoreAndInstantiateContract], + ["/cosmwasm.wasm.v1.ContractCodeHistoryEntry", ContractCodeHistoryEntry], + ["/cosmwasm.wasm.v1.ContractExecutionAuthorization", ContractExecutionAuthorization], ["/cosmwasm.wasm.v1.QueryContractsByCreatorRequest", QueryContractsByCreatorRequest], - ["/cosmwasm.wasm.v1.InstantiateContractProposal", InstantiateContractProposal], - ["/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig", MsgUpdateInstantiateConfig], - ["/cosmwasm.wasm.v1.UpdateAdminProposal", UpdateAdminProposal], - ["/cosmwasm.wasm.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse", MsgStoreAndMigrateContractResponse], - ["/cosmwasm.wasm.v1.SudoContractProposal", SudoContractProposal], ["/cosmwasm.wasm.v1.QueryCodeRequest", QueryCodeRequest], + ["/cosmwasm.wasm.v1.MsgClearAdmin", MsgClearAdmin], + ["/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse", MsgRemoveCodeUploadParamsAddressesResponse], + ["/cosmwasm.wasm.v1.Sequence", Sequence], + ["/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse", MsgStoreAndMigrateContractResponse], + ["/cosmwasm.wasm.v1.AbsoluteTxPosition", AbsoluteTxPosition], + ["/cosmwasm.wasm.v1.MsgMigrateContractResponse", MsgMigrateContractResponse], + ["/cosmwasm.wasm.v1.ContractMigrationAuthorization", ContractMigrationAuthorization], ["/cosmwasm.wasm.v1.Code", Code], - ["/cosmwasm.wasm.v1.QueryContractInfoRequest", QueryContractInfoRequest], + ["/cosmwasm.wasm.v1.QueryContractInfoResponse", QueryContractInfoResponse], + ["/cosmwasm.wasm.v1.QueryContractHistoryResponse", QueryContractHistoryResponse], + ["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract], ["/cosmwasm.wasm.v1.MsgUnpinCodes", MsgUnpinCodes], - ["/cosmwasm.wasm.v1.MsgInstantiateContract2", MsgInstantiateContract2], - ["/cosmwasm.wasm.v1.ClearAdminProposal", ClearAdminProposal], - ["/cosmwasm.wasm.v1.MsgPinCodes", MsgPinCodes], - ["/cosmwasm.wasm.v1.QueryContractsByCreatorResponse", QueryContractsByCreatorResponse], - ["/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse", MsgUpdateInstantiateConfigResponse], - ["/cosmwasm.wasm.v1.MsgSudoContract", MsgSudoContract], - ["/cosmwasm.wasm.v1.MsgStoreCode", MsgStoreCode], - ["/cosmwasm.wasm.v1.MsgClearAdmin", MsgClearAdmin], - ["/cosmwasm.wasm.v1.MsgPinCodesResponse", MsgPinCodesResponse], - ["/cosmwasm.wasm.v1.GenesisState", GenesisState], + ["/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse", MsgStoreAndInstantiateContractResponse], ["/cosmwasm.wasm.v1.StoreCodeAuthorization", StoreCodeAuthorization], ["/cosmwasm.wasm.v1.QueryCodeResponse", QueryCodeResponse], - ["/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse", MsgAddCodeUploadParamsAddressesResponse], - ["/cosmwasm.wasm.v1.CombinedLimit", CombinedLimit], - ["/cosmwasm.wasm.v1.QuerySmartContractStateResponse", QuerySmartContractStateResponse], - ["/cosmwasm.wasm.v1.MsgUnpinCodesResponse", MsgUnpinCodesResponse], + ["/cosmwasm.wasm.v1.MsgInstantiateContract", MsgInstantiateContract], + ["/cosmwasm.wasm.v1.MsgStoreCode", MsgStoreCode], ["/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal", UpdateInstantiateConfigProposal], - ["/cosmwasm.wasm.v1.MsgMigrateContract", MsgMigrateContract], - ["/cosmwasm.wasm.v1.MsgUpdateAdmin", MsgUpdateAdmin], + ["/cosmwasm.wasm.v1.AccessConfigUpdate", AccessConfigUpdate], + ["/cosmwasm.wasm.v1.QueryPinnedCodesRequest", QueryPinnedCodesRequest], + ["/cosmwasm.wasm.v1.AllowAllMessagesFilter", AllowAllMessagesFilter], ["/cosmwasm.wasm.v1.MsgInstantiateContractResponse", MsgInstantiateContractResponse], - ["/cosmwasm.wasm.v1.MsgClearAdminResponse", MsgClearAdminResponse], - ["/cosmwasm.wasm.v1.Sequence", Sequence], - ["/cosmwasm.wasm.v1.StoreCodeProposal", StoreCodeProposal], - ["/cosmwasm.wasm.v1.QueryRawContractStateResponse", QueryRawContractStateResponse], + ["/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse", MsgUpdateInstantiateConfigResponse], + ["/cosmwasm.wasm.v1.MsgSudoContractResponse", MsgSudoContractResponse], + ["/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal", StoreAndInstantiateContractProposal], + ["/cosmwasm.wasm.v1.ExecuteContractProposal", ExecuteContractProposal], + ["/cosmwasm.wasm.v1.ContractGrant", ContractGrant], + ["/cosmwasm.wasm.v1.SudoContractProposal", SudoContractProposal], + ["/cosmwasm.wasm.v1.ClearAdminProposal", ClearAdminProposal], + ["/cosmwasm.wasm.v1.UnpinCodesProposal", UnpinCodesProposal], + ["/cosmwasm.wasm.v1.QuerySmartContractStateResponse", QuerySmartContractStateResponse], + ["/cosmwasm.wasm.v1.CodeInfoResponse", CodeInfoResponse], + ["/cosmwasm.wasm.v1.AccessConfig", AccessConfig], + ["/cosmwasm.wasm.v1.MsgUpdateParams", MsgUpdateParams], + ["/cosmwasm.wasm.v1.MigrateContractProposal", MigrateContractProposal], + ["/cosmwasm.wasm.v1.GenesisState", GenesisState], + ["/cosmwasm.wasm.v1.QueryRawContractStateRequest", QueryRawContractStateRequest], + ["/cosmwasm.wasm.v1.QueryBuildAddressResponse", QueryBuildAddressResponse], + ["/cosmwasm.wasm.v1.Params", Params], + ["/cosmwasm.wasm.v1.InstantiateContractProposal", InstantiateContractProposal], + ["/cosmwasm.wasm.v1.UpdateAdminProposal", UpdateAdminProposal], + ["/cosmwasm.wasm.v1.QuerySmartContractStateRequest", QuerySmartContractStateRequest], ["/cosmwasm.wasm.v1.QueryPinnedCodesResponse", QueryPinnedCodesResponse], - ["/cosmwasm.wasm.v1.QueryParamsResponse", QueryParamsResponse], - ["/cosmwasm.wasm.v1.MsgStoreCodeResponse", MsgStoreCodeResponse], ]; diff --git a/ts-client/cosmwasm.wasm.v1/rest.ts b/ts-client/cosmwasm.wasm.v1/rest.ts index c9cd82ea..7f31c74f 100644 --- a/ts-client/cosmwasm.wasm.v1/rest.ts +++ b/ts-client/cosmwasm.wasm.v1/rest.ts @@ -117,6 +117,10 @@ export interface QueryAllContractStateResponse { pagination?: { next_key?: string; total?: string }; } +export interface QueryBuildAddressResponse { + address?: string; +} + export interface QueryCodeResponse { code_info?: { code_id?: string; @@ -630,6 +634,24 @@ export class Api extends HttpClient + this.request<{ address?: string }, { code?: number; message?: string; details?: { "@type"?: string }[] }>({ + path: `/cosmwasm/wasm/v1/contract/build_address`, + method: "GET", + query: query, + ...params, + }); + /** * No description * diff --git a/ts-client/cosmwasm.wasm.v1/types/cosmwasm/wasm/v1/query.ts b/ts-client/cosmwasm.wasm.v1/types/cosmwasm/wasm/v1/query.ts index d913440e..5885f6de 100644 --- a/ts-client/cosmwasm.wasm.v1/types/cosmwasm/wasm/v1/query.ts +++ b/ts-client/cosmwasm.wasm.v1/types/cosmwasm/wasm/v1/query.ts @@ -213,6 +213,33 @@ export interface QueryContractsByCreatorResponse { pagination: PageResponse | undefined; } +/** + * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC + * method. + */ +export interface QueryBuildAddressRequest { + /** CodeHash is the hash of the code */ + codeHash: string; + /** CreatorAddress is the address of the contract instantiator */ + creatorAddress: string; + /** Salt is a hex encoded salt */ + salt: string; + /** + * InitArgs are optional json encoded init args to be used in contract address + * building if provided + */ + initArgs: Uint8Array; +} + +/** + * QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC + * method. + */ +export interface QueryBuildAddressResponse { + /** Address is the contract address */ + address: string; +} + function createBaseQueryContractInfoRequest(): QueryContractInfoRequest { return { address: "" }; } @@ -1858,6 +1885,167 @@ export const QueryContractsByCreatorResponse = { }, }; +function createBaseQueryBuildAddressRequest(): QueryBuildAddressRequest { + return { codeHash: "", creatorAddress: "", salt: "", initArgs: new Uint8Array(0) }; +} + +export const QueryBuildAddressRequest = { + encode(message: QueryBuildAddressRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.codeHash !== "") { + writer.uint32(10).string(message.codeHash); + } + if (message.creatorAddress !== "") { + writer.uint32(18).string(message.creatorAddress); + } + if (message.salt !== "") { + writer.uint32(26).string(message.salt); + } + if (message.initArgs.length !== 0) { + writer.uint32(34).bytes(message.initArgs); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): QueryBuildAddressRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBuildAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.codeHash = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.creatorAddress = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.salt = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.initArgs = reader.bytes(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): QueryBuildAddressRequest { + return { + codeHash: isSet(object.codeHash) ? String(object.codeHash) : "", + creatorAddress: isSet(object.creatorAddress) ? String(object.creatorAddress) : "", + salt: isSet(object.salt) ? String(object.salt) : "", + initArgs: isSet(object.initArgs) ? bytesFromBase64(object.initArgs) : new Uint8Array(0), + }; + }, + + toJSON(message: QueryBuildAddressRequest): unknown { + const obj: any = {}; + if (message.codeHash !== "") { + obj.codeHash = message.codeHash; + } + if (message.creatorAddress !== "") { + obj.creatorAddress = message.creatorAddress; + } + if (message.salt !== "") { + obj.salt = message.salt; + } + if (message.initArgs.length !== 0) { + obj.initArgs = base64FromBytes(message.initArgs); + } + return obj; + }, + + create, I>>(base?: I): QueryBuildAddressRequest { + return QueryBuildAddressRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): QueryBuildAddressRequest { + const message = createBaseQueryBuildAddressRequest(); + message.codeHash = object.codeHash ?? ""; + message.creatorAddress = object.creatorAddress ?? ""; + message.salt = object.salt ?? ""; + message.initArgs = object.initArgs ?? new Uint8Array(0); + return message; + }, +}; + +function createBaseQueryBuildAddressResponse(): QueryBuildAddressResponse { + return { address: "" }; +} + +export const QueryBuildAddressResponse = { + encode(message: QueryBuildAddressResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): QueryBuildAddressResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBuildAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.address = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): QueryBuildAddressResponse { + return { address: isSet(object.address) ? String(object.address) : "" }; + }, + + toJSON(message: QueryBuildAddressResponse): unknown { + const obj: any = {}; + if (message.address !== "") { + obj.address = message.address; + } + return obj; + }, + + create, I>>(base?: I): QueryBuildAddressResponse { + return QueryBuildAddressResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): QueryBuildAddressResponse { + const message = createBaseQueryBuildAddressResponse(); + message.address = object.address ?? ""; + return message; + }, +}; + /** Query provides defines the gRPC querier service */ export interface Query { /** ContractInfo gets the contract meta data */ @@ -1882,6 +2070,8 @@ export interface Query { Params(request: QueryParamsRequest): Promise; /** ContractsByCreator gets the contracts by creator */ ContractsByCreator(request: QueryContractsByCreatorRequest): Promise; + /** BuildAddress builds a contract address */ + BuildAddress(request: QueryBuildAddressRequest): Promise; } export const QueryServiceName = "cosmwasm.wasm.v1.Query"; @@ -1902,6 +2092,7 @@ export class QueryClientImpl implements Query { this.PinnedCodes = this.PinnedCodes.bind(this); this.Params = this.Params.bind(this); this.ContractsByCreator = this.ContractsByCreator.bind(this); + this.BuildAddress = this.BuildAddress.bind(this); } ContractInfo(request: QueryContractInfoRequest): Promise { const data = QueryContractInfoRequest.encode(request).finish(); @@ -1968,6 +2159,12 @@ export class QueryClientImpl implements Query { const promise = this.rpc.request(this.service, "ContractsByCreator", data); return promise.then((data) => QueryContractsByCreatorResponse.decode(_m0.Reader.create(data))); } + + BuildAddress(request: QueryBuildAddressRequest): Promise { + const data = QueryBuildAddressRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "BuildAddress", data); + return promise.then((data) => QueryBuildAddressResponse.decode(_m0.Reader.create(data))); + } } interface Rpc { diff --git a/ts-client/fairyring.keyshare/module.ts b/ts-client/fairyring.keyshare/module.ts index cf3fe0ab..e72ee14a 100755 --- a/ts-client/fairyring.keyshare/module.ts +++ b/ts-client/fairyring.keyshare/module.ts @@ -6,240 +6,240 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryCommitmentsRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetValidatorSetResponse } from "./types/fairyring/keyshare/query"; -import { MsgCreateLatestPubKey } from "./types/fairyring/keyshare/tx"; -import { Commitments } from "./types/fairyring/keyshare/commitments"; -import { QueryPubKeyRequest } from "./types/fairyring/keyshare/query"; -import { CurrentKeysPacketData } from "./types/fairyring/keyshare/packet"; -import { GetAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryGetAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { MsgCreateGeneralKeyShare } from "./types/fairyring/keyshare/tx"; -import { QueryParamsResponse } from "./types/fairyring/keyshare/query"; +import { KeyShareRequest } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryGetValidatorSetRequest } from "./types/fairyring/keyshare/query"; import { QueryAllAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { KeyShare } from "./types/fairyring/keyshare/key_share"; -import { ValidatorSet } from "./types/fairyring/keyshare/validator_set"; -import { RequestAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryAllValidatorSetRequest } from "./types/fairyring/keyshare/query"; -import { MsgUpdateParamsResponse } from "./types/fairyring/keyshare/tx"; import { MsgDeRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; +import { MsgCreateLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; import { MsgCreateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { MsgDeleteAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { KeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { EncryptedKeyShare } from "./types/fairyring/keyshare/pub_key"; -import { QueryCommitmentsResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { MsgDeRegisterValidator } from "./types/fairyring/keyshare/tx"; -import { GetAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { Params } from "./types/fairyring/keyshare/params"; -import { QueryGetGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; -import { RequestAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { MsgOverrideLatestPubKey } from "./types/fairyring/keyshare/tx"; -import { MsgRegisterValidator } from "./types/fairyring/keyshare/tx"; -import { QueryVerifiableRandomnessResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { QueryPubKeyResponse } from "./types/fairyring/keyshare/query"; -import { MsgSendKeyshareResponse } from "./types/fairyring/keyshare/tx"; import { MsgCreateGeneralKeyShareResponse } from "./types/fairyring/keyshare/tx"; -import { QueryParamsRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; import { AggregatedKeyShare } from "./types/fairyring/keyshare/aggregated_key_share"; -import { MsgCreateLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; -import { QueryGetAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; -import { NoData } from "./types/fairyring/keyshare/packet"; -import { AggrKeyshareDataPacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryGetAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { KeyShareRequest } from "./types/fairyring/keyshare/requested_keyshare"; -import { QueryAllValidatorSetResponse } from "./types/fairyring/keyshare/query"; -import { QueryGetValidatorSetRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { MsgSendKeyshare } from "./types/fairyring/keyshare/tx"; +import { KeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { MsgDeRegisterValidator } from "./types/fairyring/keyshare/tx"; import { MsgDeleteAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; import { GenesisState } from "./types/fairyring/keyshare/genesis"; -import { MsgUpdateParams } from "./types/fairyring/keyshare/tx"; +import { NoData } from "./types/fairyring/keyshare/packet"; +import { QueryCommitmentsResponse } from "./types/fairyring/keyshare/query"; +import { MsgCreateLatestPubKey } from "./types/fairyring/keyshare/tx"; +import { KeyShare } from "./types/fairyring/keyshare/key_share"; +import { MsgCreateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { MsgUpdateParamsResponse } from "./types/fairyring/keyshare/tx"; +import { QueryGetKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { AggrKeyshareDataPacketData } from "./types/fairyring/keyshare/packet"; import { CurrentKeysPacketAck } from "./types/fairyring/keyshare/packet"; -import { ActivePubKey } from "./types/fairyring/keyshare/pub_key"; -import { IBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; -import { AuthorizedAddress } from "./types/fairyring/keyshare/authorized_address"; -import { MsgRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; -import { MsgUpdateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { QueryParamsResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { MsgOverrideLatestPubKey } from "./types/fairyring/keyshare/tx"; import { QueryVerifiableRandomnessQuery } from "./types/fairyring/keyshare/query"; -import { MsgUpdateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { QueuedPubKey } from "./types/fairyring/keyshare/pub_key"; -import { MsgCreateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { QueryGetValidatorSetResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { QueryAllAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; import { GeneralKeyShare } from "./types/fairyring/keyshare/general_key_share"; -import { QueryGetGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { RequestAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; import { CounterPartyIBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryAllKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { QueryAllGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; import { MsgOverrideLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; -import { AggrKeyshareDataPacketData } from "./types/fairyring/keyshare/packet"; +import { MsgSendKeyshareResponse } from "./types/fairyring/keyshare/tx"; +import { QueryAllValidatorSetResponse } from "./types/fairyring/keyshare/query"; +import { QueuedPubKey } from "./types/fairyring/keyshare/pub_key"; +import { AggrKeyshareDataPacketAck } from "./types/fairyring/keyshare/packet"; +import { QueryCommitmentsRequest } from "./types/fairyring/keyshare/query"; +import { QueryAllValidatorSetRequest } from "./types/fairyring/keyshare/query"; +import { QueryPubKeyResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { Commitments } from "./types/fairyring/keyshare/commitments"; +import { QueryAllGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { MsgCreateGeneralKeyShare } from "./types/fairyring/keyshare/tx"; +import { CurrentKeysPacketData } from "./types/fairyring/keyshare/packet"; +import { QueryVerifiableRandomnessResponse } from "./types/fairyring/keyshare/query"; +import { QueryAllAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { QueryPubKeyRequest } from "./types/fairyring/keyshare/query"; +import { MsgSendKeyshare } from "./types/fairyring/keyshare/tx"; +import { AuthorizedAddress } from "./types/fairyring/keyshare/authorized_address"; +import { EncryptedKeyShare } from "./types/fairyring/keyshare/pub_key"; +import { ActivePubKey } from "./types/fairyring/keyshare/pub_key"; +import { IBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryAllKeyShareResponse } from "./types/fairyring/keyshare/query"; import { QueryGetAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { MsgRegisterValidator } from "./types/fairyring/keyshare/tx"; +import { ValidatorSet } from "./types/fairyring/keyshare/validator_set"; +import { MsgDeleteAuthorizedAddress } from "./types/fairyring/keyshare/tx"; +import { QueryGetAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { MsgUpdateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; +import { MsgUpdateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { RequestAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { GetAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { GetAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; +import { QueryParamsRequest } from "./types/fairyring/keyshare/query"; +import { MsgUpdateParams } from "./types/fairyring/keyshare/tx"; +import { QueryGetAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; +import { MsgRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; +import { QueryAllAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; +import { Params } from "./types/fairyring/keyshare/params"; -export { QueryCommitmentsRequest, QueryGetValidatorSetResponse, MsgCreateLatestPubKey, Commitments, QueryPubKeyRequest, CurrentKeysPacketData, GetAggrKeysharePacketAck, QueryGetAggregatedKeyShareResponse, MsgCreateGeneralKeyShare, QueryParamsResponse, QueryAllAggregatedKeyShareResponse, KeyShare, ValidatorSet, RequestAggrKeysharePacketAck, QueryAllValidatorSetRequest, MsgUpdateParamsResponse, MsgDeRegisterValidatorResponse, MsgCreateAuthorizedAddress, MsgDeleteAuthorizedAddress, KeysharePacketData, EncryptedKeyShare, QueryCommitmentsResponse, QueryAllAggregatedKeyShareRequest, MsgDeRegisterValidator, GetAggrKeysharePacketData, Params, QueryGetGeneralKeyShareRequest, QueryAllAuthorizedAddressResponse, RequestAggrKeysharePacketData, MsgOverrideLatestPubKey, MsgRegisterValidator, QueryVerifiableRandomnessResponse, QueryAllKeyShareResponse, QueryPubKeyResponse, MsgSendKeyshareResponse, MsgCreateGeneralKeyShareResponse, QueryParamsRequest, QueryGetKeyShareRequest, QueryAllKeyShareRequest, QueryAllAuthorizedAddressRequest, AggregatedKeyShare, MsgCreateLatestPubKeyResponse, QueryGetAuthorizedAddressRequest, NoData, AggrKeyshareDataPacketAck, QueryGetAggregatedKeyShareRequest, QueryGetKeyShareResponse, QueryAllGeneralKeyShareResponse, KeyShareRequest, QueryAllValidatorSetResponse, QueryGetValidatorSetRequest, QueryAllGeneralKeyShareRequest, MsgSendKeyshare, MsgDeleteAuthorizedAddressResponse, GenesisState, MsgUpdateParams, CurrentKeysPacketAck, ActivePubKey, IBCInfo, AuthorizedAddress, MsgRegisterValidatorResponse, MsgUpdateAuthorizedAddressResponse, QueryVerifiableRandomnessQuery, MsgUpdateAuthorizedAddress, QueuedPubKey, MsgCreateAuthorizedAddressResponse, GeneralKeyShare, QueryGetGeneralKeyShareResponse, CounterPartyIBCInfo, MsgOverrideLatestPubKeyResponse, AggrKeyshareDataPacketData, QueryGetAuthorizedAddressResponse }; +export { KeyShareRequest, QueryGetValidatorSetRequest, QueryAllAggregatedKeyShareResponse, MsgDeRegisterValidatorResponse, MsgCreateLatestPubKeyResponse, MsgCreateAuthorizedAddress, MsgCreateGeneralKeyShareResponse, AggregatedKeyShare, KeysharePacketData, MsgDeRegisterValidator, MsgDeleteAuthorizedAddressResponse, GenesisState, NoData, QueryCommitmentsResponse, MsgCreateLatestPubKey, KeyShare, MsgCreateAuthorizedAddressResponse, MsgUpdateParamsResponse, QueryGetKeyShareRequest, AggrKeyshareDataPacketData, CurrentKeysPacketAck, QueryParamsResponse, QueryGetKeyShareResponse, MsgOverrideLatestPubKey, QueryVerifiableRandomnessQuery, QueryGetValidatorSetResponse, QueryGetAggregatedKeyShareResponse, QueryAllAuthorizedAddressResponse, GeneralKeyShare, RequestAggrKeysharePacketAck, CounterPartyIBCInfo, QueryAllKeyShareRequest, QueryAllGeneralKeyShareRequest, MsgOverrideLatestPubKeyResponse, MsgSendKeyshareResponse, QueryAllValidatorSetResponse, QueuedPubKey, AggrKeyshareDataPacketAck, QueryCommitmentsRequest, QueryAllValidatorSetRequest, QueryPubKeyResponse, QueryGetGeneralKeyShareResponse, Commitments, QueryAllGeneralKeyShareResponse, MsgCreateGeneralKeyShare, CurrentKeysPacketData, QueryVerifiableRandomnessResponse, QueryAllAggregatedKeyShareRequest, QueryPubKeyRequest, MsgSendKeyshare, AuthorizedAddress, EncryptedKeyShare, ActivePubKey, IBCInfo, QueryAllKeyShareResponse, QueryGetAuthorizedAddressResponse, QueryGetGeneralKeyShareRequest, MsgRegisterValidator, ValidatorSet, MsgDeleteAuthorizedAddress, QueryGetAggregatedKeyShareRequest, MsgUpdateAuthorizedAddress, MsgUpdateAuthorizedAddressResponse, RequestAggrKeysharePacketData, GetAggrKeysharePacketData, GetAggrKeysharePacketAck, QueryParamsRequest, MsgUpdateParams, QueryGetAuthorizedAddressRequest, MsgRegisterValidatorResponse, QueryAllAuthorizedAddressRequest, Params }; -type sendQueryCommitmentsRequestParams = { - value: QueryCommitmentsRequest, +type sendKeyShareRequestParams = { + value: KeyShareRequest, fee?: StdFee, memo?: string }; -type sendQueryGetValidatorSetResponseParams = { - value: QueryGetValidatorSetResponse, +type sendQueryGetValidatorSetRequestParams = { + value: QueryGetValidatorSetRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateLatestPubKeyParams = { - value: MsgCreateLatestPubKey, +type sendQueryAllAggregatedKeyShareResponseParams = { + value: QueryAllAggregatedKeyShareResponse, fee?: StdFee, memo?: string }; -type sendCommitmentsParams = { - value: Commitments, +type sendMsgDeRegisterValidatorResponseParams = { + value: MsgDeRegisterValidatorResponse, fee?: StdFee, memo?: string }; -type sendQueryPubKeyRequestParams = { - value: QueryPubKeyRequest, +type sendMsgCreateLatestPubKeyResponseParams = { + value: MsgCreateLatestPubKeyResponse, fee?: StdFee, memo?: string }; -type sendCurrentKeysPacketDataParams = { - value: CurrentKeysPacketData, +type sendMsgCreateAuthorizedAddressParams = { + value: MsgCreateAuthorizedAddress, fee?: StdFee, memo?: string }; -type sendGetAggrKeysharePacketAckParams = { - value: GetAggrKeysharePacketAck, +type sendMsgCreateGeneralKeyShareResponseParams = { + value: MsgCreateGeneralKeyShareResponse, fee?: StdFee, memo?: string }; -type sendQueryGetAggregatedKeyShareResponseParams = { - value: QueryGetAggregatedKeyShareResponse, +type sendAggregatedKeyShareParams = { + value: AggregatedKeyShare, fee?: StdFee, memo?: string }; -type sendMsgCreateGeneralKeyShareParams = { - value: MsgCreateGeneralKeyShare, +type sendKeysharePacketDataParams = { + value: KeysharePacketData, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgDeRegisterValidatorParams = { + value: MsgDeRegisterValidator, fee?: StdFee, memo?: string }; -type sendQueryAllAggregatedKeyShareResponseParams = { - value: QueryAllAggregatedKeyShareResponse, +type sendMsgDeleteAuthorizedAddressResponseParams = { + value: MsgDeleteAuthorizedAddressResponse, fee?: StdFee, memo?: string }; -type sendKeyShareParams = { - value: KeyShare, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendValidatorSetParams = { - value: ValidatorSet, +type sendNoDataParams = { + value: NoData, fee?: StdFee, memo?: string }; -type sendRequestAggrKeysharePacketAckParams = { - value: RequestAggrKeysharePacketAck, +type sendQueryCommitmentsResponseParams = { + value: QueryCommitmentsResponse, fee?: StdFee, memo?: string }; -type sendQueryAllValidatorSetRequestParams = { - value: QueryAllValidatorSetRequest, +type sendMsgCreateLatestPubKeyParams = { + value: MsgCreateLatestPubKey, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendKeyShareParams = { + value: KeyShare, fee?: StdFee, memo?: string }; -type sendMsgDeRegisterValidatorResponseParams = { - value: MsgDeRegisterValidatorResponse, +type sendMsgCreateAuthorizedAddressResponseParams = { + value: MsgCreateAuthorizedAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateAuthorizedAddressParams = { - value: MsgCreateAuthorizedAddress, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgDeleteAuthorizedAddressParams = { - value: MsgDeleteAuthorizedAddress, +type sendQueryGetKeyShareRequestParams = { + value: QueryGetKeyShareRequest, fee?: StdFee, memo?: string }; -type sendKeysharePacketDataParams = { - value: KeysharePacketData, +type sendAggrKeyshareDataPacketDataParams = { + value: AggrKeyshareDataPacketData, fee?: StdFee, memo?: string }; -type sendEncryptedKeyShareParams = { - value: EncryptedKeyShare, +type sendCurrentKeysPacketAckParams = { + value: CurrentKeysPacketAck, fee?: StdFee, memo?: string }; -type sendQueryCommitmentsResponseParams = { - value: QueryCommitmentsResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryAllAggregatedKeyShareRequestParams = { - value: QueryAllAggregatedKeyShareRequest, +type sendQueryGetKeyShareResponseParams = { + value: QueryGetKeyShareResponse, fee?: StdFee, memo?: string }; -type sendMsgDeRegisterValidatorParams = { - value: MsgDeRegisterValidator, +type sendMsgOverrideLatestPubKeyParams = { + value: MsgOverrideLatestPubKey, fee?: StdFee, memo?: string }; -type sendGetAggrKeysharePacketDataParams = { - value: GetAggrKeysharePacketData, +type sendQueryVerifiableRandomnessQueryParams = { + value: QueryVerifiableRandomnessQuery, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryGetValidatorSetResponseParams = { + value: QueryGetValidatorSetResponse, fee?: StdFee, memo?: string }; -type sendQueryGetGeneralKeyShareRequestParams = { - value: QueryGetGeneralKeyShareRequest, +type sendQueryGetAggregatedKeyShareResponseParams = { + value: QueryGetAggregatedKeyShareResponse, fee?: StdFee, memo?: string }; @@ -250,38 +250,38 @@ type sendQueryAllAuthorizedAddressResponseParams = { memo?: string }; -type sendRequestAggrKeysharePacketDataParams = { - value: RequestAggrKeysharePacketData, +type sendGeneralKeyShareParams = { + value: GeneralKeyShare, fee?: StdFee, memo?: string }; -type sendMsgOverrideLatestPubKeyParams = { - value: MsgOverrideLatestPubKey, +type sendRequestAggrKeysharePacketAckParams = { + value: RequestAggrKeysharePacketAck, fee?: StdFee, memo?: string }; -type sendMsgRegisterValidatorParams = { - value: MsgRegisterValidator, +type sendCounterPartyIBCInfoParams = { + value: CounterPartyIBCInfo, fee?: StdFee, memo?: string }; -type sendQueryVerifiableRandomnessResponseParams = { - value: QueryVerifiableRandomnessResponse, +type sendQueryAllKeyShareRequestParams = { + value: QueryAllKeyShareRequest, fee?: StdFee, memo?: string }; -type sendQueryAllKeyShareResponseParams = { - value: QueryAllKeyShareResponse, +type sendQueryAllGeneralKeyShareRequestParams = { + value: QueryAllGeneralKeyShareRequest, fee?: StdFee, memo?: string }; -type sendQueryPubKeyResponseParams = { - value: QueryPubKeyResponse, +type sendMsgOverrideLatestPubKeyResponseParams = { + value: MsgOverrideLatestPubKeyResponse, fee?: StdFee, memo?: string }; @@ -292,515 +292,515 @@ type sendMsgSendKeyshareResponseParams = { memo?: string }; -type sendMsgCreateGeneralKeyShareResponseParams = { - value: MsgCreateGeneralKeyShareResponse, +type sendQueryAllValidatorSetResponseParams = { + value: QueryAllValidatorSetResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueuedPubKeyParams = { + value: QueuedPubKey, fee?: StdFee, memo?: string }; -type sendQueryGetKeyShareRequestParams = { - value: QueryGetKeyShareRequest, +type sendAggrKeyshareDataPacketAckParams = { + value: AggrKeyshareDataPacketAck, fee?: StdFee, memo?: string }; -type sendQueryAllKeyShareRequestParams = { - value: QueryAllKeyShareRequest, +type sendQueryCommitmentsRequestParams = { + value: QueryCommitmentsRequest, fee?: StdFee, memo?: string }; -type sendQueryAllAuthorizedAddressRequestParams = { - value: QueryAllAuthorizedAddressRequest, +type sendQueryAllValidatorSetRequestParams = { + value: QueryAllValidatorSetRequest, fee?: StdFee, memo?: string }; -type sendAggregatedKeyShareParams = { - value: AggregatedKeyShare, +type sendQueryPubKeyResponseParams = { + value: QueryPubKeyResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateLatestPubKeyResponseParams = { - value: MsgCreateLatestPubKeyResponse, +type sendQueryGetGeneralKeyShareResponseParams = { + value: QueryGetGeneralKeyShareResponse, fee?: StdFee, memo?: string }; -type sendQueryGetAuthorizedAddressRequestParams = { - value: QueryGetAuthorizedAddressRequest, +type sendCommitmentsParams = { + value: Commitments, fee?: StdFee, memo?: string }; -type sendNoDataParams = { - value: NoData, +type sendQueryAllGeneralKeyShareResponseParams = { + value: QueryAllGeneralKeyShareResponse, fee?: StdFee, memo?: string }; -type sendAggrKeyshareDataPacketAckParams = { - value: AggrKeyshareDataPacketAck, +type sendMsgCreateGeneralKeyShareParams = { + value: MsgCreateGeneralKeyShare, fee?: StdFee, memo?: string }; -type sendQueryGetAggregatedKeyShareRequestParams = { - value: QueryGetAggregatedKeyShareRequest, +type sendCurrentKeysPacketDataParams = { + value: CurrentKeysPacketData, fee?: StdFee, memo?: string }; -type sendQueryGetKeyShareResponseParams = { - value: QueryGetKeyShareResponse, +type sendQueryVerifiableRandomnessResponseParams = { + value: QueryVerifiableRandomnessResponse, fee?: StdFee, memo?: string }; -type sendQueryAllGeneralKeyShareResponseParams = { - value: QueryAllGeneralKeyShareResponse, +type sendQueryAllAggregatedKeyShareRequestParams = { + value: QueryAllAggregatedKeyShareRequest, fee?: StdFee, memo?: string }; -type sendKeyShareRequestParams = { - value: KeyShareRequest, +type sendQueryPubKeyRequestParams = { + value: QueryPubKeyRequest, fee?: StdFee, memo?: string }; -type sendQueryAllValidatorSetResponseParams = { - value: QueryAllValidatorSetResponse, +type sendMsgSendKeyshareParams = { + value: MsgSendKeyshare, fee?: StdFee, memo?: string }; -type sendQueryGetValidatorSetRequestParams = { - value: QueryGetValidatorSetRequest, +type sendAuthorizedAddressParams = { + value: AuthorizedAddress, fee?: StdFee, memo?: string }; -type sendQueryAllGeneralKeyShareRequestParams = { - value: QueryAllGeneralKeyShareRequest, +type sendEncryptedKeyShareParams = { + value: EncryptedKeyShare, fee?: StdFee, memo?: string }; -type sendMsgSendKeyshareParams = { - value: MsgSendKeyshare, +type sendActivePubKeyParams = { + value: ActivePubKey, fee?: StdFee, memo?: string }; -type sendMsgDeleteAuthorizedAddressResponseParams = { - value: MsgDeleteAuthorizedAddressResponse, +type sendIBCInfoParams = { + value: IBCInfo, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAllKeyShareResponseParams = { + value: QueryAllKeyShareResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryGetAuthorizedAddressResponseParams = { + value: QueryGetAuthorizedAddressResponse, fee?: StdFee, memo?: string }; -type sendCurrentKeysPacketAckParams = { - value: CurrentKeysPacketAck, +type sendQueryGetGeneralKeyShareRequestParams = { + value: QueryGetGeneralKeyShareRequest, fee?: StdFee, memo?: string }; -type sendActivePubKeyParams = { - value: ActivePubKey, +type sendMsgRegisterValidatorParams = { + value: MsgRegisterValidator, fee?: StdFee, memo?: string }; -type sendIBCInfoParams = { - value: IBCInfo, +type sendValidatorSetParams = { + value: ValidatorSet, fee?: StdFee, memo?: string }; -type sendAuthorizedAddressParams = { - value: AuthorizedAddress, +type sendMsgDeleteAuthorizedAddressParams = { + value: MsgDeleteAuthorizedAddress, fee?: StdFee, memo?: string }; -type sendMsgRegisterValidatorResponseParams = { - value: MsgRegisterValidatorResponse, +type sendQueryGetAggregatedKeyShareRequestParams = { + value: QueryGetAggregatedKeyShareRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateAuthorizedAddressResponseParams = { - value: MsgUpdateAuthorizedAddressResponse, +type sendMsgUpdateAuthorizedAddressParams = { + value: MsgUpdateAuthorizedAddress, fee?: StdFee, memo?: string }; -type sendQueryVerifiableRandomnessQueryParams = { - value: QueryVerifiableRandomnessQuery, +type sendMsgUpdateAuthorizedAddressResponseParams = { + value: MsgUpdateAuthorizedAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateAuthorizedAddressParams = { - value: MsgUpdateAuthorizedAddress, +type sendRequestAggrKeysharePacketDataParams = { + value: RequestAggrKeysharePacketData, fee?: StdFee, memo?: string }; -type sendQueuedPubKeyParams = { - value: QueuedPubKey, +type sendGetAggrKeysharePacketDataParams = { + value: GetAggrKeysharePacketData, fee?: StdFee, memo?: string }; -type sendMsgCreateAuthorizedAddressResponseParams = { - value: MsgCreateAuthorizedAddressResponse, +type sendGetAggrKeysharePacketAckParams = { + value: GetAggrKeysharePacketAck, fee?: StdFee, memo?: string }; -type sendGeneralKeyShareParams = { - value: GeneralKeyShare, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryGetGeneralKeyShareResponseParams = { - value: QueryGetGeneralKeyShareResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendCounterPartyIBCInfoParams = { - value: CounterPartyIBCInfo, +type sendQueryGetAuthorizedAddressRequestParams = { + value: QueryGetAuthorizedAddressRequest, fee?: StdFee, memo?: string }; -type sendMsgOverrideLatestPubKeyResponseParams = { - value: MsgOverrideLatestPubKeyResponse, +type sendMsgRegisterValidatorResponseParams = { + value: MsgRegisterValidatorResponse, fee?: StdFee, memo?: string }; -type sendAggrKeyshareDataPacketDataParams = { - value: AggrKeyshareDataPacketData, +type sendQueryAllAuthorizedAddressRequestParams = { + value: QueryAllAuthorizedAddressRequest, fee?: StdFee, memo?: string }; -type sendQueryGetAuthorizedAddressResponseParams = { - value: QueryGetAuthorizedAddressResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type queryCommitmentsRequestParams = { - value: QueryCommitmentsRequest, +type keyShareRequestParams = { + value: KeyShareRequest, }; -type queryGetValidatorSetResponseParams = { - value: QueryGetValidatorSetResponse, +type queryGetValidatorSetRequestParams = { + value: QueryGetValidatorSetRequest, }; -type msgCreateLatestPubKeyParams = { - value: MsgCreateLatestPubKey, +type queryAllAggregatedKeyShareResponseParams = { + value: QueryAllAggregatedKeyShareResponse, }; -type commitmentsParams = { - value: Commitments, +type msgDeRegisterValidatorResponseParams = { + value: MsgDeRegisterValidatorResponse, }; -type queryPubKeyRequestParams = { - value: QueryPubKeyRequest, +type msgCreateLatestPubKeyResponseParams = { + value: MsgCreateLatestPubKeyResponse, }; -type currentKeysPacketDataParams = { - value: CurrentKeysPacketData, +type msgCreateAuthorizedAddressParams = { + value: MsgCreateAuthorizedAddress, }; -type getAggrKeysharePacketAckParams = { - value: GetAggrKeysharePacketAck, +type msgCreateGeneralKeyShareResponseParams = { + value: MsgCreateGeneralKeyShareResponse, }; -type queryGetAggregatedKeyShareResponseParams = { - value: QueryGetAggregatedKeyShareResponse, +type aggregatedKeyShareParams = { + value: AggregatedKeyShare, }; -type msgCreateGeneralKeyShareParams = { - value: MsgCreateGeneralKeyShare, +type keysharePacketDataParams = { + value: KeysharePacketData, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgDeRegisterValidatorParams = { + value: MsgDeRegisterValidator, }; -type queryAllAggregatedKeyShareResponseParams = { - value: QueryAllAggregatedKeyShareResponse, +type msgDeleteAuthorizedAddressResponseParams = { + value: MsgDeleteAuthorizedAddressResponse, }; -type keyShareParams = { - value: KeyShare, +type genesisStateParams = { + value: GenesisState, }; -type validatorSetParams = { - value: ValidatorSet, +type noDataParams = { + value: NoData, }; -type requestAggrKeysharePacketAckParams = { - value: RequestAggrKeysharePacketAck, +type queryCommitmentsResponseParams = { + value: QueryCommitmentsResponse, }; -type queryAllValidatorSetRequestParams = { - value: QueryAllValidatorSetRequest, +type msgCreateLatestPubKeyParams = { + value: MsgCreateLatestPubKey, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type keyShareParams = { + value: KeyShare, }; -type msgDeRegisterValidatorResponseParams = { - value: MsgDeRegisterValidatorResponse, +type msgCreateAuthorizedAddressResponseParams = { + value: MsgCreateAuthorizedAddressResponse, }; -type msgCreateAuthorizedAddressParams = { - value: MsgCreateAuthorizedAddress, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type msgDeleteAuthorizedAddressParams = { - value: MsgDeleteAuthorizedAddress, +type queryGetKeyShareRequestParams = { + value: QueryGetKeyShareRequest, }; -type keysharePacketDataParams = { - value: KeysharePacketData, +type aggrKeyshareDataPacketDataParams = { + value: AggrKeyshareDataPacketData, }; -type encryptedKeyShareParams = { - value: EncryptedKeyShare, +type currentKeysPacketAckParams = { + value: CurrentKeysPacketAck, }; -type queryCommitmentsResponseParams = { - value: QueryCommitmentsResponse, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryAllAggregatedKeyShareRequestParams = { - value: QueryAllAggregatedKeyShareRequest, +type queryGetKeyShareResponseParams = { + value: QueryGetKeyShareResponse, }; -type msgDeRegisterValidatorParams = { - value: MsgDeRegisterValidator, +type msgOverrideLatestPubKeyParams = { + value: MsgOverrideLatestPubKey, }; -type getAggrKeysharePacketDataParams = { - value: GetAggrKeysharePacketData, +type queryVerifiableRandomnessQueryParams = { + value: QueryVerifiableRandomnessQuery, }; -type paramsParams = { - value: Params, +type queryGetValidatorSetResponseParams = { + value: QueryGetValidatorSetResponse, }; -type queryGetGeneralKeyShareRequestParams = { - value: QueryGetGeneralKeyShareRequest, +type queryGetAggregatedKeyShareResponseParams = { + value: QueryGetAggregatedKeyShareResponse, }; type queryAllAuthorizedAddressResponseParams = { value: QueryAllAuthorizedAddressResponse, }; -type requestAggrKeysharePacketDataParams = { - value: RequestAggrKeysharePacketData, +type generalKeyShareParams = { + value: GeneralKeyShare, }; -type msgOverrideLatestPubKeyParams = { - value: MsgOverrideLatestPubKey, +type requestAggrKeysharePacketAckParams = { + value: RequestAggrKeysharePacketAck, }; -type msgRegisterValidatorParams = { - value: MsgRegisterValidator, +type counterPartyIbcinfoParams = { + value: CounterPartyIBCInfo, }; -type queryVerifiableRandomnessResponseParams = { - value: QueryVerifiableRandomnessResponse, +type queryAllKeyShareRequestParams = { + value: QueryAllKeyShareRequest, }; -type queryAllKeyShareResponseParams = { - value: QueryAllKeyShareResponse, +type queryAllGeneralKeyShareRequestParams = { + value: QueryAllGeneralKeyShareRequest, }; -type queryPubKeyResponseParams = { - value: QueryPubKeyResponse, +type msgOverrideLatestPubKeyResponseParams = { + value: MsgOverrideLatestPubKeyResponse, }; type msgSendKeyshareResponseParams = { value: MsgSendKeyshareResponse, }; -type msgCreateGeneralKeyShareResponseParams = { - value: MsgCreateGeneralKeyShareResponse, +type queryAllValidatorSetResponseParams = { + value: QueryAllValidatorSetResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queuedPubKeyParams = { + value: QueuedPubKey, }; -type queryGetKeyShareRequestParams = { - value: QueryGetKeyShareRequest, +type aggrKeyshareDataPacketAckParams = { + value: AggrKeyshareDataPacketAck, }; -type queryAllKeyShareRequestParams = { - value: QueryAllKeyShareRequest, +type queryCommitmentsRequestParams = { + value: QueryCommitmentsRequest, }; -type queryAllAuthorizedAddressRequestParams = { - value: QueryAllAuthorizedAddressRequest, +type queryAllValidatorSetRequestParams = { + value: QueryAllValidatorSetRequest, }; -type aggregatedKeyShareParams = { - value: AggregatedKeyShare, +type queryPubKeyResponseParams = { + value: QueryPubKeyResponse, }; -type msgCreateLatestPubKeyResponseParams = { - value: MsgCreateLatestPubKeyResponse, +type queryGetGeneralKeyShareResponseParams = { + value: QueryGetGeneralKeyShareResponse, }; -type queryGetAuthorizedAddressRequestParams = { - value: QueryGetAuthorizedAddressRequest, +type commitmentsParams = { + value: Commitments, }; -type noDataParams = { - value: NoData, +type queryAllGeneralKeyShareResponseParams = { + value: QueryAllGeneralKeyShareResponse, }; -type aggrKeyshareDataPacketAckParams = { - value: AggrKeyshareDataPacketAck, +type msgCreateGeneralKeyShareParams = { + value: MsgCreateGeneralKeyShare, }; -type queryGetAggregatedKeyShareRequestParams = { - value: QueryGetAggregatedKeyShareRequest, +type currentKeysPacketDataParams = { + value: CurrentKeysPacketData, }; -type queryGetKeyShareResponseParams = { - value: QueryGetKeyShareResponse, +type queryVerifiableRandomnessResponseParams = { + value: QueryVerifiableRandomnessResponse, }; -type queryAllGeneralKeyShareResponseParams = { - value: QueryAllGeneralKeyShareResponse, +type queryAllAggregatedKeyShareRequestParams = { + value: QueryAllAggregatedKeyShareRequest, }; -type keyShareRequestParams = { - value: KeyShareRequest, +type queryPubKeyRequestParams = { + value: QueryPubKeyRequest, }; -type queryAllValidatorSetResponseParams = { - value: QueryAllValidatorSetResponse, +type msgSendKeyshareParams = { + value: MsgSendKeyshare, }; -type queryGetValidatorSetRequestParams = { - value: QueryGetValidatorSetRequest, +type authorizedAddressParams = { + value: AuthorizedAddress, }; -type queryAllGeneralKeyShareRequestParams = { - value: QueryAllGeneralKeyShareRequest, +type encryptedKeyShareParams = { + value: EncryptedKeyShare, }; -type msgSendKeyshareParams = { - value: MsgSendKeyshare, +type activePubKeyParams = { + value: ActivePubKey, }; -type msgDeleteAuthorizedAddressResponseParams = { - value: MsgDeleteAuthorizedAddressResponse, +type ibcinfoParams = { + value: IBCInfo, }; -type genesisStateParams = { - value: GenesisState, +type queryAllKeyShareResponseParams = { + value: QueryAllKeyShareResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryGetAuthorizedAddressResponseParams = { + value: QueryGetAuthorizedAddressResponse, }; -type currentKeysPacketAckParams = { - value: CurrentKeysPacketAck, +type queryGetGeneralKeyShareRequestParams = { + value: QueryGetGeneralKeyShareRequest, }; -type activePubKeyParams = { - value: ActivePubKey, +type msgRegisterValidatorParams = { + value: MsgRegisterValidator, }; -type ibcinfoParams = { - value: IBCInfo, +type validatorSetParams = { + value: ValidatorSet, }; -type authorizedAddressParams = { - value: AuthorizedAddress, +type msgDeleteAuthorizedAddressParams = { + value: MsgDeleteAuthorizedAddress, +}; + +type queryGetAggregatedKeyShareRequestParams = { + value: QueryGetAggregatedKeyShareRequest, }; -type msgRegisterValidatorResponseParams = { - value: MsgRegisterValidatorResponse, +type msgUpdateAuthorizedAddressParams = { + value: MsgUpdateAuthorizedAddress, }; type msgUpdateAuthorizedAddressResponseParams = { value: MsgUpdateAuthorizedAddressResponse, }; -type queryVerifiableRandomnessQueryParams = { - value: QueryVerifiableRandomnessQuery, -}; - -type msgUpdateAuthorizedAddressParams = { - value: MsgUpdateAuthorizedAddress, +type requestAggrKeysharePacketDataParams = { + value: RequestAggrKeysharePacketData, }; -type queuedPubKeyParams = { - value: QueuedPubKey, +type getAggrKeysharePacketDataParams = { + value: GetAggrKeysharePacketData, }; -type msgCreateAuthorizedAddressResponseParams = { - value: MsgCreateAuthorizedAddressResponse, +type getAggrKeysharePacketAckParams = { + value: GetAggrKeysharePacketAck, }; -type generalKeyShareParams = { - value: GeneralKeyShare, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type queryGetGeneralKeyShareResponseParams = { - value: QueryGetGeneralKeyShareResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type counterPartyIbcinfoParams = { - value: CounterPartyIBCInfo, +type queryGetAuthorizedAddressRequestParams = { + value: QueryGetAuthorizedAddressRequest, }; -type msgOverrideLatestPubKeyResponseParams = { - value: MsgOverrideLatestPubKeyResponse, +type msgRegisterValidatorResponseParams = { + value: MsgRegisterValidatorResponse, }; -type aggrKeyshareDataPacketDataParams = { - value: AggrKeyshareDataPacketData, +type queryAllAuthorizedAddressRequestParams = { + value: QueryAllAuthorizedAddressRequest, }; -type queryGetAuthorizedAddressResponseParams = { - value: QueryGetAuthorizedAddressResponse, +type paramsParams = { + value: Params, }; @@ -833,381 +833,381 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryCommitmentsRequest({ value, fee, memo }: sendQueryCommitmentsRequestParams): Promise { + async sendKeyShareRequest({ value, fee, memo }: sendKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommitmentsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCommitmentsRequest({ value: QueryCommitmentsRequest.fromPartial(value) }) + let msg = this.keyShareRequest({ value: KeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCommitmentsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetValidatorSetResponse({ value, fee, memo }: sendQueryGetValidatorSetResponseParams): Promise { + async sendQueryGetValidatorSetRequest({ value, fee, memo }: sendQueryGetValidatorSetRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetValidatorSetResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetValidatorSetRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetValidatorSetResponse({ value: QueryGetValidatorSetResponse.fromPartial(value) }) + let msg = this.queryGetValidatorSetRequest({ value: QueryGetValidatorSetRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetValidatorSetResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetValidatorSetRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateLatestPubKey({ value, fee, memo }: sendMsgCreateLatestPubKeyParams): Promise { + async sendQueryAllAggregatedKeyShareResponse({ value, fee, memo }: sendQueryAllAggregatedKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateLatestPubKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateLatestPubKey({ value: MsgCreateLatestPubKey.fromPartial(value) }) + let msg = this.queryAllAggregatedKeyShareResponse({ value: QueryAllAggregatedKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateLatestPubKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCommitments({ value, fee, memo }: sendCommitmentsParams): Promise { + async sendMsgDeRegisterValidatorResponse({ value, fee, memo }: sendMsgDeRegisterValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommitments: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeRegisterValidatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.commitments({ value: Commitments.fromPartial(value) }) + let msg = this.msgDeRegisterValidatorResponse({ value: MsgDeRegisterValidatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCommitments: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeRegisterValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPubKeyRequest({ value, fee, memo }: sendQueryPubKeyRequestParams): Promise { + async sendMsgCreateLatestPubKeyResponse({ value, fee, memo }: sendMsgCreateLatestPubKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPubKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateLatestPubKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPubKeyRequest({ value: QueryPubKeyRequest.fromPartial(value) }) + let msg = this.msgCreateLatestPubKeyResponse({ value: MsgCreateLatestPubKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPubKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateLatestPubKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCurrentKeysPacketData({ value, fee, memo }: sendCurrentKeysPacketDataParams): Promise { + async sendMsgCreateAuthorizedAddress({ value, fee, memo }: sendMsgCreateAuthorizedAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendCurrentKeysPacketData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateAuthorizedAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.currentKeysPacketData({ value: CurrentKeysPacketData.fromPartial(value) }) + let msg = this.msgCreateAuthorizedAddress({ value: MsgCreateAuthorizedAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCurrentKeysPacketData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateAuthorizedAddress: Could not broadcast Tx: '+ e.message) } }, - async sendGetAggrKeysharePacketAck({ value, fee, memo }: sendGetAggrKeysharePacketAckParams): Promise { + async sendMsgCreateGeneralKeyShareResponse({ value, fee, memo }: sendMsgCreateGeneralKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetAggrKeysharePacketAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getAggrKeysharePacketAck({ value: GetAggrKeysharePacketAck.fromPartial(value) }) + let msg = this.msgCreateGeneralKeyShareResponse({ value: MsgCreateGeneralKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetAggrKeysharePacketAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetAggregatedKeyShareResponse({ value, fee, memo }: sendQueryGetAggregatedKeyShareResponseParams): Promise { + async sendAggregatedKeyShare({ value, fee, memo }: sendAggregatedKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAggregatedKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetAggregatedKeyShareResponse({ value: QueryGetAggregatedKeyShareResponse.fromPartial(value) }) + let msg = this.aggregatedKeyShare({ value: AggregatedKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAggregatedKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGeneralKeyShare({ value, fee, memo }: sendMsgCreateGeneralKeyShareParams): Promise { + async sendKeysharePacketData({ value, fee, memo }: sendKeysharePacketDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGeneralKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeysharePacketData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGeneralKeyShare({ value: MsgCreateGeneralKeyShare.fromPartial(value) }) + let msg = this.keysharePacketData({ value: KeysharePacketData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGeneralKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeysharePacketData: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgDeRegisterValidator({ value, fee, memo }: sendMsgDeRegisterValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeRegisterValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.msgDeRegisterValidator({ value: MsgDeRegisterValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeRegisterValidator: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllAggregatedKeyShareResponse({ value, fee, memo }: sendQueryAllAggregatedKeyShareResponseParams): Promise { + async sendMsgDeleteAuthorizedAddressResponse({ value, fee, memo }: sendMsgDeleteAuthorizedAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeleteAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllAggregatedKeyShareResponse({ value: QueryAllAggregatedKeyShareResponse.fromPartial(value) }) + let msg = this.msgDeleteAuthorizedAddressResponse({ value: MsgDeleteAuthorizedAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeleteAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendKeyShare({ value, fee, memo }: sendKeyShareParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keyShare({ value: KeyShare.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSet({ value, fee, memo }: sendValidatorSetParams): Promise { + async sendNoData({ value, fee, memo }: sendNoDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSet: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendNoData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.validatorSet({ value: ValidatorSet.fromPartial(value) }) + let msg = this.noData({ value: NoData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendValidatorSet: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendNoData: Could not broadcast Tx: '+ e.message) } }, - async sendRequestAggrKeysharePacketAck({ value, fee, memo }: sendRequestAggrKeysharePacketAckParams): Promise { + async sendQueryCommitmentsResponse({ value, fee, memo }: sendQueryCommitmentsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendRequestAggrKeysharePacketAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCommitmentsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.requestAggrKeysharePacketAck({ value: RequestAggrKeysharePacketAck.fromPartial(value) }) + let msg = this.queryCommitmentsResponse({ value: QueryCommitmentsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRequestAggrKeysharePacketAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommitmentsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllValidatorSetRequest({ value, fee, memo }: sendQueryAllValidatorSetRequestParams): Promise { + async sendMsgCreateLatestPubKey({ value, fee, memo }: sendMsgCreateLatestPubKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllValidatorSetRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateLatestPubKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllValidatorSetRequest({ value: QueryAllValidatorSetRequest.fromPartial(value) }) + let msg = this.msgCreateLatestPubKey({ value: MsgCreateLatestPubKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllValidatorSetRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateLatestPubKey: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendKeyShare({ value, fee, memo }: sendKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.keyShare({ value: KeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeRegisterValidatorResponse({ value, fee, memo }: sendMsgDeRegisterValidatorResponseParams): Promise { + async sendMsgCreateAuthorizedAddressResponse({ value, fee, memo }: sendMsgCreateAuthorizedAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeRegisterValidatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeRegisterValidatorResponse({ value: MsgDeRegisterValidatorResponse.fromPartial(value) }) + let msg = this.msgCreateAuthorizedAddressResponse({ value: MsgCreateAuthorizedAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeRegisterValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateAuthorizedAddress({ value, fee, memo }: sendMsgCreateAuthorizedAddressParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateAuthorizedAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateAuthorizedAddress({ value: MsgCreateAuthorizedAddress.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateAuthorizedAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeleteAuthorizedAddress({ value, fee, memo }: sendMsgDeleteAuthorizedAddressParams): Promise { + async sendQueryGetKeyShareRequest({ value, fee, memo }: sendQueryGetKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeleteAuthorizedAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeleteAuthorizedAddress({ value: MsgDeleteAuthorizedAddress.fromPartial(value) }) + let msg = this.queryGetKeyShareRequest({ value: QueryGetKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeleteAuthorizedAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendKeysharePacketData({ value, fee, memo }: sendKeysharePacketDataParams): Promise { + async sendAggrKeyshareDataPacketData({ value, fee, memo }: sendAggrKeyshareDataPacketDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeysharePacketData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAggrKeyshareDataPacketData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keysharePacketData({ value: KeysharePacketData.fromPartial(value) }) + let msg = this.aggrKeyshareDataPacketData({ value: AggrKeyshareDataPacketData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeysharePacketData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAggrKeyshareDataPacketData: Could not broadcast Tx: '+ e.message) } }, - async sendEncryptedKeyShare({ value, fee, memo }: sendEncryptedKeyShareParams): Promise { + async sendCurrentKeysPacketAck({ value, fee, memo }: sendCurrentKeysPacketAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendEncryptedKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCurrentKeysPacketAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.encryptedKeyShare({ value: EncryptedKeyShare.fromPartial(value) }) + let msg = this.currentKeysPacketAck({ value: CurrentKeysPacketAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEncryptedKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCurrentKeysPacketAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCommitmentsResponse({ value, fee, memo }: sendQueryCommitmentsResponseParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommitmentsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCommitmentsResponse({ value: QueryCommitmentsResponse.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCommitmentsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllAggregatedKeyShareRequest({ value, fee, memo }: sendQueryAllAggregatedKeyShareRequestParams): Promise { + async sendQueryGetKeyShareResponse({ value, fee, memo }: sendQueryGetKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllAggregatedKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllAggregatedKeyShareRequest({ value: QueryAllAggregatedKeyShareRequest.fromPartial(value) }) + let msg = this.queryGetKeyShareResponse({ value: QueryGetKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllAggregatedKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeRegisterValidator({ value, fee, memo }: sendMsgDeRegisterValidatorParams): Promise { + async sendMsgOverrideLatestPubKey({ value, fee, memo }: sendMsgOverrideLatestPubKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeRegisterValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgOverrideLatestPubKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeRegisterValidator({ value: MsgDeRegisterValidator.fromPartial(value) }) + let msg = this.msgOverrideLatestPubKey({ value: MsgOverrideLatestPubKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeRegisterValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgOverrideLatestPubKey: Could not broadcast Tx: '+ e.message) } }, - async sendGetAggrKeysharePacketData({ value, fee, memo }: sendGetAggrKeysharePacketDataParams): Promise { + async sendQueryVerifiableRandomnessQuery({ value, fee, memo }: sendQueryVerifiableRandomnessQueryParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetAggrKeysharePacketData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVerifiableRandomnessQuery: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.getAggrKeysharePacketData({ value: GetAggrKeysharePacketData.fromPartial(value) }) + let msg = this.queryVerifiableRandomnessQuery({ value: QueryVerifiableRandomnessQuery.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGetAggrKeysharePacketData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVerifiableRandomnessQuery: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryGetValidatorSetResponse({ value, fee, memo }: sendQueryGetValidatorSetResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetValidatorSetResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryGetValidatorSetResponse({ value: QueryGetValidatorSetResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetValidatorSetResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetGeneralKeyShareRequest({ value, fee, memo }: sendQueryGetGeneralKeyShareRequestParams): Promise { + async sendQueryGetAggregatedKeyShareResponse({ value, fee, memo }: sendQueryGetAggregatedKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetGeneralKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetGeneralKeyShareRequest({ value: QueryGetGeneralKeyShareRequest.fromPartial(value) }) + let msg = this.queryGetAggregatedKeyShareResponse({ value: QueryGetAggregatedKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetGeneralKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1225,87 +1225,87 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendRequestAggrKeysharePacketData({ value, fee, memo }: sendRequestAggrKeysharePacketDataParams): Promise { + async sendGeneralKeyShare({ value, fee, memo }: sendGeneralKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendRequestAggrKeysharePacketData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGeneralKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.requestAggrKeysharePacketData({ value: RequestAggrKeysharePacketData.fromPartial(value) }) + let msg = this.generalKeyShare({ value: GeneralKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRequestAggrKeysharePacketData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGeneralKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgOverrideLatestPubKey({ value, fee, memo }: sendMsgOverrideLatestPubKeyParams): Promise { + async sendRequestAggrKeysharePacketAck({ value, fee, memo }: sendRequestAggrKeysharePacketAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgOverrideLatestPubKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRequestAggrKeysharePacketAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgOverrideLatestPubKey({ value: MsgOverrideLatestPubKey.fromPartial(value) }) + let msg = this.requestAggrKeysharePacketAck({ value: RequestAggrKeysharePacketAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgOverrideLatestPubKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRequestAggrKeysharePacketAck: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterValidator({ value, fee, memo }: sendMsgRegisterValidatorParams): Promise { + async sendCounterPartyIBCInfo({ value, fee, memo }: sendCounterPartyIBCInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCounterPartyIBCInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterValidator({ value: MsgRegisterValidator.fromPartial(value) }) + let msg = this.counterPartyIbcinfo({ value: CounterPartyIBCInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCounterPartyIBCInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVerifiableRandomnessResponse({ value, fee, memo }: sendQueryVerifiableRandomnessResponseParams): Promise { + async sendQueryAllKeyShareRequest({ value, fee, memo }: sendQueryAllKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVerifiableRandomnessResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVerifiableRandomnessResponse({ value: QueryVerifiableRandomnessResponse.fromPartial(value) }) + let msg = this.queryAllKeyShareRequest({ value: QueryAllKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVerifiableRandomnessResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllKeyShareResponse({ value, fee, memo }: sendQueryAllKeyShareResponseParams): Promise { + async sendQueryAllGeneralKeyShareRequest({ value, fee, memo }: sendQueryAllGeneralKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllGeneralKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllKeyShareResponse({ value: QueryAllKeyShareResponse.fromPartial(value) }) + let msg = this.queryAllGeneralKeyShareRequest({ value: QueryAllGeneralKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllGeneralKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPubKeyResponse({ value, fee, memo }: sendQueryPubKeyResponseParams): Promise { + async sendMsgOverrideLatestPubKeyResponse({ value, fee, memo }: sendMsgOverrideLatestPubKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPubKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgOverrideLatestPubKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPubKeyResponse({ value: QueryPubKeyResponse.fromPartial(value) }) + let msg = this.msgOverrideLatestPubKeyResponse({ value: MsgOverrideLatestPubKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPubKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgOverrideLatestPubKeyResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1323,738 +1323,738 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgCreateGeneralKeyShareResponse({ value, fee, memo }: sendMsgCreateGeneralKeyShareResponseParams): Promise { + async sendQueryAllValidatorSetResponse({ value, fee, memo }: sendQueryAllValidatorSetResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllValidatorSetResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateGeneralKeyShareResponse({ value: MsgCreateGeneralKeyShareResponse.fromPartial(value) }) + let msg = this.queryAllValidatorSetResponse({ value: QueryAllValidatorSetResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllValidatorSetResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueuedPubKey({ value, fee, memo }: sendQueuedPubKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueuedPubKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queuedPubKey({ value: QueuedPubKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueuedPubKey: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetKeyShareRequest({ value, fee, memo }: sendQueryGetKeyShareRequestParams): Promise { + async sendAggrKeyshareDataPacketAck({ value, fee, memo }: sendAggrKeyshareDataPacketAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAggrKeyshareDataPacketAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetKeyShareRequest({ value: QueryGetKeyShareRequest.fromPartial(value) }) + let msg = this.aggrKeyshareDataPacketAck({ value: AggrKeyshareDataPacketAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAggrKeyshareDataPacketAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllKeyShareRequest({ value, fee, memo }: sendQueryAllKeyShareRequestParams): Promise { + async sendQueryCommitmentsRequest({ value, fee, memo }: sendQueryCommitmentsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCommitmentsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllKeyShareRequest({ value: QueryAllKeyShareRequest.fromPartial(value) }) + let msg = this.queryCommitmentsRequest({ value: QueryCommitmentsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommitmentsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllAuthorizedAddressRequest({ value, fee, memo }: sendQueryAllAuthorizedAddressRequestParams): Promise { + async sendQueryAllValidatorSetRequest({ value, fee, memo }: sendQueryAllValidatorSetRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllAuthorizedAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllValidatorSetRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllAuthorizedAddressRequest({ value: QueryAllAuthorizedAddressRequest.fromPartial(value) }) + let msg = this.queryAllValidatorSetRequest({ value: QueryAllValidatorSetRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllAuthorizedAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllValidatorSetRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAggregatedKeyShare({ value, fee, memo }: sendAggregatedKeyShareParams): Promise { + async sendQueryPubKeyResponse({ value, fee, memo }: sendQueryPubKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAggregatedKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPubKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.aggregatedKeyShare({ value: AggregatedKeyShare.fromPartial(value) }) + let msg = this.queryPubKeyResponse({ value: QueryPubKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAggregatedKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPubKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateLatestPubKeyResponse({ value, fee, memo }: sendMsgCreateLatestPubKeyResponseParams): Promise { + async sendQueryGetGeneralKeyShareResponse({ value, fee, memo }: sendQueryGetGeneralKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateLatestPubKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateLatestPubKeyResponse({ value: MsgCreateLatestPubKeyResponse.fromPartial(value) }) + let msg = this.queryGetGeneralKeyShareResponse({ value: QueryGetGeneralKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateLatestPubKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetAuthorizedAddressRequest({ value, fee, memo }: sendQueryGetAuthorizedAddressRequestParams): Promise { + async sendCommitments({ value, fee, memo }: sendCommitmentsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetAuthorizedAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCommitments: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetAuthorizedAddressRequest({ value: QueryGetAuthorizedAddressRequest.fromPartial(value) }) + let msg = this.commitments({ value: Commitments.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetAuthorizedAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommitments: Could not broadcast Tx: '+ e.message) } }, - async sendNoData({ value, fee, memo }: sendNoDataParams): Promise { + async sendQueryAllGeneralKeyShareResponse({ value, fee, memo }: sendQueryAllGeneralKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendNoData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.noData({ value: NoData.fromPartial(value) }) + let msg = this.queryAllGeneralKeyShareResponse({ value: QueryAllGeneralKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendNoData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAggrKeyshareDataPacketAck({ value, fee, memo }: sendAggrKeyshareDataPacketAckParams): Promise { + async sendMsgCreateGeneralKeyShare({ value, fee, memo }: sendMsgCreateGeneralKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendAggrKeyshareDataPacketAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateGeneralKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.aggrKeyshareDataPacketAck({ value: AggrKeyshareDataPacketAck.fromPartial(value) }) + let msg = this.msgCreateGeneralKeyShare({ value: MsgCreateGeneralKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAggrKeyshareDataPacketAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGeneralKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetAggregatedKeyShareRequest({ value, fee, memo }: sendQueryGetAggregatedKeyShareRequestParams): Promise { + async sendCurrentKeysPacketData({ value, fee, memo }: sendCurrentKeysPacketDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetAggregatedKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCurrentKeysPacketData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetAggregatedKeyShareRequest({ value: QueryGetAggregatedKeyShareRequest.fromPartial(value) }) + let msg = this.currentKeysPacketData({ value: CurrentKeysPacketData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetAggregatedKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCurrentKeysPacketData: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetKeyShareResponse({ value, fee, memo }: sendQueryGetKeyShareResponseParams): Promise { + async sendQueryVerifiableRandomnessResponse({ value, fee, memo }: sendQueryVerifiableRandomnessResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryVerifiableRandomnessResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetKeyShareResponse({ value: QueryGetKeyShareResponse.fromPartial(value) }) + let msg = this.queryVerifiableRandomnessResponse({ value: QueryVerifiableRandomnessResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVerifiableRandomnessResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllGeneralKeyShareResponse({ value, fee, memo }: sendQueryAllGeneralKeyShareResponseParams): Promise { + async sendQueryAllAggregatedKeyShareRequest({ value, fee, memo }: sendQueryAllAggregatedKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllAggregatedKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllGeneralKeyShareResponse({ value: QueryAllGeneralKeyShareResponse.fromPartial(value) }) + let msg = this.queryAllAggregatedKeyShareRequest({ value: QueryAllAggregatedKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllAggregatedKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendKeyShareRequest({ value, fee, memo }: sendKeyShareRequestParams): Promise { + async sendQueryPubKeyRequest({ value, fee, memo }: sendQueryPubKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPubKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keyShareRequest({ value: KeyShareRequest.fromPartial(value) }) + let msg = this.queryPubKeyRequest({ value: QueryPubKeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPubKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllValidatorSetResponse({ value, fee, memo }: sendQueryAllValidatorSetResponseParams): Promise { + async sendMsgSendKeyshare({ value, fee, memo }: sendMsgSendKeyshareParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllValidatorSetResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSendKeyshare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllValidatorSetResponse({ value: QueryAllValidatorSetResponse.fromPartial(value) }) + let msg = this.msgSendKeyshare({ value: MsgSendKeyshare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllValidatorSetResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendKeyshare: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetValidatorSetRequest({ value, fee, memo }: sendQueryGetValidatorSetRequestParams): Promise { + async sendAuthorizedAddress({ value, fee, memo }: sendAuthorizedAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetValidatorSetRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAuthorizedAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetValidatorSetRequest({ value: QueryGetValidatorSetRequest.fromPartial(value) }) + let msg = this.authorizedAddress({ value: AuthorizedAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetValidatorSetRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAuthorizedAddress: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllGeneralKeyShareRequest({ value, fee, memo }: sendQueryAllGeneralKeyShareRequestParams): Promise { + async sendEncryptedKeyShare({ value, fee, memo }: sendEncryptedKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllGeneralKeyShareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEncryptedKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllGeneralKeyShareRequest({ value: QueryAllGeneralKeyShareRequest.fromPartial(value) }) + let msg = this.encryptedKeyShare({ value: EncryptedKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllGeneralKeyShareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEncryptedKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendKeyshare({ value, fee, memo }: sendMsgSendKeyshareParams): Promise { + async sendActivePubKey({ value, fee, memo }: sendActivePubKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendKeyshare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendActivePubKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSendKeyshare({ value: MsgSendKeyshare.fromPartial(value) }) + let msg = this.activePubKey({ value: ActivePubKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSendKeyshare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendActivePubKey: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeleteAuthorizedAddressResponse({ value, fee, memo }: sendMsgDeleteAuthorizedAddressResponseParams): Promise { + async sendIBCInfo({ value, fee, memo }: sendIBCInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeleteAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIBCInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgDeleteAuthorizedAddressResponse({ value: MsgDeleteAuthorizedAddressResponse.fromPartial(value) }) + let msg = this.ibcinfo({ value: IBCInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeleteAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIBCInfo: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAllKeyShareResponse({ value, fee, memo }: sendQueryAllKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryAllKeyShareResponse({ value: QueryAllKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryGetAuthorizedAddressResponse({ value, fee, memo }: sendQueryGetAuthorizedAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryGetAuthorizedAddressResponse({ value: QueryGetAuthorizedAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCurrentKeysPacketAck({ value, fee, memo }: sendCurrentKeysPacketAckParams): Promise { + async sendQueryGetGeneralKeyShareRequest({ value, fee, memo }: sendQueryGetGeneralKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendCurrentKeysPacketAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetGeneralKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.currentKeysPacketAck({ value: CurrentKeysPacketAck.fromPartial(value) }) + let msg = this.queryGetGeneralKeyShareRequest({ value: QueryGetGeneralKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCurrentKeysPacketAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetGeneralKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendActivePubKey({ value, fee, memo }: sendActivePubKeyParams): Promise { + async sendMsgRegisterValidator({ value, fee, memo }: sendMsgRegisterValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendActivePubKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.activePubKey({ value: ActivePubKey.fromPartial(value) }) + let msg = this.msgRegisterValidator({ value: MsgRegisterValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendActivePubKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterValidator: Could not broadcast Tx: '+ e.message) } }, - async sendIBCInfo({ value, fee, memo }: sendIBCInfoParams): Promise { + async sendValidatorSet({ value, fee, memo }: sendValidatorSetParams): Promise { if (!signer) { - throw new Error('TxClient:sendIBCInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorSet: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.ibcinfo({ value: IBCInfo.fromPartial(value) }) + let msg = this.validatorSet({ value: ValidatorSet.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIBCInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSet: Could not broadcast Tx: '+ e.message) } }, - async sendAuthorizedAddress({ value, fee, memo }: sendAuthorizedAddressParams): Promise { + async sendMsgDeleteAuthorizedAddress({ value, fee, memo }: sendMsgDeleteAuthorizedAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendAuthorizedAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeleteAuthorizedAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.authorizedAddress({ value: AuthorizedAddress.fromPartial(value) }) + let msg = this.msgDeleteAuthorizedAddress({ value: MsgDeleteAuthorizedAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAuthorizedAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeleteAuthorizedAddress: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterValidatorResponse({ value, fee, memo }: sendMsgRegisterValidatorResponseParams): Promise { + async sendQueryGetAggregatedKeyShareRequest({ value, fee, memo }: sendQueryGetAggregatedKeyShareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterValidatorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetAggregatedKeyShareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterValidatorResponse({ value: MsgRegisterValidatorResponse.fromPartial(value) }) + let msg = this.queryGetAggregatedKeyShareRequest({ value: QueryGetAggregatedKeyShareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetAggregatedKeyShareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateAuthorizedAddressResponse({ value, fee, memo }: sendMsgUpdateAuthorizedAddressResponseParams): Promise { + async sendMsgUpdateAuthorizedAddress({ value, fee, memo }: sendMsgUpdateAuthorizedAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateAuthorizedAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateAuthorizedAddressResponse({ value: MsgUpdateAuthorizedAddressResponse.fromPartial(value) }) + let msg = this.msgUpdateAuthorizedAddress({ value: MsgUpdateAuthorizedAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateAuthorizedAddress: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVerifiableRandomnessQuery({ value, fee, memo }: sendQueryVerifiableRandomnessQueryParams): Promise { + async sendMsgUpdateAuthorizedAddressResponse({ value, fee, memo }: sendMsgUpdateAuthorizedAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVerifiableRandomnessQuery: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryVerifiableRandomnessQuery({ value: QueryVerifiableRandomnessQuery.fromPartial(value) }) + let msg = this.msgUpdateAuthorizedAddressResponse({ value: MsgUpdateAuthorizedAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryVerifiableRandomnessQuery: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateAuthorizedAddress({ value, fee, memo }: sendMsgUpdateAuthorizedAddressParams): Promise { + async sendRequestAggrKeysharePacketData({ value, fee, memo }: sendRequestAggrKeysharePacketDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateAuthorizedAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRequestAggrKeysharePacketData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateAuthorizedAddress({ value: MsgUpdateAuthorizedAddress.fromPartial(value) }) + let msg = this.requestAggrKeysharePacketData({ value: RequestAggrKeysharePacketData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateAuthorizedAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRequestAggrKeysharePacketData: Could not broadcast Tx: '+ e.message) } }, - async sendQueuedPubKey({ value, fee, memo }: sendQueuedPubKeyParams): Promise { + async sendGetAggrKeysharePacketData({ value, fee, memo }: sendGetAggrKeysharePacketDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueuedPubKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetAggrKeysharePacketData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queuedPubKey({ value: QueuedPubKey.fromPartial(value) }) + let msg = this.getAggrKeysharePacketData({ value: GetAggrKeysharePacketData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueuedPubKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetAggrKeysharePacketData: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateAuthorizedAddressResponse({ value, fee, memo }: sendMsgCreateAuthorizedAddressResponseParams): Promise { + async sendGetAggrKeysharePacketAck({ value, fee, memo }: sendGetAggrKeysharePacketAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGetAggrKeysharePacketAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateAuthorizedAddressResponse({ value: MsgCreateAuthorizedAddressResponse.fromPartial(value) }) + let msg = this.getAggrKeysharePacketAck({ value: GetAggrKeysharePacketAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetAggrKeysharePacketAck: Could not broadcast Tx: '+ e.message) } }, - async sendGeneralKeyShare({ value, fee, memo }: sendGeneralKeyShareParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGeneralKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.generalKeyShare({ value: GeneralKeyShare.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGeneralKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetGeneralKeyShareResponse({ value, fee, memo }: sendQueryGetGeneralKeyShareResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetGeneralKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetGeneralKeyShareResponse({ value: QueryGetGeneralKeyShareResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetGeneralKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendCounterPartyIBCInfo({ value, fee, memo }: sendCounterPartyIBCInfoParams): Promise { + async sendQueryGetAuthorizedAddressRequest({ value, fee, memo }: sendQueryGetAuthorizedAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendCounterPartyIBCInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetAuthorizedAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.counterPartyIbcinfo({ value: CounterPartyIBCInfo.fromPartial(value) }) + let msg = this.queryGetAuthorizedAddressRequest({ value: QueryGetAuthorizedAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCounterPartyIBCInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetAuthorizedAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgOverrideLatestPubKeyResponse({ value, fee, memo }: sendMsgOverrideLatestPubKeyResponseParams): Promise { + async sendMsgRegisterValidatorResponse({ value, fee, memo }: sendMsgRegisterValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgOverrideLatestPubKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterValidatorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgOverrideLatestPubKeyResponse({ value: MsgOverrideLatestPubKeyResponse.fromPartial(value) }) + let msg = this.msgRegisterValidatorResponse({ value: MsgRegisterValidatorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgOverrideLatestPubKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAggrKeyshareDataPacketData({ value, fee, memo }: sendAggrKeyshareDataPacketDataParams): Promise { + async sendQueryAllAuthorizedAddressRequest({ value, fee, memo }: sendQueryAllAuthorizedAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAggrKeyshareDataPacketData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllAuthorizedAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.aggrKeyshareDataPacketData({ value: AggrKeyshareDataPacketData.fromPartial(value) }) + let msg = this.queryAllAuthorizedAddressRequest({ value: QueryAllAuthorizedAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAggrKeyshareDataPacketData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllAuthorizedAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetAuthorizedAddressResponse({ value, fee, memo }: sendQueryGetAuthorizedAddressResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetAuthorizedAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetAuthorizedAddressResponse({ value: QueryGetAuthorizedAddressResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetAuthorizedAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - queryCommitmentsRequest({ value }: queryCommitmentsRequestParams): EncodeObject { + keyShareRequest({ value }: keyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryCommitmentsRequest", value: QueryCommitmentsRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.KeyShareRequest", value: KeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommitmentsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:KeyShareRequest: Could not create message: ' + e.message) } }, - queryGetValidatorSetResponse({ value }: queryGetValidatorSetResponseParams): EncodeObject { + queryGetValidatorSetRequest({ value }: queryGetValidatorSetRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetValidatorSetResponse", value: QueryGetValidatorSetResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetValidatorSetRequest", value: QueryGetValidatorSetRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetValidatorSetResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetValidatorSetRequest: Could not create message: ' + e.message) } }, - msgCreateLatestPubKey({ value }: msgCreateLatestPubKeyParams): EncodeObject { + queryAllAggregatedKeyShareResponse({ value }: queryAllAggregatedKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateLatestPubKey", value: MsgCreateLatestPubKey.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllAggregatedKeyShareResponse", value: QueryAllAggregatedKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateLatestPubKey: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllAggregatedKeyShareResponse: Could not create message: ' + e.message) } }, - commitments({ value }: commitmentsParams): EncodeObject { + msgDeRegisterValidatorResponse({ value }: msgDeRegisterValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.Commitments", value: Commitments.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgDeRegisterValidatorResponse", value: MsgDeRegisterValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Commitments: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeRegisterValidatorResponse: Could not create message: ' + e.message) } }, - queryPubKeyRequest({ value }: queryPubKeyRequestParams): EncodeObject { + msgCreateLatestPubKeyResponse({ value }: msgCreateLatestPubKeyResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryPubKeyRequest", value: QueryPubKeyRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateLatestPubKeyResponse", value: MsgCreateLatestPubKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPubKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateLatestPubKeyResponse: Could not create message: ' + e.message) } }, - currentKeysPacketData({ value }: currentKeysPacketDataParams): EncodeObject { + msgCreateAuthorizedAddress({ value }: msgCreateAuthorizedAddressParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.CurrentKeysPacketData", value: CurrentKeysPacketData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateAuthorizedAddress", value: MsgCreateAuthorizedAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CurrentKeysPacketData: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateAuthorizedAddress: Could not create message: ' + e.message) } }, - getAggrKeysharePacketAck({ value }: getAggrKeysharePacketAckParams): EncodeObject { + msgCreateGeneralKeyShareResponse({ value }: msgCreateGeneralKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.GetAggrKeysharePacketAck", value: GetAggrKeysharePacketAck.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateGeneralKeyShareResponse", value: MsgCreateGeneralKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetAggrKeysharePacketAck: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGeneralKeyShareResponse: Could not create message: ' + e.message) } }, - queryGetAggregatedKeyShareResponse({ value }: queryGetAggregatedKeyShareResponseParams): EncodeObject { + aggregatedKeyShare({ value }: aggregatedKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetAggregatedKeyShareResponse", value: QueryGetAggregatedKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.AggregatedKeyShare", value: AggregatedKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetAggregatedKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AggregatedKeyShare: Could not create message: ' + e.message) } }, - msgCreateGeneralKeyShare({ value }: msgCreateGeneralKeyShareParams): EncodeObject { + keysharePacketData({ value }: keysharePacketDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateGeneralKeyShare", value: MsgCreateGeneralKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.KeysharePacketData", value: KeysharePacketData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGeneralKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:KeysharePacketData: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgDeRegisterValidator({ value }: msgDeRegisterValidatorParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgDeRegisterValidator", value: MsgDeRegisterValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeRegisterValidator: Could not create message: ' + e.message) } }, - queryAllAggregatedKeyShareResponse({ value }: queryAllAggregatedKeyShareResponseParams): EncodeObject { + msgDeleteAuthorizedAddressResponse({ value }: msgDeleteAuthorizedAddressResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllAggregatedKeyShareResponse", value: QueryAllAggregatedKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgDeleteAuthorizedAddressResponse", value: MsgDeleteAuthorizedAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllAggregatedKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeleteAuthorizedAddressResponse: Could not create message: ' + e.message) } }, - keyShare({ value }: keyShareParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.KeyShare", value: KeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - validatorSet({ value }: validatorSetParams): EncodeObject { + noData({ value }: noDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.ValidatorSet", value: ValidatorSet.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.NoData", value: NoData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSet: Could not create message: ' + e.message) + throw new Error('TxClient:NoData: Could not create message: ' + e.message) } }, - requestAggrKeysharePacketAck({ value }: requestAggrKeysharePacketAckParams): EncodeObject { + queryCommitmentsResponse({ value }: queryCommitmentsResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.RequestAggrKeysharePacketAck", value: RequestAggrKeysharePacketAck.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryCommitmentsResponse", value: QueryCommitmentsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RequestAggrKeysharePacketAck: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommitmentsResponse: Could not create message: ' + e.message) } }, - queryAllValidatorSetRequest({ value }: queryAllValidatorSetRequestParams): EncodeObject { + msgCreateLatestPubKey({ value }: msgCreateLatestPubKeyParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllValidatorSetRequest", value: QueryAllValidatorSetRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateLatestPubKey", value: MsgCreateLatestPubKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllValidatorSetRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateLatestPubKey: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + keyShare({ value }: keyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.KeyShare", value: KeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:KeyShare: Could not create message: ' + e.message) } }, - msgDeRegisterValidatorResponse({ value }: msgDeRegisterValidatorResponseParams): EncodeObject { + msgCreateAuthorizedAddressResponse({ value }: msgCreateAuthorizedAddressResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgDeRegisterValidatorResponse", value: MsgDeRegisterValidatorResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateAuthorizedAddressResponse", value: MsgCreateAuthorizedAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeRegisterValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateAuthorizedAddressResponse: Could not create message: ' + e.message) } }, - msgCreateAuthorizedAddress({ value }: msgCreateAuthorizedAddressParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateAuthorizedAddress", value: MsgCreateAuthorizedAddress.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateAuthorizedAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgDeleteAuthorizedAddress({ value }: msgDeleteAuthorizedAddressParams): EncodeObject { + queryGetKeyShareRequest({ value }: queryGetKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgDeleteAuthorizedAddress", value: MsgDeleteAuthorizedAddress.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetKeyShareRequest", value: QueryGetKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeleteAuthorizedAddress: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetKeyShareRequest: Could not create message: ' + e.message) } }, - keysharePacketData({ value }: keysharePacketDataParams): EncodeObject { + aggrKeyshareDataPacketData({ value }: aggrKeyshareDataPacketDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.KeysharePacketData", value: KeysharePacketData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.AggrKeyshareDataPacketData", value: AggrKeyshareDataPacketData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeysharePacketData: Could not create message: ' + e.message) + throw new Error('TxClient:AggrKeyshareDataPacketData: Could not create message: ' + e.message) } }, - encryptedKeyShare({ value }: encryptedKeyShareParams): EncodeObject { + currentKeysPacketAck({ value }: currentKeysPacketAckParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.EncryptedKeyShare", value: EncryptedKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.CurrentKeysPacketAck", value: CurrentKeysPacketAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EncryptedKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:CurrentKeysPacketAck: Could not create message: ' + e.message) } }, - queryCommitmentsResponse({ value }: queryCommitmentsResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryCommitmentsResponse", value: QueryCommitmentsResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommitmentsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryAllAggregatedKeyShareRequest({ value }: queryAllAggregatedKeyShareRequestParams): EncodeObject { + queryGetKeyShareResponse({ value }: queryGetKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllAggregatedKeyShareRequest", value: QueryAllAggregatedKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetKeyShareResponse", value: QueryGetKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllAggregatedKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetKeyShareResponse: Could not create message: ' + e.message) } }, - msgDeRegisterValidator({ value }: msgDeRegisterValidatorParams): EncodeObject { + msgOverrideLatestPubKey({ value }: msgOverrideLatestPubKeyParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgDeRegisterValidator", value: MsgDeRegisterValidator.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgOverrideLatestPubKey", value: MsgOverrideLatestPubKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeRegisterValidator: Could not create message: ' + e.message) + throw new Error('TxClient:MsgOverrideLatestPubKey: Could not create message: ' + e.message) } }, - getAggrKeysharePacketData({ value }: getAggrKeysharePacketDataParams): EncodeObject { + queryVerifiableRandomnessQuery({ value }: queryVerifiableRandomnessQueryParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.GetAggrKeysharePacketData", value: GetAggrKeysharePacketData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryVerifiableRandomnessQuery", value: QueryVerifiableRandomnessQuery.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetAggrKeysharePacketData: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVerifiableRandomnessQuery: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryGetValidatorSetResponse({ value }: queryGetValidatorSetResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetValidatorSetResponse", value: QueryGetValidatorSetResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetValidatorSetResponse: Could not create message: ' + e.message) } }, - queryGetGeneralKeyShareRequest({ value }: queryGetGeneralKeyShareRequestParams): EncodeObject { + queryGetAggregatedKeyShareResponse({ value }: queryGetAggregatedKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetGeneralKeyShareRequest", value: QueryGetGeneralKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetAggregatedKeyShareResponse", value: QueryGetAggregatedKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetGeneralKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetAggregatedKeyShareResponse: Could not create message: ' + e.message) } }, @@ -2066,51 +2066,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - requestAggrKeysharePacketData({ value }: requestAggrKeysharePacketDataParams): EncodeObject { + generalKeyShare({ value }: generalKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.RequestAggrKeysharePacketData", value: RequestAggrKeysharePacketData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.GeneralKeyShare", value: GeneralKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RequestAggrKeysharePacketData: Could not create message: ' + e.message) + throw new Error('TxClient:GeneralKeyShare: Could not create message: ' + e.message) } }, - msgOverrideLatestPubKey({ value }: msgOverrideLatestPubKeyParams): EncodeObject { + requestAggrKeysharePacketAck({ value }: requestAggrKeysharePacketAckParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgOverrideLatestPubKey", value: MsgOverrideLatestPubKey.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.RequestAggrKeysharePacketAck", value: RequestAggrKeysharePacketAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgOverrideLatestPubKey: Could not create message: ' + e.message) + throw new Error('TxClient:RequestAggrKeysharePacketAck: Could not create message: ' + e.message) } }, - msgRegisterValidator({ value }: msgRegisterValidatorParams): EncodeObject { + counterPartyIbcinfo({ value }: counterPartyIbcinfoParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgRegisterValidator", value: MsgRegisterValidator.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.CounterPartyIBCInfo", value: CounterPartyIBCInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterValidator: Could not create message: ' + e.message) + throw new Error('TxClient:CounterPartyIBCInfo: Could not create message: ' + e.message) } }, - queryVerifiableRandomnessResponse({ value }: queryVerifiableRandomnessResponseParams): EncodeObject { + queryAllKeyShareRequest({ value }: queryAllKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryVerifiableRandomnessResponse", value: QueryVerifiableRandomnessResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllKeyShareRequest", value: QueryAllKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVerifiableRandomnessResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllKeyShareRequest: Could not create message: ' + e.message) } }, - queryAllKeyShareResponse({ value }: queryAllKeyShareResponseParams): EncodeObject { + queryAllGeneralKeyShareRequest({ value }: queryAllGeneralKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllKeyShareResponse", value: QueryAllKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllGeneralKeyShareRequest", value: QueryAllGeneralKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllGeneralKeyShareRequest: Could not create message: ' + e.message) } }, - queryPubKeyResponse({ value }: queryPubKeyResponseParams): EncodeObject { + msgOverrideLatestPubKeyResponse({ value }: msgOverrideLatestPubKeyResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryPubKeyResponse", value: QueryPubKeyResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgOverrideLatestPubKeyResponse", value: MsgOverrideLatestPubKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPubKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgOverrideLatestPubKeyResponse: Could not create message: ' + e.message) } }, @@ -2122,299 +2122,299 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgCreateGeneralKeyShareResponse({ value }: msgCreateGeneralKeyShareResponseParams): EncodeObject { + queryAllValidatorSetResponse({ value }: queryAllValidatorSetResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateGeneralKeyShareResponse", value: MsgCreateGeneralKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllValidatorSetResponse", value: QueryAllValidatorSetResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGeneralKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllValidatorSetResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queuedPubKey({ value }: queuedPubKeyParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueuedPubKey", value: QueuedPubKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueuedPubKey: Could not create message: ' + e.message) } }, - queryGetKeyShareRequest({ value }: queryGetKeyShareRequestParams): EncodeObject { + aggrKeyshareDataPacketAck({ value }: aggrKeyshareDataPacketAckParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetKeyShareRequest", value: QueryGetKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.AggrKeyshareDataPacketAck", value: AggrKeyshareDataPacketAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:AggrKeyshareDataPacketAck: Could not create message: ' + e.message) } }, - queryAllKeyShareRequest({ value }: queryAllKeyShareRequestParams): EncodeObject { + queryCommitmentsRequest({ value }: queryCommitmentsRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllKeyShareRequest", value: QueryAllKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryCommitmentsRequest", value: QueryCommitmentsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommitmentsRequest: Could not create message: ' + e.message) } }, - queryAllAuthorizedAddressRequest({ value }: queryAllAuthorizedAddressRequestParams): EncodeObject { + queryAllValidatorSetRequest({ value }: queryAllValidatorSetRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllAuthorizedAddressRequest", value: QueryAllAuthorizedAddressRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllValidatorSetRequest", value: QueryAllValidatorSetRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllAuthorizedAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllValidatorSetRequest: Could not create message: ' + e.message) } }, - aggregatedKeyShare({ value }: aggregatedKeyShareParams): EncodeObject { + queryPubKeyResponse({ value }: queryPubKeyResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.AggregatedKeyShare", value: AggregatedKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryPubKeyResponse", value: QueryPubKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AggregatedKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPubKeyResponse: Could not create message: ' + e.message) } }, - msgCreateLatestPubKeyResponse({ value }: msgCreateLatestPubKeyResponseParams): EncodeObject { + queryGetGeneralKeyShareResponse({ value }: queryGetGeneralKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateLatestPubKeyResponse", value: MsgCreateLatestPubKeyResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetGeneralKeyShareResponse", value: QueryGetGeneralKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateLatestPubKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetGeneralKeyShareResponse: Could not create message: ' + e.message) } }, - queryGetAuthorizedAddressRequest({ value }: queryGetAuthorizedAddressRequestParams): EncodeObject { + commitments({ value }: commitmentsParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetAuthorizedAddressRequest", value: QueryGetAuthorizedAddressRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.Commitments", value: Commitments.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetAuthorizedAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Commitments: Could not create message: ' + e.message) } }, - noData({ value }: noDataParams): EncodeObject { + queryAllGeneralKeyShareResponse({ value }: queryAllGeneralKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.NoData", value: NoData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllGeneralKeyShareResponse", value: QueryAllGeneralKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:NoData: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllGeneralKeyShareResponse: Could not create message: ' + e.message) } }, - aggrKeyshareDataPacketAck({ value }: aggrKeyshareDataPacketAckParams): EncodeObject { + msgCreateGeneralKeyShare({ value }: msgCreateGeneralKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.AggrKeyshareDataPacketAck", value: AggrKeyshareDataPacketAck.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgCreateGeneralKeyShare", value: MsgCreateGeneralKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AggrKeyshareDataPacketAck: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGeneralKeyShare: Could not create message: ' + e.message) } }, - queryGetAggregatedKeyShareRequest({ value }: queryGetAggregatedKeyShareRequestParams): EncodeObject { + currentKeysPacketData({ value }: currentKeysPacketDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetAggregatedKeyShareRequest", value: QueryGetAggregatedKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.CurrentKeysPacketData", value: CurrentKeysPacketData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetAggregatedKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:CurrentKeysPacketData: Could not create message: ' + e.message) } }, - queryGetKeyShareResponse({ value }: queryGetKeyShareResponseParams): EncodeObject { + queryVerifiableRandomnessResponse({ value }: queryVerifiableRandomnessResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetKeyShareResponse", value: QueryGetKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryVerifiableRandomnessResponse", value: QueryVerifiableRandomnessResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVerifiableRandomnessResponse: Could not create message: ' + e.message) } }, - queryAllGeneralKeyShareResponse({ value }: queryAllGeneralKeyShareResponseParams): EncodeObject { + queryAllAggregatedKeyShareRequest({ value }: queryAllAggregatedKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllGeneralKeyShareResponse", value: QueryAllGeneralKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllAggregatedKeyShareRequest", value: QueryAllAggregatedKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllGeneralKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllAggregatedKeyShareRequest: Could not create message: ' + e.message) } }, - keyShareRequest({ value }: keyShareRequestParams): EncodeObject { + queryPubKeyRequest({ value }: queryPubKeyRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.KeyShareRequest", value: KeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryPubKeyRequest", value: QueryPubKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPubKeyRequest: Could not create message: ' + e.message) } }, - queryAllValidatorSetResponse({ value }: queryAllValidatorSetResponseParams): EncodeObject { + msgSendKeyshare({ value }: msgSendKeyshareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllValidatorSetResponse", value: QueryAllValidatorSetResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgSendKeyshare", value: MsgSendKeyshare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllValidatorSetResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendKeyshare: Could not create message: ' + e.message) } }, - queryGetValidatorSetRequest({ value }: queryGetValidatorSetRequestParams): EncodeObject { + authorizedAddress({ value }: authorizedAddressParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetValidatorSetRequest", value: QueryGetValidatorSetRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.AuthorizedAddress", value: AuthorizedAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetValidatorSetRequest: Could not create message: ' + e.message) + throw new Error('TxClient:AuthorizedAddress: Could not create message: ' + e.message) } }, - queryAllGeneralKeyShareRequest({ value }: queryAllGeneralKeyShareRequestParams): EncodeObject { + encryptedKeyShare({ value }: encryptedKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryAllGeneralKeyShareRequest", value: QueryAllGeneralKeyShareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.EncryptedKeyShare", value: EncryptedKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllGeneralKeyShareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EncryptedKeyShare: Could not create message: ' + e.message) } }, - msgSendKeyshare({ value }: msgSendKeyshareParams): EncodeObject { + activePubKey({ value }: activePubKeyParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgSendKeyshare", value: MsgSendKeyshare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.ActivePubKey", value: ActivePubKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendKeyshare: Could not create message: ' + e.message) + throw new Error('TxClient:ActivePubKey: Could not create message: ' + e.message) } }, - msgDeleteAuthorizedAddressResponse({ value }: msgDeleteAuthorizedAddressResponseParams): EncodeObject { + ibcinfo({ value }: ibcinfoParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgDeleteAuthorizedAddressResponse", value: MsgDeleteAuthorizedAddressResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.IBCInfo", value: IBCInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeleteAuthorizedAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:IBCInfo: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryAllKeyShareResponse({ value }: queryAllKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllKeyShareResponse", value: QueryAllKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllKeyShareResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryGetAuthorizedAddressResponse({ value }: queryGetAuthorizedAddressResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetAuthorizedAddressResponse", value: QueryGetAuthorizedAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetAuthorizedAddressResponse: Could not create message: ' + e.message) } }, - currentKeysPacketAck({ value }: currentKeysPacketAckParams): EncodeObject { + queryGetGeneralKeyShareRequest({ value }: queryGetGeneralKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.CurrentKeysPacketAck", value: CurrentKeysPacketAck.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetGeneralKeyShareRequest", value: QueryGetGeneralKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CurrentKeysPacketAck: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetGeneralKeyShareRequest: Could not create message: ' + e.message) } }, - activePubKey({ value }: activePubKeyParams): EncodeObject { + msgRegisterValidator({ value }: msgRegisterValidatorParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.ActivePubKey", value: ActivePubKey.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgRegisterValidator", value: MsgRegisterValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ActivePubKey: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterValidator: Could not create message: ' + e.message) } }, - ibcinfo({ value }: ibcinfoParams): EncodeObject { + validatorSet({ value }: validatorSetParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.IBCInfo", value: IBCInfo.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.ValidatorSet", value: ValidatorSet.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IBCInfo: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSet: Could not create message: ' + e.message) } }, - authorizedAddress({ value }: authorizedAddressParams): EncodeObject { + msgDeleteAuthorizedAddress({ value }: msgDeleteAuthorizedAddressParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.AuthorizedAddress", value: AuthorizedAddress.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgDeleteAuthorizedAddress", value: MsgDeleteAuthorizedAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AuthorizedAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeleteAuthorizedAddress: Could not create message: ' + e.message) } }, - msgRegisterValidatorResponse({ value }: msgRegisterValidatorResponseParams): EncodeObject { + queryGetAggregatedKeyShareRequest({ value }: queryGetAggregatedKeyShareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgRegisterValidatorResponse", value: MsgRegisterValidatorResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetAggregatedKeyShareRequest", value: QueryGetAggregatedKeyShareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetAggregatedKeyShareRequest: Could not create message: ' + e.message) } }, - msgUpdateAuthorizedAddressResponse({ value }: msgUpdateAuthorizedAddressResponseParams): EncodeObject { + msgUpdateAuthorizedAddress({ value }: msgUpdateAuthorizedAddressParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgUpdateAuthorizedAddressResponse", value: MsgUpdateAuthorizedAddressResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgUpdateAuthorizedAddress", value: MsgUpdateAuthorizedAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateAuthorizedAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateAuthorizedAddress: Could not create message: ' + e.message) } }, - queryVerifiableRandomnessQuery({ value }: queryVerifiableRandomnessQueryParams): EncodeObject { + msgUpdateAuthorizedAddressResponse({ value }: msgUpdateAuthorizedAddressResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryVerifiableRandomnessQuery", value: QueryVerifiableRandomnessQuery.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgUpdateAuthorizedAddressResponse", value: MsgUpdateAuthorizedAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVerifiableRandomnessQuery: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateAuthorizedAddressResponse: Could not create message: ' + e.message) } }, - msgUpdateAuthorizedAddress({ value }: msgUpdateAuthorizedAddressParams): EncodeObject { + requestAggrKeysharePacketData({ value }: requestAggrKeysharePacketDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgUpdateAuthorizedAddress", value: MsgUpdateAuthorizedAddress.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.RequestAggrKeysharePacketData", value: RequestAggrKeysharePacketData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateAuthorizedAddress: Could not create message: ' + e.message) + throw new Error('TxClient:RequestAggrKeysharePacketData: Could not create message: ' + e.message) } }, - queuedPubKey({ value }: queuedPubKeyParams): EncodeObject { + getAggrKeysharePacketData({ value }: getAggrKeysharePacketDataParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueuedPubKey", value: QueuedPubKey.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.GetAggrKeysharePacketData", value: GetAggrKeysharePacketData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueuedPubKey: Could not create message: ' + e.message) + throw new Error('TxClient:GetAggrKeysharePacketData: Could not create message: ' + e.message) } }, - msgCreateAuthorizedAddressResponse({ value }: msgCreateAuthorizedAddressResponseParams): EncodeObject { + getAggrKeysharePacketAck({ value }: getAggrKeysharePacketAckParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgCreateAuthorizedAddressResponse", value: MsgCreateAuthorizedAddressResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.GetAggrKeysharePacketAck", value: GetAggrKeysharePacketAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateAuthorizedAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetAggrKeysharePacketAck: Could not create message: ' + e.message) } }, - generalKeyShare({ value }: generalKeyShareParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.GeneralKeyShare", value: GeneralKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GeneralKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryGetGeneralKeyShareResponse({ value }: queryGetGeneralKeyShareResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetGeneralKeyShareResponse", value: QueryGetGeneralKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetGeneralKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - counterPartyIbcinfo({ value }: counterPartyIbcinfoParams): EncodeObject { + queryGetAuthorizedAddressRequest({ value }: queryGetAuthorizedAddressRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.CounterPartyIBCInfo", value: CounterPartyIBCInfo.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryGetAuthorizedAddressRequest", value: QueryGetAuthorizedAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CounterPartyIBCInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetAuthorizedAddressRequest: Could not create message: ' + e.message) } }, - msgOverrideLatestPubKeyResponse({ value }: msgOverrideLatestPubKeyResponseParams): EncodeObject { + msgRegisterValidatorResponse({ value }: msgRegisterValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.MsgOverrideLatestPubKeyResponse", value: MsgOverrideLatestPubKeyResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.MsgRegisterValidatorResponse", value: MsgRegisterValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgOverrideLatestPubKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterValidatorResponse: Could not create message: ' + e.message) } }, - aggrKeyshareDataPacketData({ value }: aggrKeyshareDataPacketDataParams): EncodeObject { + queryAllAuthorizedAddressRequest({ value }: queryAllAuthorizedAddressRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.AggrKeyshareDataPacketData", value: AggrKeyshareDataPacketData.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.QueryAllAuthorizedAddressRequest", value: QueryAllAuthorizedAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AggrKeyshareDataPacketData: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllAuthorizedAddressRequest: Could not create message: ' + e.message) } }, - queryGetAuthorizedAddressResponse({ value }: queryGetAuthorizedAddressResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/fairyring.keyshare.QueryGetAuthorizedAddressResponse", value: QueryGetAuthorizedAddressResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.keyshare.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetAuthorizedAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, diff --git a/ts-client/fairyring.keyshare/registry.ts b/ts-client/fairyring.keyshare/registry.ts index 167e44dd..65cd1663 100755 --- a/ts-client/fairyring.keyshare/registry.ts +++ b/ts-client/fairyring.keyshare/registry.ts @@ -1,150 +1,150 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryCommitmentsRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetValidatorSetResponse } from "./types/fairyring/keyshare/query"; -import { MsgCreateLatestPubKey } from "./types/fairyring/keyshare/tx"; -import { Commitments } from "./types/fairyring/keyshare/commitments"; -import { QueryPubKeyRequest } from "./types/fairyring/keyshare/query"; -import { CurrentKeysPacketData } from "./types/fairyring/keyshare/packet"; -import { GetAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryGetAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { MsgCreateGeneralKeyShare } from "./types/fairyring/keyshare/tx"; -import { QueryParamsResponse } from "./types/fairyring/keyshare/query"; +import { KeyShareRequest } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryGetValidatorSetRequest } from "./types/fairyring/keyshare/query"; import { QueryAllAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { KeyShare } from "./types/fairyring/keyshare/key_share"; -import { ValidatorSet } from "./types/fairyring/keyshare/validator_set"; -import { RequestAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryAllValidatorSetRequest } from "./types/fairyring/keyshare/query"; -import { MsgUpdateParamsResponse } from "./types/fairyring/keyshare/tx"; import { MsgDeRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; +import { MsgCreateLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; import { MsgCreateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { MsgDeleteAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { KeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { EncryptedKeyShare } from "./types/fairyring/keyshare/pub_key"; -import { QueryCommitmentsResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { MsgDeRegisterValidator } from "./types/fairyring/keyshare/tx"; -import { GetAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { Params } from "./types/fairyring/keyshare/params"; -import { QueryGetGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; -import { RequestAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; -import { MsgOverrideLatestPubKey } from "./types/fairyring/keyshare/tx"; -import { MsgRegisterValidator } from "./types/fairyring/keyshare/tx"; -import { QueryVerifiableRandomnessResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { QueryPubKeyResponse } from "./types/fairyring/keyshare/query"; -import { MsgSendKeyshareResponse } from "./types/fairyring/keyshare/tx"; import { MsgCreateGeneralKeyShareResponse } from "./types/fairyring/keyshare/tx"; -import { QueryParamsRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; import { AggregatedKeyShare } from "./types/fairyring/keyshare/aggregated_key_share"; -import { MsgCreateLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; -import { QueryGetAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; -import { NoData } from "./types/fairyring/keyshare/packet"; -import { AggrKeyshareDataPacketAck } from "./types/fairyring/keyshare/packet"; -import { QueryGetAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { QueryGetKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { QueryAllGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; -import { KeyShareRequest } from "./types/fairyring/keyshare/requested_keyshare"; -import { QueryAllValidatorSetResponse } from "./types/fairyring/keyshare/query"; -import { QueryGetValidatorSetRequest } from "./types/fairyring/keyshare/query"; -import { QueryAllGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; -import { MsgSendKeyshare } from "./types/fairyring/keyshare/tx"; +import { KeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { MsgDeRegisterValidator } from "./types/fairyring/keyshare/tx"; import { MsgDeleteAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; import { GenesisState } from "./types/fairyring/keyshare/genesis"; -import { MsgUpdateParams } from "./types/fairyring/keyshare/tx"; +import { NoData } from "./types/fairyring/keyshare/packet"; +import { QueryCommitmentsResponse } from "./types/fairyring/keyshare/query"; +import { MsgCreateLatestPubKey } from "./types/fairyring/keyshare/tx"; +import { KeyShare } from "./types/fairyring/keyshare/key_share"; +import { MsgCreateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { MsgUpdateParamsResponse } from "./types/fairyring/keyshare/tx"; +import { QueryGetKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { AggrKeyshareDataPacketData } from "./types/fairyring/keyshare/packet"; import { CurrentKeysPacketAck } from "./types/fairyring/keyshare/packet"; -import { ActivePubKey } from "./types/fairyring/keyshare/pub_key"; -import { IBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; -import { AuthorizedAddress } from "./types/fairyring/keyshare/authorized_address"; -import { MsgRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; -import { MsgUpdateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { QueryParamsResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { MsgOverrideLatestPubKey } from "./types/fairyring/keyshare/tx"; import { QueryVerifiableRandomnessQuery } from "./types/fairyring/keyshare/query"; -import { MsgUpdateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; -import { QueuedPubKey } from "./types/fairyring/keyshare/pub_key"; -import { MsgCreateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { QueryGetValidatorSetResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetAggregatedKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { QueryAllAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; import { GeneralKeyShare } from "./types/fairyring/keyshare/general_key_share"; -import { QueryGetGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { RequestAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; import { CounterPartyIBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryAllKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { QueryAllGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; import { MsgOverrideLatestPubKeyResponse } from "./types/fairyring/keyshare/tx"; -import { AggrKeyshareDataPacketData } from "./types/fairyring/keyshare/packet"; +import { MsgSendKeyshareResponse } from "./types/fairyring/keyshare/tx"; +import { QueryAllValidatorSetResponse } from "./types/fairyring/keyshare/query"; +import { QueuedPubKey } from "./types/fairyring/keyshare/pub_key"; +import { AggrKeyshareDataPacketAck } from "./types/fairyring/keyshare/packet"; +import { QueryCommitmentsRequest } from "./types/fairyring/keyshare/query"; +import { QueryAllValidatorSetRequest } from "./types/fairyring/keyshare/query"; +import { QueryPubKeyResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { Commitments } from "./types/fairyring/keyshare/commitments"; +import { QueryAllGeneralKeyShareResponse } from "./types/fairyring/keyshare/query"; +import { MsgCreateGeneralKeyShare } from "./types/fairyring/keyshare/tx"; +import { CurrentKeysPacketData } from "./types/fairyring/keyshare/packet"; +import { QueryVerifiableRandomnessResponse } from "./types/fairyring/keyshare/query"; +import { QueryAllAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { QueryPubKeyRequest } from "./types/fairyring/keyshare/query"; +import { MsgSendKeyshare } from "./types/fairyring/keyshare/tx"; +import { AuthorizedAddress } from "./types/fairyring/keyshare/authorized_address"; +import { EncryptedKeyShare } from "./types/fairyring/keyshare/pub_key"; +import { ActivePubKey } from "./types/fairyring/keyshare/pub_key"; +import { IBCInfo } from "./types/fairyring/keyshare/requested_keyshare"; +import { QueryAllKeyShareResponse } from "./types/fairyring/keyshare/query"; import { QueryGetAuthorizedAddressResponse } from "./types/fairyring/keyshare/query"; +import { QueryGetGeneralKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { MsgRegisterValidator } from "./types/fairyring/keyshare/tx"; +import { ValidatorSet } from "./types/fairyring/keyshare/validator_set"; +import { MsgDeleteAuthorizedAddress } from "./types/fairyring/keyshare/tx"; +import { QueryGetAggregatedKeyShareRequest } from "./types/fairyring/keyshare/query"; +import { MsgUpdateAuthorizedAddress } from "./types/fairyring/keyshare/tx"; +import { MsgUpdateAuthorizedAddressResponse } from "./types/fairyring/keyshare/tx"; +import { RequestAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { GetAggrKeysharePacketData } from "./types/fairyring/keyshare/packet"; +import { GetAggrKeysharePacketAck } from "./types/fairyring/keyshare/packet"; +import { QueryParamsRequest } from "./types/fairyring/keyshare/query"; +import { MsgUpdateParams } from "./types/fairyring/keyshare/tx"; +import { QueryGetAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; +import { MsgRegisterValidatorResponse } from "./types/fairyring/keyshare/tx"; +import { QueryAllAuthorizedAddressRequest } from "./types/fairyring/keyshare/query"; +import { Params } from "./types/fairyring/keyshare/params"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/fairyring.keyshare.QueryCommitmentsRequest", QueryCommitmentsRequest], - ["/fairyring.keyshare.QueryGetValidatorSetResponse", QueryGetValidatorSetResponse], - ["/fairyring.keyshare.MsgCreateLatestPubKey", MsgCreateLatestPubKey], - ["/fairyring.keyshare.Commitments", Commitments], - ["/fairyring.keyshare.QueryPubKeyRequest", QueryPubKeyRequest], - ["/fairyring.keyshare.CurrentKeysPacketData", CurrentKeysPacketData], - ["/fairyring.keyshare.GetAggrKeysharePacketAck", GetAggrKeysharePacketAck], - ["/fairyring.keyshare.QueryGetAggregatedKeyShareResponse", QueryGetAggregatedKeyShareResponse], - ["/fairyring.keyshare.MsgCreateGeneralKeyShare", MsgCreateGeneralKeyShare], - ["/fairyring.keyshare.QueryParamsResponse", QueryParamsResponse], + ["/fairyring.keyshare.KeyShareRequest", KeyShareRequest], + ["/fairyring.keyshare.QueryGetValidatorSetRequest", QueryGetValidatorSetRequest], ["/fairyring.keyshare.QueryAllAggregatedKeyShareResponse", QueryAllAggregatedKeyShareResponse], - ["/fairyring.keyshare.KeyShare", KeyShare], - ["/fairyring.keyshare.ValidatorSet", ValidatorSet], - ["/fairyring.keyshare.RequestAggrKeysharePacketAck", RequestAggrKeysharePacketAck], - ["/fairyring.keyshare.QueryAllValidatorSetRequest", QueryAllValidatorSetRequest], - ["/fairyring.keyshare.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/fairyring.keyshare.MsgDeRegisterValidatorResponse", MsgDeRegisterValidatorResponse], + ["/fairyring.keyshare.MsgCreateLatestPubKeyResponse", MsgCreateLatestPubKeyResponse], ["/fairyring.keyshare.MsgCreateAuthorizedAddress", MsgCreateAuthorizedAddress], - ["/fairyring.keyshare.MsgDeleteAuthorizedAddress", MsgDeleteAuthorizedAddress], - ["/fairyring.keyshare.KeysharePacketData", KeysharePacketData], - ["/fairyring.keyshare.EncryptedKeyShare", EncryptedKeyShare], - ["/fairyring.keyshare.QueryCommitmentsResponse", QueryCommitmentsResponse], - ["/fairyring.keyshare.QueryAllAggregatedKeyShareRequest", QueryAllAggregatedKeyShareRequest], - ["/fairyring.keyshare.MsgDeRegisterValidator", MsgDeRegisterValidator], - ["/fairyring.keyshare.GetAggrKeysharePacketData", GetAggrKeysharePacketData], - ["/fairyring.keyshare.Params", Params], - ["/fairyring.keyshare.QueryGetGeneralKeyShareRequest", QueryGetGeneralKeyShareRequest], - ["/fairyring.keyshare.QueryAllAuthorizedAddressResponse", QueryAllAuthorizedAddressResponse], - ["/fairyring.keyshare.RequestAggrKeysharePacketData", RequestAggrKeysharePacketData], - ["/fairyring.keyshare.MsgOverrideLatestPubKey", MsgOverrideLatestPubKey], - ["/fairyring.keyshare.MsgRegisterValidator", MsgRegisterValidator], - ["/fairyring.keyshare.QueryVerifiableRandomnessResponse", QueryVerifiableRandomnessResponse], - ["/fairyring.keyshare.QueryAllKeyShareResponse", QueryAllKeyShareResponse], - ["/fairyring.keyshare.QueryPubKeyResponse", QueryPubKeyResponse], - ["/fairyring.keyshare.MsgSendKeyshareResponse", MsgSendKeyshareResponse], ["/fairyring.keyshare.MsgCreateGeneralKeyShareResponse", MsgCreateGeneralKeyShareResponse], - ["/fairyring.keyshare.QueryParamsRequest", QueryParamsRequest], - ["/fairyring.keyshare.QueryGetKeyShareRequest", QueryGetKeyShareRequest], - ["/fairyring.keyshare.QueryAllKeyShareRequest", QueryAllKeyShareRequest], - ["/fairyring.keyshare.QueryAllAuthorizedAddressRequest", QueryAllAuthorizedAddressRequest], ["/fairyring.keyshare.AggregatedKeyShare", AggregatedKeyShare], - ["/fairyring.keyshare.MsgCreateLatestPubKeyResponse", MsgCreateLatestPubKeyResponse], - ["/fairyring.keyshare.QueryGetAuthorizedAddressRequest", QueryGetAuthorizedAddressRequest], - ["/fairyring.keyshare.NoData", NoData], - ["/fairyring.keyshare.AggrKeyshareDataPacketAck", AggrKeyshareDataPacketAck], - ["/fairyring.keyshare.QueryGetAggregatedKeyShareRequest", QueryGetAggregatedKeyShareRequest], - ["/fairyring.keyshare.QueryGetKeyShareResponse", QueryGetKeyShareResponse], - ["/fairyring.keyshare.QueryAllGeneralKeyShareResponse", QueryAllGeneralKeyShareResponse], - ["/fairyring.keyshare.KeyShareRequest", KeyShareRequest], - ["/fairyring.keyshare.QueryAllValidatorSetResponse", QueryAllValidatorSetResponse], - ["/fairyring.keyshare.QueryGetValidatorSetRequest", QueryGetValidatorSetRequest], - ["/fairyring.keyshare.QueryAllGeneralKeyShareRequest", QueryAllGeneralKeyShareRequest], - ["/fairyring.keyshare.MsgSendKeyshare", MsgSendKeyshare], + ["/fairyring.keyshare.KeysharePacketData", KeysharePacketData], + ["/fairyring.keyshare.MsgDeRegisterValidator", MsgDeRegisterValidator], ["/fairyring.keyshare.MsgDeleteAuthorizedAddressResponse", MsgDeleteAuthorizedAddressResponse], ["/fairyring.keyshare.GenesisState", GenesisState], - ["/fairyring.keyshare.MsgUpdateParams", MsgUpdateParams], + ["/fairyring.keyshare.NoData", NoData], + ["/fairyring.keyshare.QueryCommitmentsResponse", QueryCommitmentsResponse], + ["/fairyring.keyshare.MsgCreateLatestPubKey", MsgCreateLatestPubKey], + ["/fairyring.keyshare.KeyShare", KeyShare], + ["/fairyring.keyshare.MsgCreateAuthorizedAddressResponse", MsgCreateAuthorizedAddressResponse], + ["/fairyring.keyshare.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/fairyring.keyshare.QueryGetKeyShareRequest", QueryGetKeyShareRequest], + ["/fairyring.keyshare.AggrKeyshareDataPacketData", AggrKeyshareDataPacketData], ["/fairyring.keyshare.CurrentKeysPacketAck", CurrentKeysPacketAck], - ["/fairyring.keyshare.ActivePubKey", ActivePubKey], - ["/fairyring.keyshare.IBCInfo", IBCInfo], - ["/fairyring.keyshare.AuthorizedAddress", AuthorizedAddress], - ["/fairyring.keyshare.MsgRegisterValidatorResponse", MsgRegisterValidatorResponse], - ["/fairyring.keyshare.MsgUpdateAuthorizedAddressResponse", MsgUpdateAuthorizedAddressResponse], + ["/fairyring.keyshare.QueryParamsResponse", QueryParamsResponse], + ["/fairyring.keyshare.QueryGetKeyShareResponse", QueryGetKeyShareResponse], + ["/fairyring.keyshare.MsgOverrideLatestPubKey", MsgOverrideLatestPubKey], ["/fairyring.keyshare.QueryVerifiableRandomnessQuery", QueryVerifiableRandomnessQuery], - ["/fairyring.keyshare.MsgUpdateAuthorizedAddress", MsgUpdateAuthorizedAddress], - ["/fairyring.keyshare.QueuedPubKey", QueuedPubKey], - ["/fairyring.keyshare.MsgCreateAuthorizedAddressResponse", MsgCreateAuthorizedAddressResponse], + ["/fairyring.keyshare.QueryGetValidatorSetResponse", QueryGetValidatorSetResponse], + ["/fairyring.keyshare.QueryGetAggregatedKeyShareResponse", QueryGetAggregatedKeyShareResponse], + ["/fairyring.keyshare.QueryAllAuthorizedAddressResponse", QueryAllAuthorizedAddressResponse], ["/fairyring.keyshare.GeneralKeyShare", GeneralKeyShare], - ["/fairyring.keyshare.QueryGetGeneralKeyShareResponse", QueryGetGeneralKeyShareResponse], + ["/fairyring.keyshare.RequestAggrKeysharePacketAck", RequestAggrKeysharePacketAck], ["/fairyring.keyshare.CounterPartyIBCInfo", CounterPartyIBCInfo], + ["/fairyring.keyshare.QueryAllKeyShareRequest", QueryAllKeyShareRequest], + ["/fairyring.keyshare.QueryAllGeneralKeyShareRequest", QueryAllGeneralKeyShareRequest], ["/fairyring.keyshare.MsgOverrideLatestPubKeyResponse", MsgOverrideLatestPubKeyResponse], - ["/fairyring.keyshare.AggrKeyshareDataPacketData", AggrKeyshareDataPacketData], + ["/fairyring.keyshare.MsgSendKeyshareResponse", MsgSendKeyshareResponse], + ["/fairyring.keyshare.QueryAllValidatorSetResponse", QueryAllValidatorSetResponse], + ["/fairyring.keyshare.QueuedPubKey", QueuedPubKey], + ["/fairyring.keyshare.AggrKeyshareDataPacketAck", AggrKeyshareDataPacketAck], + ["/fairyring.keyshare.QueryCommitmentsRequest", QueryCommitmentsRequest], + ["/fairyring.keyshare.QueryAllValidatorSetRequest", QueryAllValidatorSetRequest], + ["/fairyring.keyshare.QueryPubKeyResponse", QueryPubKeyResponse], + ["/fairyring.keyshare.QueryGetGeneralKeyShareResponse", QueryGetGeneralKeyShareResponse], + ["/fairyring.keyshare.Commitments", Commitments], + ["/fairyring.keyshare.QueryAllGeneralKeyShareResponse", QueryAllGeneralKeyShareResponse], + ["/fairyring.keyshare.MsgCreateGeneralKeyShare", MsgCreateGeneralKeyShare], + ["/fairyring.keyshare.CurrentKeysPacketData", CurrentKeysPacketData], + ["/fairyring.keyshare.QueryVerifiableRandomnessResponse", QueryVerifiableRandomnessResponse], + ["/fairyring.keyshare.QueryAllAggregatedKeyShareRequest", QueryAllAggregatedKeyShareRequest], + ["/fairyring.keyshare.QueryPubKeyRequest", QueryPubKeyRequest], + ["/fairyring.keyshare.MsgSendKeyshare", MsgSendKeyshare], + ["/fairyring.keyshare.AuthorizedAddress", AuthorizedAddress], + ["/fairyring.keyshare.EncryptedKeyShare", EncryptedKeyShare], + ["/fairyring.keyshare.ActivePubKey", ActivePubKey], + ["/fairyring.keyshare.IBCInfo", IBCInfo], + ["/fairyring.keyshare.QueryAllKeyShareResponse", QueryAllKeyShareResponse], ["/fairyring.keyshare.QueryGetAuthorizedAddressResponse", QueryGetAuthorizedAddressResponse], + ["/fairyring.keyshare.QueryGetGeneralKeyShareRequest", QueryGetGeneralKeyShareRequest], + ["/fairyring.keyshare.MsgRegisterValidator", MsgRegisterValidator], + ["/fairyring.keyshare.ValidatorSet", ValidatorSet], + ["/fairyring.keyshare.MsgDeleteAuthorizedAddress", MsgDeleteAuthorizedAddress], + ["/fairyring.keyshare.QueryGetAggregatedKeyShareRequest", QueryGetAggregatedKeyShareRequest], + ["/fairyring.keyshare.MsgUpdateAuthorizedAddress", MsgUpdateAuthorizedAddress], + ["/fairyring.keyshare.MsgUpdateAuthorizedAddressResponse", MsgUpdateAuthorizedAddressResponse], + ["/fairyring.keyshare.RequestAggrKeysharePacketData", RequestAggrKeysharePacketData], + ["/fairyring.keyshare.GetAggrKeysharePacketData", GetAggrKeysharePacketData], + ["/fairyring.keyshare.GetAggrKeysharePacketAck", GetAggrKeysharePacketAck], + ["/fairyring.keyshare.QueryParamsRequest", QueryParamsRequest], + ["/fairyring.keyshare.MsgUpdateParams", MsgUpdateParams], + ["/fairyring.keyshare.QueryGetAuthorizedAddressRequest", QueryGetAuthorizedAddressRequest], + ["/fairyring.keyshare.MsgRegisterValidatorResponse", MsgRegisterValidatorResponse], + ["/fairyring.keyshare.QueryAllAuthorizedAddressRequest", QueryAllAuthorizedAddressRequest], + ["/fairyring.keyshare.Params", Params], ]; diff --git a/ts-client/fairyring.pep/module.ts b/ts-client/fairyring.pep/module.ts index 742f10c5..1b4ef253 100755 --- a/ts-client/fairyring.pep/module.ts +++ b/ts-client/fairyring.pep/module.ts @@ -6,460 +6,471 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GenesisState } from "./types/fairyring/pep/genesis"; -import { MsgSubmitEncryptedTx } from "./types/fairyring/pep/tx"; +import { MsgRequestGeneralKeyshare } from "./types/fairyring/pep/tx"; import { MsgCreateAggregatedKeyShare } from "./types/fairyring/pep/tx"; -import { EncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; -import { QueryAllEncryptedTxFromHeightRequest } from "./types/fairyring/pep/query"; -import { QueryAllEncryptedTxFromHeightResponse } from "./types/fairyring/pep/query"; -import { Params } from "./types/fairyring/pep/params"; -import { MsgSubmitGeneralEncryptedTx } from "./types/fairyring/pep/tx"; -import { MsgGetGeneralKeyshare } from "./types/fairyring/pep/tx"; -import { MsgGetGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; -import { AggregatedKeyShare } from "./types/fairyring/pep/aggregated_key_share"; -import { TrustedCounterParty } from "./types/fairyring/pep/params"; -import { QueryGetEncryptedTxRequest } from "./types/fairyring/pep/query"; -import { QueryAllEncryptedTxRequest } from "./types/fairyring/pep/query"; -import { QueryLatestHeightResponse } from "./types/fairyring/pep/query"; -import { QueryGetPepNonceResponse } from "./types/fairyring/pep/query"; -import { MsgRequestGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; -import { QueryParamsRequest } from "./types/fairyring/pep/query"; -import { QueryKeyshareRequest } from "./types/fairyring/pep/query"; -import { QueryAllKeyshareResponse } from "./types/fairyring/pep/query"; +import { QueryGetPepNonceRequest } from "./types/fairyring/pep/query"; import { MsgUpdateParamsResponse } from "./types/fairyring/pep/tx"; +import { QueryGetEncryptedTxResponse } from "./types/fairyring/pep/query"; import { MsgSubmitEncryptedTxResponse } from "./types/fairyring/pep/tx"; -import { MsgCreateAggregatedKeyShareResponse } from "./types/fairyring/pep/tx"; -import { GeneralEncryptedTx } from "./types/fairyring/pep/encrypted_tx"; +import { QueryPubKeyRequest } from "./types/fairyring/pep/query"; +import { RequestId } from "./types/fairyring/pep/request_id"; import { GenEncTxExecutionQueue } from "./types/fairyring/pep/encrypted_tx"; -import { QueryGetEncryptedTxResponse } from "./types/fairyring/pep/query"; +import { QueryAllEncryptedTxRequest } from "./types/fairyring/pep/query"; +import { QueryAllPepNonceResponse } from "./types/fairyring/pep/query"; +import { QueryAllPepNonceRequest } from "./types/fairyring/pep/query"; import { QueryLatestHeightRequest } from "./types/fairyring/pep/query"; -import { QueryGetPepNonceRequest } from "./types/fairyring/pep/query"; +import { Params } from "./types/fairyring/pep/params"; +import { MsgGetGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; import { PepNonce } from "./types/fairyring/pep/pep_nonce"; +import { QueryGetEncryptedTxRequest } from "./types/fairyring/pep/query"; import { EncryptedTx } from "./types/fairyring/pep/encrypted_tx"; -import { QueryAllPepNonceResponse } from "./types/fairyring/pep/query"; -import { MsgRequestGeneralKeyshare } from "./types/fairyring/pep/tx"; -import { MsgUpdateParams } from "./types/fairyring/pep/tx"; -import { GeneralEncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { QueryAllEncryptedTxFromHeightRequest } from "./types/fairyring/pep/query"; import { QueryAllKeyshareRequest } from "./types/fairyring/pep/query"; +import { MsgGetGeneralKeyshare } from "./types/fairyring/pep/tx"; import { QueryAllEncryptedTxResponse } from "./types/fairyring/pep/query"; -import { QueryAllPepNonceRequest } from "./types/fairyring/pep/query"; +import { MsgSubmitGeneralEncryptedTx } from "./types/fairyring/pep/tx"; +import { QueryPubKeyResponse } from "./types/fairyring/pep/query"; +import { MsgUpdateParams } from "./types/fairyring/pep/tx"; +import { QueryAllKeyshareResponse } from "./types/fairyring/pep/query"; +import { GeneralEncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { EncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { GenesisState } from "./types/fairyring/pep/genesis"; +import { AggregatedKeyShare } from "./types/fairyring/pep/aggregated_key_share"; +import { QueryLatestHeightResponse } from "./types/fairyring/pep/query"; +import { QueryKeyshareRequest } from "./types/fairyring/pep/query"; +import { QueryAllEncryptedTxFromHeightResponse } from "./types/fairyring/pep/query"; +import { MsgSubmitEncryptedTx } from "./types/fairyring/pep/tx"; +import { QueryParamsRequest } from "./types/fairyring/pep/query"; import { QueryParamsResponse } from "./types/fairyring/pep/query"; +import { MsgCreateAggregatedKeyShareResponse } from "./types/fairyring/pep/tx"; +import { MsgRequestGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; +import { QueryGetPepNonceResponse } from "./types/fairyring/pep/query"; +import { GeneralEncryptedTx } from "./types/fairyring/pep/encrypted_tx"; +import { TrustedCounterParty } from "./types/fairyring/pep/params"; import { QueryKeyshareResponse } from "./types/fairyring/pep/query"; -import { QueryPubKeyRequest } from "./types/fairyring/pep/query"; -import { QueryPubKeyResponse } from "./types/fairyring/pep/query"; -export { GenesisState, MsgSubmitEncryptedTx, MsgCreateAggregatedKeyShare, EncryptedTxArray, QueryAllEncryptedTxFromHeightRequest, QueryAllEncryptedTxFromHeightResponse, Params, MsgSubmitGeneralEncryptedTx, MsgGetGeneralKeyshare, MsgGetGeneralKeyshareResponse, AggregatedKeyShare, TrustedCounterParty, QueryGetEncryptedTxRequest, QueryAllEncryptedTxRequest, QueryLatestHeightResponse, QueryGetPepNonceResponse, MsgRequestGeneralKeyshareResponse, QueryParamsRequest, QueryKeyshareRequest, QueryAllKeyshareResponse, MsgUpdateParamsResponse, MsgSubmitEncryptedTxResponse, MsgCreateAggregatedKeyShareResponse, GeneralEncryptedTx, GenEncTxExecutionQueue, QueryGetEncryptedTxResponse, QueryLatestHeightRequest, QueryGetPepNonceRequest, PepNonce, EncryptedTx, QueryAllPepNonceResponse, MsgRequestGeneralKeyshare, MsgUpdateParams, GeneralEncryptedTxArray, QueryAllKeyshareRequest, QueryAllEncryptedTxResponse, QueryAllPepNonceRequest, QueryParamsResponse, QueryKeyshareResponse, QueryPubKeyRequest, QueryPubKeyResponse }; +export { MsgRequestGeneralKeyshare, MsgCreateAggregatedKeyShare, QueryGetPepNonceRequest, MsgUpdateParamsResponse, QueryGetEncryptedTxResponse, MsgSubmitEncryptedTxResponse, QueryPubKeyRequest, RequestId, GenEncTxExecutionQueue, QueryAllEncryptedTxRequest, QueryAllPepNonceResponse, QueryAllPepNonceRequest, QueryLatestHeightRequest, Params, MsgGetGeneralKeyshareResponse, PepNonce, QueryGetEncryptedTxRequest, EncryptedTx, QueryAllEncryptedTxFromHeightRequest, QueryAllKeyshareRequest, MsgGetGeneralKeyshare, QueryAllEncryptedTxResponse, MsgSubmitGeneralEncryptedTx, QueryPubKeyResponse, MsgUpdateParams, QueryAllKeyshareResponse, GeneralEncryptedTxArray, EncryptedTxArray, GenesisState, AggregatedKeyShare, QueryLatestHeightResponse, QueryKeyshareRequest, QueryAllEncryptedTxFromHeightResponse, MsgSubmitEncryptedTx, QueryParamsRequest, QueryParamsResponse, MsgCreateAggregatedKeyShareResponse, MsgRequestGeneralKeyshareResponse, QueryGetPepNonceResponse, GeneralEncryptedTx, TrustedCounterParty, QueryKeyshareResponse }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgRequestGeneralKeyshareParams = { + value: MsgRequestGeneralKeyshare, fee?: StdFee, memo?: string }; -type sendMsgSubmitEncryptedTxParams = { - value: MsgSubmitEncryptedTx, +type sendMsgCreateAggregatedKeyShareParams = { + value: MsgCreateAggregatedKeyShare, fee?: StdFee, memo?: string }; -type sendMsgCreateAggregatedKeyShareParams = { - value: MsgCreateAggregatedKeyShare, +type sendQueryGetPepNonceRequestParams = { + value: QueryGetPepNonceRequest, fee?: StdFee, memo?: string }; -type sendEncryptedTxArrayParams = { - value: EncryptedTxArray, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryAllEncryptedTxFromHeightRequestParams = { - value: QueryAllEncryptedTxFromHeightRequest, +type sendQueryGetEncryptedTxResponseParams = { + value: QueryGetEncryptedTxResponse, fee?: StdFee, memo?: string }; -type sendQueryAllEncryptedTxFromHeightResponseParams = { - value: QueryAllEncryptedTxFromHeightResponse, +type sendMsgSubmitEncryptedTxResponseParams = { + value: MsgSubmitEncryptedTxResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryPubKeyRequestParams = { + value: QueryPubKeyRequest, fee?: StdFee, memo?: string }; -type sendMsgSubmitGeneralEncryptedTxParams = { - value: MsgSubmitGeneralEncryptedTx, +type sendRequestIdParams = { + value: RequestId, fee?: StdFee, memo?: string }; -type sendMsgGetGeneralKeyshareParams = { - value: MsgGetGeneralKeyshare, +type sendGenEncTxExecutionQueueParams = { + value: GenEncTxExecutionQueue, fee?: StdFee, memo?: string }; -type sendMsgGetGeneralKeyshareResponseParams = { - value: MsgGetGeneralKeyshareResponse, +type sendQueryAllEncryptedTxRequestParams = { + value: QueryAllEncryptedTxRequest, fee?: StdFee, memo?: string }; -type sendAggregatedKeyShareParams = { - value: AggregatedKeyShare, +type sendQueryAllPepNonceResponseParams = { + value: QueryAllPepNonceResponse, fee?: StdFee, memo?: string }; -type sendTrustedCounterPartyParams = { - value: TrustedCounterParty, +type sendQueryAllPepNonceRequestParams = { + value: QueryAllPepNonceRequest, fee?: StdFee, memo?: string }; -type sendQueryGetEncryptedTxRequestParams = { - value: QueryGetEncryptedTxRequest, +type sendQueryLatestHeightRequestParams = { + value: QueryLatestHeightRequest, fee?: StdFee, memo?: string }; -type sendQueryAllEncryptedTxRequestParams = { - value: QueryAllEncryptedTxRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryLatestHeightResponseParams = { - value: QueryLatestHeightResponse, +type sendMsgGetGeneralKeyshareResponseParams = { + value: MsgGetGeneralKeyshareResponse, fee?: StdFee, memo?: string }; -type sendQueryGetPepNonceResponseParams = { - value: QueryGetPepNonceResponse, +type sendPepNonceParams = { + value: PepNonce, fee?: StdFee, memo?: string }; -type sendMsgRequestGeneralKeyshareResponseParams = { - value: MsgRequestGeneralKeyshareResponse, +type sendQueryGetEncryptedTxRequestParams = { + value: QueryGetEncryptedTxRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendEncryptedTxParams = { + value: EncryptedTx, fee?: StdFee, memo?: string }; -type sendQueryKeyshareRequestParams = { - value: QueryKeyshareRequest, +type sendQueryAllEncryptedTxFromHeightRequestParams = { + value: QueryAllEncryptedTxFromHeightRequest, fee?: StdFee, memo?: string }; -type sendQueryAllKeyshareResponseParams = { - value: QueryAllKeyshareResponse, +type sendQueryAllKeyshareRequestParams = { + value: QueryAllKeyshareRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgGetGeneralKeyshareParams = { + value: MsgGetGeneralKeyshare, fee?: StdFee, memo?: string }; -type sendMsgSubmitEncryptedTxResponseParams = { - value: MsgSubmitEncryptedTxResponse, +type sendQueryAllEncryptedTxResponseParams = { + value: QueryAllEncryptedTxResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateAggregatedKeyShareResponseParams = { - value: MsgCreateAggregatedKeyShareResponse, +type sendMsgSubmitGeneralEncryptedTxParams = { + value: MsgSubmitGeneralEncryptedTx, fee?: StdFee, memo?: string }; -type sendGeneralEncryptedTxParams = { - value: GeneralEncryptedTx, +type sendQueryPubKeyResponseParams = { + value: QueryPubKeyResponse, fee?: StdFee, memo?: string }; -type sendGenEncTxExecutionQueueParams = { - value: GenEncTxExecutionQueue, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryGetEncryptedTxResponseParams = { - value: QueryGetEncryptedTxResponse, +type sendQueryAllKeyshareResponseParams = { + value: QueryAllKeyshareResponse, fee?: StdFee, memo?: string }; -type sendQueryLatestHeightRequestParams = { - value: QueryLatestHeightRequest, +type sendGeneralEncryptedTxArrayParams = { + value: GeneralEncryptedTxArray, fee?: StdFee, memo?: string }; -type sendQueryGetPepNonceRequestParams = { - value: QueryGetPepNonceRequest, +type sendEncryptedTxArrayParams = { + value: EncryptedTxArray, fee?: StdFee, memo?: string }; -type sendPepNonceParams = { - value: PepNonce, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendEncryptedTxParams = { - value: EncryptedTx, +type sendAggregatedKeyShareParams = { + value: AggregatedKeyShare, fee?: StdFee, memo?: string }; -type sendQueryAllPepNonceResponseParams = { - value: QueryAllPepNonceResponse, +type sendQueryLatestHeightResponseParams = { + value: QueryLatestHeightResponse, fee?: StdFee, memo?: string }; -type sendMsgRequestGeneralKeyshareParams = { - value: MsgRequestGeneralKeyshare, +type sendQueryKeyshareRequestParams = { + value: QueryKeyshareRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryAllEncryptedTxFromHeightResponseParams = { + value: QueryAllEncryptedTxFromHeightResponse, fee?: StdFee, memo?: string }; -type sendGeneralEncryptedTxArrayParams = { - value: GeneralEncryptedTxArray, +type sendMsgSubmitEncryptedTxParams = { + value: MsgSubmitEncryptedTx, fee?: StdFee, memo?: string }; -type sendQueryAllKeyshareRequestParams = { - value: QueryAllKeyshareRequest, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryAllEncryptedTxResponseParams = { - value: QueryAllEncryptedTxResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryAllPepNonceRequestParams = { - value: QueryAllPepNonceRequest, +type sendMsgCreateAggregatedKeyShareResponseParams = { + value: MsgCreateAggregatedKeyShareResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgRequestGeneralKeyshareResponseParams = { + value: MsgRequestGeneralKeyshareResponse, fee?: StdFee, memo?: string }; -type sendQueryKeyshareResponseParams = { - value: QueryKeyshareResponse, +type sendQueryGetPepNonceResponseParams = { + value: QueryGetPepNonceResponse, fee?: StdFee, memo?: string }; -type sendQueryPubKeyRequestParams = { - value: QueryPubKeyRequest, +type sendGeneralEncryptedTxParams = { + value: GeneralEncryptedTx, fee?: StdFee, memo?: string }; -type sendQueryPubKeyResponseParams = { - value: QueryPubKeyResponse, +type sendTrustedCounterPartyParams = { + value: TrustedCounterParty, fee?: StdFee, memo?: string }; - -type genesisStateParams = { - value: GenesisState, +type sendQueryKeyshareResponseParams = { + value: QueryKeyshareResponse, + fee?: StdFee, + memo?: string }; -type msgSubmitEncryptedTxParams = { - value: MsgSubmitEncryptedTx, + +type msgRequestGeneralKeyshareParams = { + value: MsgRequestGeneralKeyshare, }; type msgCreateAggregatedKeyShareParams = { value: MsgCreateAggregatedKeyShare, }; -type encryptedTxArrayParams = { - value: EncryptedTxArray, -}; - -type queryAllEncryptedTxFromHeightRequestParams = { - value: QueryAllEncryptedTxFromHeightRequest, +type queryGetPepNonceRequestParams = { + value: QueryGetPepNonceRequest, }; -type queryAllEncryptedTxFromHeightResponseParams = { - value: QueryAllEncryptedTxFromHeightResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type paramsParams = { - value: Params, +type queryGetEncryptedTxResponseParams = { + value: QueryGetEncryptedTxResponse, }; -type msgSubmitGeneralEncryptedTxParams = { - value: MsgSubmitGeneralEncryptedTx, +type msgSubmitEncryptedTxResponseParams = { + value: MsgSubmitEncryptedTxResponse, }; -type msgGetGeneralKeyshareParams = { - value: MsgGetGeneralKeyshare, +type queryPubKeyRequestParams = { + value: QueryPubKeyRequest, }; -type msgGetGeneralKeyshareResponseParams = { - value: MsgGetGeneralKeyshareResponse, +type requestIdParams = { + value: RequestId, }; -type aggregatedKeyShareParams = { - value: AggregatedKeyShare, +type genEncTxExecutionQueueParams = { + value: GenEncTxExecutionQueue, }; -type trustedCounterPartyParams = { - value: TrustedCounterParty, +type queryAllEncryptedTxRequestParams = { + value: QueryAllEncryptedTxRequest, }; -type queryGetEncryptedTxRequestParams = { - value: QueryGetEncryptedTxRequest, +type queryAllPepNonceResponseParams = { + value: QueryAllPepNonceResponse, }; -type queryAllEncryptedTxRequestParams = { - value: QueryAllEncryptedTxRequest, +type queryAllPepNonceRequestParams = { + value: QueryAllPepNonceRequest, }; -type queryLatestHeightResponseParams = { - value: QueryLatestHeightResponse, +type queryLatestHeightRequestParams = { + value: QueryLatestHeightRequest, }; -type queryGetPepNonceResponseParams = { - value: QueryGetPepNonceResponse, +type paramsParams = { + value: Params, }; -type msgRequestGeneralKeyshareResponseParams = { - value: MsgRequestGeneralKeyshareResponse, +type msgGetGeneralKeyshareResponseParams = { + value: MsgGetGeneralKeyshareResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type pepNonceParams = { + value: PepNonce, }; -type queryKeyshareRequestParams = { - value: QueryKeyshareRequest, +type queryGetEncryptedTxRequestParams = { + value: QueryGetEncryptedTxRequest, }; -type queryAllKeyshareResponseParams = { - value: QueryAllKeyshareResponse, +type encryptedTxParams = { + value: EncryptedTx, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryAllEncryptedTxFromHeightRequestParams = { + value: QueryAllEncryptedTxFromHeightRequest, }; -type msgSubmitEncryptedTxResponseParams = { - value: MsgSubmitEncryptedTxResponse, +type queryAllKeyshareRequestParams = { + value: QueryAllKeyshareRequest, }; -type msgCreateAggregatedKeyShareResponseParams = { - value: MsgCreateAggregatedKeyShareResponse, +type msgGetGeneralKeyshareParams = { + value: MsgGetGeneralKeyshare, }; -type generalEncryptedTxParams = { - value: GeneralEncryptedTx, +type queryAllEncryptedTxResponseParams = { + value: QueryAllEncryptedTxResponse, }; -type genEncTxExecutionQueueParams = { - value: GenEncTxExecutionQueue, +type msgSubmitGeneralEncryptedTxParams = { + value: MsgSubmitGeneralEncryptedTx, }; -type queryGetEncryptedTxResponseParams = { - value: QueryGetEncryptedTxResponse, +type queryPubKeyResponseParams = { + value: QueryPubKeyResponse, }; -type queryLatestHeightRequestParams = { - value: QueryLatestHeightRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryGetPepNonceRequestParams = { - value: QueryGetPepNonceRequest, +type queryAllKeyshareResponseParams = { + value: QueryAllKeyshareResponse, }; -type pepNonceParams = { - value: PepNonce, +type generalEncryptedTxArrayParams = { + value: GeneralEncryptedTxArray, }; -type encryptedTxParams = { - value: EncryptedTx, +type encryptedTxArrayParams = { + value: EncryptedTxArray, }; -type queryAllPepNonceResponseParams = { - value: QueryAllPepNonceResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgRequestGeneralKeyshareParams = { - value: MsgRequestGeneralKeyshare, +type aggregatedKeyShareParams = { + value: AggregatedKeyShare, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryLatestHeightResponseParams = { + value: QueryLatestHeightResponse, }; -type generalEncryptedTxArrayParams = { - value: GeneralEncryptedTxArray, +type queryKeyshareRequestParams = { + value: QueryKeyshareRequest, }; -type queryAllKeyshareRequestParams = { - value: QueryAllKeyshareRequest, +type queryAllEncryptedTxFromHeightResponseParams = { + value: QueryAllEncryptedTxFromHeightResponse, }; -type queryAllEncryptedTxResponseParams = { - value: QueryAllEncryptedTxResponse, +type msgSubmitEncryptedTxParams = { + value: MsgSubmitEncryptedTx, }; -type queryAllPepNonceRequestParams = { - value: QueryAllPepNonceRequest, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type queryKeyshareResponseParams = { - value: QueryKeyshareResponse, +type msgCreateAggregatedKeyShareResponseParams = { + value: MsgCreateAggregatedKeyShareResponse, }; -type queryPubKeyRequestParams = { - value: QueryPubKeyRequest, +type msgRequestGeneralKeyshareResponseParams = { + value: MsgRequestGeneralKeyshareResponse, }; -type queryPubKeyResponseParams = { - value: QueryPubKeyResponse, +type queryGetPepNonceResponseParams = { + value: QueryGetPepNonceResponse, +}; + +type generalEncryptedTxParams = { + value: GeneralEncryptedTx, +}; + +type trustedCounterPartyParams = { + value: TrustedCounterParty, +}; + +type queryKeyshareResponseParams = { + value: QueryKeyshareResponse, }; @@ -492,906 +503,928 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgRequestGeneralKeyshare({ value, fee, memo }: sendMsgRequestGeneralKeyshareParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRequestGeneralKeyshare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.msgRequestGeneralKeyshare({ value: MsgRequestGeneralKeyshare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRequestGeneralKeyshare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitEncryptedTx({ value, fee, memo }: sendMsgSubmitEncryptedTxParams): Promise { + async sendMsgCreateAggregatedKeyShare({ value, fee, memo }: sendMsgCreateAggregatedKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitEncryptedTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateAggregatedKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitEncryptedTx({ value: MsgSubmitEncryptedTx.fromPartial(value) }) + let msg = this.msgCreateAggregatedKeyShare({ value: MsgCreateAggregatedKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitEncryptedTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateAggregatedKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateAggregatedKeyShare({ value, fee, memo }: sendMsgCreateAggregatedKeyShareParams): Promise { + async sendQueryGetPepNonceRequest({ value, fee, memo }: sendQueryGetPepNonceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateAggregatedKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetPepNonceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateAggregatedKeyShare({ value: MsgCreateAggregatedKeyShare.fromPartial(value) }) + let msg = this.queryGetPepNonceRequest({ value: QueryGetPepNonceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateAggregatedKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetPepNonceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendEncryptedTxArray({ value, fee, memo }: sendEncryptedTxArrayParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEncryptedTxArray: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.encryptedTxArray({ value: EncryptedTxArray.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEncryptedTxArray: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllEncryptedTxFromHeightRequest({ value, fee, memo }: sendQueryAllEncryptedTxFromHeightRequestParams): Promise { + async sendQueryGetEncryptedTxResponse({ value, fee, memo }: sendQueryGetEncryptedTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetEncryptedTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEncryptedTxFromHeightRequest({ value: QueryAllEncryptedTxFromHeightRequest.fromPartial(value) }) + let msg = this.queryGetEncryptedTxResponse({ value: QueryGetEncryptedTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetEncryptedTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllEncryptedTxFromHeightResponse({ value, fee, memo }: sendQueryAllEncryptedTxFromHeightResponseParams): Promise { + async sendMsgSubmitEncryptedTxResponse({ value, fee, memo }: sendMsgSubmitEncryptedTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitEncryptedTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEncryptedTxFromHeightResponse({ value: QueryAllEncryptedTxFromHeightResponse.fromPartial(value) }) + let msg = this.msgSubmitEncryptedTxResponse({ value: MsgSubmitEncryptedTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitEncryptedTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryPubKeyRequest({ value, fee, memo }: sendQueryPubKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPubKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryPubKeyRequest({ value: QueryPubKeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPubKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitGeneralEncryptedTx({ value, fee, memo }: sendMsgSubmitGeneralEncryptedTxParams): Promise { + async sendRequestId({ value, fee, memo }: sendRequestIdParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitGeneralEncryptedTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRequestId: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitGeneralEncryptedTx({ value: MsgSubmitGeneralEncryptedTx.fromPartial(value) }) + let msg = this.requestId({ value: RequestId.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitGeneralEncryptedTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRequestId: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGetGeneralKeyshare({ value, fee, memo }: sendMsgGetGeneralKeyshareParams): Promise { + async sendGenEncTxExecutionQueue({ value, fee, memo }: sendGenEncTxExecutionQueueParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGetGeneralKeyshare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenEncTxExecutionQueue: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.genEncTxExecutionQueue({ value: GenEncTxExecutionQueue.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendGenEncTxExecutionQueue: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryAllEncryptedTxRequest({ value, fee, memo }: sendQueryAllEncryptedTxRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryAllEncryptedTxRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGetGeneralKeyshare({ value: MsgGetGeneralKeyshare.fromPartial(value) }) + let msg = this.queryAllEncryptedTxRequest({ value: QueryAllEncryptedTxRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGetGeneralKeyshare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEncryptedTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGetGeneralKeyshareResponse({ value, fee, memo }: sendMsgGetGeneralKeyshareResponseParams): Promise { + async sendQueryAllPepNonceResponse({ value, fee, memo }: sendQueryAllPepNonceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGetGeneralKeyshareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllPepNonceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgGetGeneralKeyshareResponse({ value: MsgGetGeneralKeyshareResponse.fromPartial(value) }) + let msg = this.queryAllPepNonceResponse({ value: QueryAllPepNonceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgGetGeneralKeyshareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllPepNonceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAggregatedKeyShare({ value, fee, memo }: sendAggregatedKeyShareParams): Promise { + async sendQueryAllPepNonceRequest({ value, fee, memo }: sendQueryAllPepNonceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAggregatedKeyShare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllPepNonceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.aggregatedKeyShare({ value: AggregatedKeyShare.fromPartial(value) }) + let msg = this.queryAllPepNonceRequest({ value: QueryAllPepNonceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAggregatedKeyShare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllPepNonceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTrustedCounterParty({ value, fee, memo }: sendTrustedCounterPartyParams): Promise { + async sendQueryLatestHeightRequest({ value, fee, memo }: sendQueryLatestHeightRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTrustedCounterParty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryLatestHeightRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.trustedCounterParty({ value: TrustedCounterParty.fromPartial(value) }) + let msg = this.queryLatestHeightRequest({ value: QueryLatestHeightRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTrustedCounterParty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryLatestHeightRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetEncryptedTxRequest({ value, fee, memo }: sendQueryGetEncryptedTxRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetEncryptedTxRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetEncryptedTxRequest({ value: QueryGetEncryptedTxRequest.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetEncryptedTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllEncryptedTxRequest({ value, fee, memo }: sendQueryAllEncryptedTxRequestParams): Promise { + async sendMsgGetGeneralKeyshareResponse({ value, fee, memo }: sendMsgGetGeneralKeyshareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEncryptedTxRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGetGeneralKeyshareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEncryptedTxRequest({ value: QueryAllEncryptedTxRequest.fromPartial(value) }) + let msg = this.msgGetGeneralKeyshareResponse({ value: MsgGetGeneralKeyshareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEncryptedTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGetGeneralKeyshareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryLatestHeightResponse({ value, fee, memo }: sendQueryLatestHeightResponseParams): Promise { + async sendPepNonce({ value, fee, memo }: sendPepNonceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryLatestHeightResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPepNonce: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryLatestHeightResponse({ value: QueryLatestHeightResponse.fromPartial(value) }) + let msg = this.pepNonce({ value: PepNonce.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryLatestHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPepNonce: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetPepNonceResponse({ value, fee, memo }: sendQueryGetPepNonceResponseParams): Promise { + async sendQueryGetEncryptedTxRequest({ value, fee, memo }: sendQueryGetEncryptedTxRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetPepNonceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetEncryptedTxRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetPepNonceResponse({ value: QueryGetPepNonceResponse.fromPartial(value) }) + let msg = this.queryGetEncryptedTxRequest({ value: QueryGetEncryptedTxRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetPepNonceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetEncryptedTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRequestGeneralKeyshareResponse({ value, fee, memo }: sendMsgRequestGeneralKeyshareResponseParams): Promise { + async sendEncryptedTx({ value, fee, memo }: sendEncryptedTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRequestGeneralKeyshareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEncryptedTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRequestGeneralKeyshareResponse({ value: MsgRequestGeneralKeyshareResponse.fromPartial(value) }) + let msg = this.encryptedTx({ value: EncryptedTx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRequestGeneralKeyshareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEncryptedTx: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryAllEncryptedTxFromHeightRequest({ value, fee, memo }: sendQueryAllEncryptedTxFromHeightRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryAllEncryptedTxFromHeightRequest({ value: QueryAllEncryptedTxFromHeightRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyshareRequest({ value, fee, memo }: sendQueryKeyshareRequestParams): Promise { + async sendQueryAllKeyshareRequest({ value, fee, memo }: sendQueryAllKeyshareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyshareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllKeyshareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyshareRequest({ value: QueryKeyshareRequest.fromPartial(value) }) + let msg = this.queryAllKeyshareRequest({ value: QueryAllKeyshareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyshareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllKeyshareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllKeyshareResponse({ value, fee, memo }: sendQueryAllKeyshareResponseParams): Promise { + async sendMsgGetGeneralKeyshare({ value, fee, memo }: sendMsgGetGeneralKeyshareParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllKeyshareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgGetGeneralKeyshare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllKeyshareResponse({ value: QueryAllKeyshareResponse.fromPartial(value) }) + let msg = this.msgGetGeneralKeyshare({ value: MsgGetGeneralKeyshare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllKeyshareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGetGeneralKeyshare: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryAllEncryptedTxResponse({ value, fee, memo }: sendQueryAllEncryptedTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllEncryptedTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryAllEncryptedTxResponse({ value: QueryAllEncryptedTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEncryptedTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitEncryptedTxResponse({ value, fee, memo }: sendMsgSubmitEncryptedTxResponseParams): Promise { + async sendMsgSubmitGeneralEncryptedTx({ value, fee, memo }: sendMsgSubmitGeneralEncryptedTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitEncryptedTxResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitGeneralEncryptedTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitEncryptedTxResponse({ value: MsgSubmitEncryptedTxResponse.fromPartial(value) }) + let msg = this.msgSubmitGeneralEncryptedTx({ value: MsgSubmitGeneralEncryptedTx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitEncryptedTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitGeneralEncryptedTx: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateAggregatedKeyShareResponse({ value, fee, memo }: sendMsgCreateAggregatedKeyShareResponseParams): Promise { + async sendQueryPubKeyResponse({ value, fee, memo }: sendQueryPubKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPubKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateAggregatedKeyShareResponse({ value: MsgCreateAggregatedKeyShareResponse.fromPartial(value) }) + let msg = this.queryPubKeyResponse({ value: QueryPubKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPubKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGeneralEncryptedTx({ value, fee, memo }: sendGeneralEncryptedTxParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendGeneralEncryptedTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.generalEncryptedTx({ value: GeneralEncryptedTx.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGeneralEncryptedTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendGenEncTxExecutionQueue({ value, fee, memo }: sendGenEncTxExecutionQueueParams): Promise { + async sendQueryAllKeyshareResponse({ value, fee, memo }: sendQueryAllKeyshareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenEncTxExecutionQueue: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllKeyshareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genEncTxExecutionQueue({ value: GenEncTxExecutionQueue.fromPartial(value) }) + let msg = this.queryAllKeyshareResponse({ value: QueryAllKeyshareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenEncTxExecutionQueue: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllKeyshareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetEncryptedTxResponse({ value, fee, memo }: sendQueryGetEncryptedTxResponseParams): Promise { + async sendGeneralEncryptedTxArray({ value, fee, memo }: sendGeneralEncryptedTxArrayParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetEncryptedTxResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGeneralEncryptedTxArray: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetEncryptedTxResponse({ value: QueryGetEncryptedTxResponse.fromPartial(value) }) + let msg = this.generalEncryptedTxArray({ value: GeneralEncryptedTxArray.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetEncryptedTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGeneralEncryptedTxArray: Could not broadcast Tx: '+ e.message) } }, - async sendQueryLatestHeightRequest({ value, fee, memo }: sendQueryLatestHeightRequestParams): Promise { + async sendEncryptedTxArray({ value, fee, memo }: sendEncryptedTxArrayParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryLatestHeightRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEncryptedTxArray: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryLatestHeightRequest({ value: QueryLatestHeightRequest.fromPartial(value) }) + let msg = this.encryptedTxArray({ value: EncryptedTxArray.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryLatestHeightRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEncryptedTxArray: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGetPepNonceRequest({ value, fee, memo }: sendQueryGetPepNonceRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGetPepNonceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryGetPepNonceRequest({ value: QueryGetPepNonceRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryGetPepNonceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendPepNonce({ value, fee, memo }: sendPepNonceParams): Promise { + async sendAggregatedKeyShare({ value, fee, memo }: sendAggregatedKeyShareParams): Promise { if (!signer) { - throw new Error('TxClient:sendPepNonce: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAggregatedKeyShare: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.pepNonce({ value: PepNonce.fromPartial(value) }) + let msg = this.aggregatedKeyShare({ value: AggregatedKeyShare.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPepNonce: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAggregatedKeyShare: Could not broadcast Tx: '+ e.message) } }, - async sendEncryptedTx({ value, fee, memo }: sendEncryptedTxParams): Promise { + async sendQueryLatestHeightResponse({ value, fee, memo }: sendQueryLatestHeightResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEncryptedTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryLatestHeightResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.encryptedTx({ value: EncryptedTx.fromPartial(value) }) + let msg = this.queryLatestHeightResponse({ value: QueryLatestHeightResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendEncryptedTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryLatestHeightResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllPepNonceResponse({ value, fee, memo }: sendQueryAllPepNonceResponseParams): Promise { + async sendQueryKeyshareRequest({ value, fee, memo }: sendQueryKeyshareRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllPepNonceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyshareRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllPepNonceResponse({ value: QueryAllPepNonceResponse.fromPartial(value) }) + let msg = this.queryKeyshareRequest({ value: QueryKeyshareRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllPepNonceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyshareRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRequestGeneralKeyshare({ value, fee, memo }: sendMsgRequestGeneralKeyshareParams): Promise { + async sendQueryAllEncryptedTxFromHeightResponse({ value, fee, memo }: sendQueryAllEncryptedTxFromHeightResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRequestGeneralKeyshare: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRequestGeneralKeyshare({ value: MsgRequestGeneralKeyshare.fromPartial(value) }) + let msg = this.queryAllEncryptedTxFromHeightResponse({ value: QueryAllEncryptedTxFromHeightResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRequestGeneralKeyshare: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllEncryptedTxFromHeightResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgSubmitEncryptedTx({ value, fee, memo }: sendMsgSubmitEncryptedTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitEncryptedTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.msgSubmitEncryptedTx({ value: MsgSubmitEncryptedTx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitEncryptedTx: Could not broadcast Tx: '+ e.message) } }, - async sendGeneralEncryptedTxArray({ value, fee, memo }: sendGeneralEncryptedTxArrayParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGeneralEncryptedTxArray: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.generalEncryptedTxArray({ value: GeneralEncryptedTxArray.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGeneralEncryptedTxArray: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllKeyshareRequest({ value, fee, memo }: sendQueryAllKeyshareRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllKeyshareRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllKeyshareRequest({ value: QueryAllKeyshareRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllKeyshareRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllEncryptedTxResponse({ value, fee, memo }: sendQueryAllEncryptedTxResponseParams): Promise { + async sendMsgCreateAggregatedKeyShareResponse({ value, fee, memo }: sendMsgCreateAggregatedKeyShareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEncryptedTxResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateAggregatedKeyShareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllEncryptedTxResponse({ value: QueryAllEncryptedTxResponse.fromPartial(value) }) + let msg = this.msgCreateAggregatedKeyShareResponse({ value: MsgCreateAggregatedKeyShareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllEncryptedTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateAggregatedKeyShareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllPepNonceRequest({ value, fee, memo }: sendQueryAllPepNonceRequestParams): Promise { + async sendMsgRequestGeneralKeyshareResponse({ value, fee, memo }: sendMsgRequestGeneralKeyshareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllPepNonceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRequestGeneralKeyshareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryAllPepNonceRequest({ value: QueryAllPepNonceRequest.fromPartial(value) }) + let msg = this.msgRequestGeneralKeyshareResponse({ value: MsgRequestGeneralKeyshareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryAllPepNonceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRequestGeneralKeyshareResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryGetPepNonceResponse({ value, fee, memo }: sendQueryGetPepNonceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGetPepNonceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.queryGetPepNonceResponse({ value: QueryGetPepNonceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGetPepNonceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyshareResponse({ value, fee, memo }: sendQueryKeyshareResponseParams): Promise { + async sendGeneralEncryptedTx({ value, fee, memo }: sendGeneralEncryptedTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyshareResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGeneralEncryptedTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyshareResponse({ value: QueryKeyshareResponse.fromPartial(value) }) + let msg = this.generalEncryptedTx({ value: GeneralEncryptedTx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyshareResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGeneralEncryptedTx: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPubKeyRequest({ value, fee, memo }: sendQueryPubKeyRequestParams): Promise { + async sendTrustedCounterParty({ value, fee, memo }: sendTrustedCounterPartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPubKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTrustedCounterParty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPubKeyRequest({ value: QueryPubKeyRequest.fromPartial(value) }) + let msg = this.trustedCounterParty({ value: TrustedCounterParty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPubKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTrustedCounterParty: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPubKeyResponse({ value, fee, memo }: sendQueryPubKeyResponseParams): Promise { + async sendQueryKeyshareResponse({ value, fee, memo }: sendQueryKeyshareResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPubKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyshareResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPubKeyResponse({ value: QueryPubKeyResponse.fromPartial(value) }) + let msg = this.queryKeyshareResponse({ value: QueryKeyshareResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPubKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyshareResponse: Could not broadcast Tx: '+ e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgRequestGeneralKeyshare({ value }: msgRequestGeneralKeyshareParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgRequestGeneralKeyshare", value: MsgRequestGeneralKeyshare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRequestGeneralKeyshare: Could not create message: ' + e.message) } }, - msgSubmitEncryptedTx({ value }: msgSubmitEncryptedTxParams): EncodeObject { + msgCreateAggregatedKeyShare({ value }: msgCreateAggregatedKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgSubmitEncryptedTx", value: MsgSubmitEncryptedTx.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgCreateAggregatedKeyShare", value: MsgCreateAggregatedKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitEncryptedTx: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateAggregatedKeyShare: Could not create message: ' + e.message) } }, - msgCreateAggregatedKeyShare({ value }: msgCreateAggregatedKeyShareParams): EncodeObject { + queryGetPepNonceRequest({ value }: queryGetPepNonceRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgCreateAggregatedKeyShare", value: MsgCreateAggregatedKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryGetPepNonceRequest", value: QueryGetPepNonceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateAggregatedKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetPepNonceRequest: Could not create message: ' + e.message) } }, - encryptedTxArray({ value }: encryptedTxArrayParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.EncryptedTxArray", value: EncryptedTxArray.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EncryptedTxArray: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryAllEncryptedTxFromHeightRequest({ value }: queryAllEncryptedTxFromHeightRequestParams): EncodeObject { + queryGetEncryptedTxResponse({ value }: queryGetEncryptedTxResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxFromHeightRequest", value: QueryAllEncryptedTxFromHeightRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryGetEncryptedTxResponse", value: QueryGetEncryptedTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEncryptedTxFromHeightRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetEncryptedTxResponse: Could not create message: ' + e.message) } }, - queryAllEncryptedTxFromHeightResponse({ value }: queryAllEncryptedTxFromHeightResponseParams): EncodeObject { + msgSubmitEncryptedTxResponse({ value }: msgSubmitEncryptedTxResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxFromHeightResponse", value: QueryAllEncryptedTxFromHeightResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgSubmitEncryptedTxResponse", value: MsgSubmitEncryptedTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEncryptedTxFromHeightResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitEncryptedTxResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryPubKeyRequest({ value }: queryPubKeyRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryPubKeyRequest", value: QueryPubKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPubKeyRequest: Could not create message: ' + e.message) } }, - msgSubmitGeneralEncryptedTx({ value }: msgSubmitGeneralEncryptedTxParams): EncodeObject { + requestId({ value }: requestIdParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgSubmitGeneralEncryptedTx", value: MsgSubmitGeneralEncryptedTx.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.RequestId", value: RequestId.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitGeneralEncryptedTx: Could not create message: ' + e.message) + throw new Error('TxClient:RequestId: Could not create message: ' + e.message) } }, - msgGetGeneralKeyshare({ value }: msgGetGeneralKeyshareParams): EncodeObject { + genEncTxExecutionQueue({ value }: genEncTxExecutionQueueParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgGetGeneralKeyshare", value: MsgGetGeneralKeyshare.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.GenEncTxExecutionQueue", value: GenEncTxExecutionQueue.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGetGeneralKeyshare: Could not create message: ' + e.message) + throw new Error('TxClient:GenEncTxExecutionQueue: Could not create message: ' + e.message) } }, - msgGetGeneralKeyshareResponse({ value }: msgGetGeneralKeyshareResponseParams): EncodeObject { + queryAllEncryptedTxRequest({ value }: queryAllEncryptedTxRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgGetGeneralKeyshareResponse", value: MsgGetGeneralKeyshareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxRequest", value: QueryAllEncryptedTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGetGeneralKeyshareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEncryptedTxRequest: Could not create message: ' + e.message) } }, - aggregatedKeyShare({ value }: aggregatedKeyShareParams): EncodeObject { + queryAllPepNonceResponse({ value }: queryAllPepNonceResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.AggregatedKeyShare", value: AggregatedKeyShare.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllPepNonceResponse", value: QueryAllPepNonceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AggregatedKeyShare: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllPepNonceResponse: Could not create message: ' + e.message) } }, - trustedCounterParty({ value }: trustedCounterPartyParams): EncodeObject { + queryAllPepNonceRequest({ value }: queryAllPepNonceRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.TrustedCounterParty", value: TrustedCounterParty.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllPepNonceRequest", value: QueryAllPepNonceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TrustedCounterParty: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllPepNonceRequest: Could not create message: ' + e.message) } }, - queryGetEncryptedTxRequest({ value }: queryGetEncryptedTxRequestParams): EncodeObject { + queryLatestHeightRequest({ value }: queryLatestHeightRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryGetEncryptedTxRequest", value: QueryGetEncryptedTxRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryLatestHeightRequest", value: QueryLatestHeightRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetEncryptedTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryLatestHeightRequest: Could not create message: ' + e.message) } }, - queryAllEncryptedTxRequest({ value }: queryAllEncryptedTxRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxRequest", value: QueryAllEncryptedTxRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEncryptedTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryLatestHeightResponse({ value }: queryLatestHeightResponseParams): EncodeObject { + msgGetGeneralKeyshareResponse({ value }: msgGetGeneralKeyshareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryLatestHeightResponse", value: QueryLatestHeightResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgGetGeneralKeyshareResponse", value: MsgGetGeneralKeyshareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryLatestHeightResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGetGeneralKeyshareResponse: Could not create message: ' + e.message) } }, - queryGetPepNonceResponse({ value }: queryGetPepNonceResponseParams): EncodeObject { + pepNonce({ value }: pepNonceParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryGetPepNonceResponse", value: QueryGetPepNonceResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.PepNonce", value: PepNonce.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetPepNonceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:PepNonce: Could not create message: ' + e.message) } }, - msgRequestGeneralKeyshareResponse({ value }: msgRequestGeneralKeyshareResponseParams): EncodeObject { + queryGetEncryptedTxRequest({ value }: queryGetEncryptedTxRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgRequestGeneralKeyshareResponse", value: MsgRequestGeneralKeyshareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryGetEncryptedTxRequest", value: QueryGetEncryptedTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRequestGeneralKeyshareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetEncryptedTxRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + encryptedTx({ value }: encryptedTxParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.EncryptedTx", value: EncryptedTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EncryptedTx: Could not create message: ' + e.message) } }, - queryKeyshareRequest({ value }: queryKeyshareRequestParams): EncodeObject { + queryAllEncryptedTxFromHeightRequest({ value }: queryAllEncryptedTxFromHeightRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryKeyshareRequest", value: QueryKeyshareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxFromHeightRequest", value: QueryAllEncryptedTxFromHeightRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyshareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEncryptedTxFromHeightRequest: Could not create message: ' + e.message) } }, - queryAllKeyshareResponse({ value }: queryAllKeyshareResponseParams): EncodeObject { + queryAllKeyshareRequest({ value }: queryAllKeyshareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllKeyshareResponse", value: QueryAllKeyshareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllKeyshareRequest", value: QueryAllKeyshareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllKeyshareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllKeyshareRequest: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgGetGeneralKeyshare({ value }: msgGetGeneralKeyshareParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgGetGeneralKeyshare", value: MsgGetGeneralKeyshare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGetGeneralKeyshare: Could not create message: ' + e.message) } }, - msgSubmitEncryptedTxResponse({ value }: msgSubmitEncryptedTxResponseParams): EncodeObject { + queryAllEncryptedTxResponse({ value }: queryAllEncryptedTxResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgSubmitEncryptedTxResponse", value: MsgSubmitEncryptedTxResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxResponse", value: QueryAllEncryptedTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitEncryptedTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEncryptedTxResponse: Could not create message: ' + e.message) } }, - msgCreateAggregatedKeyShareResponse({ value }: msgCreateAggregatedKeyShareResponseParams): EncodeObject { + msgSubmitGeneralEncryptedTx({ value }: msgSubmitGeneralEncryptedTxParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgCreateAggregatedKeyShareResponse", value: MsgCreateAggregatedKeyShareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgSubmitGeneralEncryptedTx", value: MsgSubmitGeneralEncryptedTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateAggregatedKeyShareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitGeneralEncryptedTx: Could not create message: ' + e.message) } }, - generalEncryptedTx({ value }: generalEncryptedTxParams): EncodeObject { + queryPubKeyResponse({ value }: queryPubKeyResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.GeneralEncryptedTx", value: GeneralEncryptedTx.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryPubKeyResponse", value: QueryPubKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GeneralEncryptedTx: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPubKeyResponse: Could not create message: ' + e.message) } }, - genEncTxExecutionQueue({ value }: genEncTxExecutionQueueParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.GenEncTxExecutionQueue", value: GenEncTxExecutionQueue.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenEncTxExecutionQueue: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryGetEncryptedTxResponse({ value }: queryGetEncryptedTxResponseParams): EncodeObject { + queryAllKeyshareResponse({ value }: queryAllKeyshareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryGetEncryptedTxResponse", value: QueryGetEncryptedTxResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllKeyshareResponse", value: QueryAllKeyshareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetEncryptedTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllKeyshareResponse: Could not create message: ' + e.message) } }, - queryLatestHeightRequest({ value }: queryLatestHeightRequestParams): EncodeObject { + generalEncryptedTxArray({ value }: generalEncryptedTxArrayParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryLatestHeightRequest", value: QueryLatestHeightRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.GeneralEncryptedTxArray", value: GeneralEncryptedTxArray.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryLatestHeightRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GeneralEncryptedTxArray: Could not create message: ' + e.message) } }, - queryGetPepNonceRequest({ value }: queryGetPepNonceRequestParams): EncodeObject { + encryptedTxArray({ value }: encryptedTxArrayParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryGetPepNonceRequest", value: QueryGetPepNonceRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.EncryptedTxArray", value: EncryptedTxArray.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGetPepNonceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EncryptedTxArray: Could not create message: ' + e.message) } }, - pepNonce({ value }: pepNonceParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.PepNonce", value: PepNonce.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PepNonce: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - encryptedTx({ value }: encryptedTxParams): EncodeObject { + aggregatedKeyShare({ value }: aggregatedKeyShareParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.EncryptedTx", value: EncryptedTx.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.AggregatedKeyShare", value: AggregatedKeyShare.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EncryptedTx: Could not create message: ' + e.message) + throw new Error('TxClient:AggregatedKeyShare: Could not create message: ' + e.message) } }, - queryAllPepNonceResponse({ value }: queryAllPepNonceResponseParams): EncodeObject { + queryLatestHeightResponse({ value }: queryLatestHeightResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllPepNonceResponse", value: QueryAllPepNonceResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryLatestHeightResponse", value: QueryLatestHeightResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllPepNonceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryLatestHeightResponse: Could not create message: ' + e.message) } }, - msgRequestGeneralKeyshare({ value }: msgRequestGeneralKeyshareParams): EncodeObject { + queryKeyshareRequest({ value }: queryKeyshareRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgRequestGeneralKeyshare", value: MsgRequestGeneralKeyshare.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryKeyshareRequest", value: QueryKeyshareRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRequestGeneralKeyshare: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyshareRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryAllEncryptedTxFromHeightResponse({ value }: queryAllEncryptedTxFromHeightResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxFromHeightResponse", value: QueryAllEncryptedTxFromHeightResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllEncryptedTxFromHeightResponse: Could not create message: ' + e.message) } }, - generalEncryptedTxArray({ value }: generalEncryptedTxArrayParams): EncodeObject { + msgSubmitEncryptedTx({ value }: msgSubmitEncryptedTxParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.GeneralEncryptedTxArray", value: GeneralEncryptedTxArray.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgSubmitEncryptedTx", value: MsgSubmitEncryptedTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GeneralEncryptedTxArray: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitEncryptedTx: Could not create message: ' + e.message) } }, - queryAllKeyshareRequest({ value }: queryAllKeyshareRequestParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllKeyshareRequest", value: QueryAllKeyshareRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllKeyshareRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryAllEncryptedTxResponse({ value }: queryAllEncryptedTxResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllEncryptedTxResponse", value: QueryAllEncryptedTxResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEncryptedTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryAllPepNonceRequest({ value }: queryAllPepNonceRequestParams): EncodeObject { + msgCreateAggregatedKeyShareResponse({ value }: msgCreateAggregatedKeyShareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryAllPepNonceRequest", value: QueryAllPepNonceRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgCreateAggregatedKeyShareResponse", value: MsgCreateAggregatedKeyShareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllPepNonceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateAggregatedKeyShareResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgRequestGeneralKeyshareResponse({ value }: msgRequestGeneralKeyshareResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.MsgRequestGeneralKeyshareResponse", value: MsgRequestGeneralKeyshareResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRequestGeneralKeyshareResponse: Could not create message: ' + e.message) } }, - queryKeyshareResponse({ value }: queryKeyshareResponseParams): EncodeObject { + queryGetPepNonceResponse({ value }: queryGetPepNonceResponseParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryKeyshareResponse", value: QueryKeyshareResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.QueryGetPepNonceResponse", value: QueryGetPepNonceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyshareResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGetPepNonceResponse: Could not create message: ' + e.message) } }, - queryPubKeyRequest({ value }: queryPubKeyRequestParams): EncodeObject { + generalEncryptedTx({ value }: generalEncryptedTxParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryPubKeyRequest", value: QueryPubKeyRequest.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.GeneralEncryptedTx", value: GeneralEncryptedTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPubKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GeneralEncryptedTx: Could not create message: ' + e.message) } }, - queryPubKeyResponse({ value }: queryPubKeyResponseParams): EncodeObject { + trustedCounterParty({ value }: trustedCounterPartyParams): EncodeObject { try { - return { typeUrl: "/fairyring.pep.QueryPubKeyResponse", value: QueryPubKeyResponse.fromPartial( value ) } + return { typeUrl: "/fairyring.pep.TrustedCounterParty", value: TrustedCounterParty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPubKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TrustedCounterParty: Could not create message: ' + e.message) + } + }, + + queryKeyshareResponse({ value }: queryKeyshareResponseParams): EncodeObject { + try { + return { typeUrl: "/fairyring.pep.QueryKeyshareResponse", value: QueryKeyshareResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryKeyshareResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/fairyring.pep/registry.ts b/ts-client/fairyring.pep/registry.ts index 41f5feee..45704efd 100755 --- a/ts-client/fairyring.pep/registry.ts +++ b/ts-client/fairyring.pep/registry.ts @@ -1,88 +1,90 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { GenesisState } from "./types/fairyring/pep/genesis"; -import { MsgSubmitEncryptedTx } from "./types/fairyring/pep/tx"; +import { MsgRequestGeneralKeyshare } from "./types/fairyring/pep/tx"; import { MsgCreateAggregatedKeyShare } from "./types/fairyring/pep/tx"; -import { EncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; -import { QueryAllEncryptedTxFromHeightRequest } from "./types/fairyring/pep/query"; -import { QueryAllEncryptedTxFromHeightResponse } from "./types/fairyring/pep/query"; -import { Params } from "./types/fairyring/pep/params"; -import { MsgSubmitGeneralEncryptedTx } from "./types/fairyring/pep/tx"; -import { MsgGetGeneralKeyshare } from "./types/fairyring/pep/tx"; -import { MsgGetGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; -import { AggregatedKeyShare } from "./types/fairyring/pep/aggregated_key_share"; -import { TrustedCounterParty } from "./types/fairyring/pep/params"; -import { QueryGetEncryptedTxRequest } from "./types/fairyring/pep/query"; -import { QueryAllEncryptedTxRequest } from "./types/fairyring/pep/query"; -import { QueryLatestHeightResponse } from "./types/fairyring/pep/query"; -import { QueryGetPepNonceResponse } from "./types/fairyring/pep/query"; -import { MsgRequestGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; -import { QueryParamsRequest } from "./types/fairyring/pep/query"; -import { QueryKeyshareRequest } from "./types/fairyring/pep/query"; -import { QueryAllKeyshareResponse } from "./types/fairyring/pep/query"; +import { QueryGetPepNonceRequest } from "./types/fairyring/pep/query"; import { MsgUpdateParamsResponse } from "./types/fairyring/pep/tx"; +import { QueryGetEncryptedTxResponse } from "./types/fairyring/pep/query"; import { MsgSubmitEncryptedTxResponse } from "./types/fairyring/pep/tx"; -import { MsgCreateAggregatedKeyShareResponse } from "./types/fairyring/pep/tx"; -import { GeneralEncryptedTx } from "./types/fairyring/pep/encrypted_tx"; +import { QueryPubKeyRequest } from "./types/fairyring/pep/query"; +import { RequestId } from "./types/fairyring/pep/request_id"; import { GenEncTxExecutionQueue } from "./types/fairyring/pep/encrypted_tx"; -import { QueryGetEncryptedTxResponse } from "./types/fairyring/pep/query"; +import { QueryAllEncryptedTxRequest } from "./types/fairyring/pep/query"; +import { QueryAllPepNonceResponse } from "./types/fairyring/pep/query"; +import { QueryAllPepNonceRequest } from "./types/fairyring/pep/query"; import { QueryLatestHeightRequest } from "./types/fairyring/pep/query"; -import { QueryGetPepNonceRequest } from "./types/fairyring/pep/query"; +import { Params } from "./types/fairyring/pep/params"; +import { MsgGetGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; import { PepNonce } from "./types/fairyring/pep/pep_nonce"; +import { QueryGetEncryptedTxRequest } from "./types/fairyring/pep/query"; import { EncryptedTx } from "./types/fairyring/pep/encrypted_tx"; -import { QueryAllPepNonceResponse } from "./types/fairyring/pep/query"; -import { MsgRequestGeneralKeyshare } from "./types/fairyring/pep/tx"; -import { MsgUpdateParams } from "./types/fairyring/pep/tx"; -import { GeneralEncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { QueryAllEncryptedTxFromHeightRequest } from "./types/fairyring/pep/query"; import { QueryAllKeyshareRequest } from "./types/fairyring/pep/query"; +import { MsgGetGeneralKeyshare } from "./types/fairyring/pep/tx"; import { QueryAllEncryptedTxResponse } from "./types/fairyring/pep/query"; -import { QueryAllPepNonceRequest } from "./types/fairyring/pep/query"; +import { MsgSubmitGeneralEncryptedTx } from "./types/fairyring/pep/tx"; +import { QueryPubKeyResponse } from "./types/fairyring/pep/query"; +import { MsgUpdateParams } from "./types/fairyring/pep/tx"; +import { QueryAllKeyshareResponse } from "./types/fairyring/pep/query"; +import { GeneralEncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { EncryptedTxArray } from "./types/fairyring/pep/encrypted_tx"; +import { GenesisState } from "./types/fairyring/pep/genesis"; +import { AggregatedKeyShare } from "./types/fairyring/pep/aggregated_key_share"; +import { QueryLatestHeightResponse } from "./types/fairyring/pep/query"; +import { QueryKeyshareRequest } from "./types/fairyring/pep/query"; +import { QueryAllEncryptedTxFromHeightResponse } from "./types/fairyring/pep/query"; +import { MsgSubmitEncryptedTx } from "./types/fairyring/pep/tx"; +import { QueryParamsRequest } from "./types/fairyring/pep/query"; import { QueryParamsResponse } from "./types/fairyring/pep/query"; +import { MsgCreateAggregatedKeyShareResponse } from "./types/fairyring/pep/tx"; +import { MsgRequestGeneralKeyshareResponse } from "./types/fairyring/pep/tx"; +import { QueryGetPepNonceResponse } from "./types/fairyring/pep/query"; +import { GeneralEncryptedTx } from "./types/fairyring/pep/encrypted_tx"; +import { TrustedCounterParty } from "./types/fairyring/pep/params"; import { QueryKeyshareResponse } from "./types/fairyring/pep/query"; -import { QueryPubKeyRequest } from "./types/fairyring/pep/query"; -import { QueryPubKeyResponse } from "./types/fairyring/pep/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/fairyring.pep.GenesisState", GenesisState], - ["/fairyring.pep.MsgSubmitEncryptedTx", MsgSubmitEncryptedTx], + ["/fairyring.pep.MsgRequestGeneralKeyshare", MsgRequestGeneralKeyshare], ["/fairyring.pep.MsgCreateAggregatedKeyShare", MsgCreateAggregatedKeyShare], - ["/fairyring.pep.EncryptedTxArray", EncryptedTxArray], - ["/fairyring.pep.QueryAllEncryptedTxFromHeightRequest", QueryAllEncryptedTxFromHeightRequest], - ["/fairyring.pep.QueryAllEncryptedTxFromHeightResponse", QueryAllEncryptedTxFromHeightResponse], - ["/fairyring.pep.Params", Params], - ["/fairyring.pep.MsgSubmitGeneralEncryptedTx", MsgSubmitGeneralEncryptedTx], - ["/fairyring.pep.MsgGetGeneralKeyshare", MsgGetGeneralKeyshare], - ["/fairyring.pep.MsgGetGeneralKeyshareResponse", MsgGetGeneralKeyshareResponse], - ["/fairyring.pep.AggregatedKeyShare", AggregatedKeyShare], - ["/fairyring.pep.TrustedCounterParty", TrustedCounterParty], - ["/fairyring.pep.QueryGetEncryptedTxRequest", QueryGetEncryptedTxRequest], - ["/fairyring.pep.QueryAllEncryptedTxRequest", QueryAllEncryptedTxRequest], - ["/fairyring.pep.QueryLatestHeightResponse", QueryLatestHeightResponse], - ["/fairyring.pep.QueryGetPepNonceResponse", QueryGetPepNonceResponse], - ["/fairyring.pep.MsgRequestGeneralKeyshareResponse", MsgRequestGeneralKeyshareResponse], - ["/fairyring.pep.QueryParamsRequest", QueryParamsRequest], - ["/fairyring.pep.QueryKeyshareRequest", QueryKeyshareRequest], - ["/fairyring.pep.QueryAllKeyshareResponse", QueryAllKeyshareResponse], + ["/fairyring.pep.QueryGetPepNonceRequest", QueryGetPepNonceRequest], ["/fairyring.pep.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/fairyring.pep.QueryGetEncryptedTxResponse", QueryGetEncryptedTxResponse], ["/fairyring.pep.MsgSubmitEncryptedTxResponse", MsgSubmitEncryptedTxResponse], - ["/fairyring.pep.MsgCreateAggregatedKeyShareResponse", MsgCreateAggregatedKeyShareResponse], - ["/fairyring.pep.GeneralEncryptedTx", GeneralEncryptedTx], + ["/fairyring.pep.QueryPubKeyRequest", QueryPubKeyRequest], + ["/fairyring.pep.RequestId", RequestId], ["/fairyring.pep.GenEncTxExecutionQueue", GenEncTxExecutionQueue], - ["/fairyring.pep.QueryGetEncryptedTxResponse", QueryGetEncryptedTxResponse], + ["/fairyring.pep.QueryAllEncryptedTxRequest", QueryAllEncryptedTxRequest], + ["/fairyring.pep.QueryAllPepNonceResponse", QueryAllPepNonceResponse], + ["/fairyring.pep.QueryAllPepNonceRequest", QueryAllPepNonceRequest], ["/fairyring.pep.QueryLatestHeightRequest", QueryLatestHeightRequest], - ["/fairyring.pep.QueryGetPepNonceRequest", QueryGetPepNonceRequest], + ["/fairyring.pep.Params", Params], + ["/fairyring.pep.MsgGetGeneralKeyshareResponse", MsgGetGeneralKeyshareResponse], ["/fairyring.pep.PepNonce", PepNonce], + ["/fairyring.pep.QueryGetEncryptedTxRequest", QueryGetEncryptedTxRequest], ["/fairyring.pep.EncryptedTx", EncryptedTx], - ["/fairyring.pep.QueryAllPepNonceResponse", QueryAllPepNonceResponse], - ["/fairyring.pep.MsgRequestGeneralKeyshare", MsgRequestGeneralKeyshare], - ["/fairyring.pep.MsgUpdateParams", MsgUpdateParams], - ["/fairyring.pep.GeneralEncryptedTxArray", GeneralEncryptedTxArray], + ["/fairyring.pep.QueryAllEncryptedTxFromHeightRequest", QueryAllEncryptedTxFromHeightRequest], ["/fairyring.pep.QueryAllKeyshareRequest", QueryAllKeyshareRequest], + ["/fairyring.pep.MsgGetGeneralKeyshare", MsgGetGeneralKeyshare], ["/fairyring.pep.QueryAllEncryptedTxResponse", QueryAllEncryptedTxResponse], - ["/fairyring.pep.QueryAllPepNonceRequest", QueryAllPepNonceRequest], + ["/fairyring.pep.MsgSubmitGeneralEncryptedTx", MsgSubmitGeneralEncryptedTx], + ["/fairyring.pep.QueryPubKeyResponse", QueryPubKeyResponse], + ["/fairyring.pep.MsgUpdateParams", MsgUpdateParams], + ["/fairyring.pep.QueryAllKeyshareResponse", QueryAllKeyshareResponse], + ["/fairyring.pep.GeneralEncryptedTxArray", GeneralEncryptedTxArray], + ["/fairyring.pep.EncryptedTxArray", EncryptedTxArray], + ["/fairyring.pep.GenesisState", GenesisState], + ["/fairyring.pep.AggregatedKeyShare", AggregatedKeyShare], + ["/fairyring.pep.QueryLatestHeightResponse", QueryLatestHeightResponse], + ["/fairyring.pep.QueryKeyshareRequest", QueryKeyshareRequest], + ["/fairyring.pep.QueryAllEncryptedTxFromHeightResponse", QueryAllEncryptedTxFromHeightResponse], + ["/fairyring.pep.MsgSubmitEncryptedTx", MsgSubmitEncryptedTx], + ["/fairyring.pep.QueryParamsRequest", QueryParamsRequest], ["/fairyring.pep.QueryParamsResponse", QueryParamsResponse], + ["/fairyring.pep.MsgCreateAggregatedKeyShareResponse", MsgCreateAggregatedKeyShareResponse], + ["/fairyring.pep.MsgRequestGeneralKeyshareResponse", MsgRequestGeneralKeyshareResponse], + ["/fairyring.pep.QueryGetPepNonceResponse", QueryGetPepNonceResponse], + ["/fairyring.pep.GeneralEncryptedTx", GeneralEncryptedTx], + ["/fairyring.pep.TrustedCounterParty", TrustedCounterParty], ["/fairyring.pep.QueryKeyshareResponse", QueryKeyshareResponse], - ["/fairyring.pep.QueryPubKeyRequest", QueryPubKeyRequest], - ["/fairyring.pep.QueryPubKeyResponse", QueryPubKeyResponse], ]; diff --git a/ts-client/fairyring.pep/types/fairyring/pep/genesis.ts b/ts-client/fairyring.pep/types/fairyring/pep/genesis.ts index f63e40a9..0fc94f87 100644 --- a/ts-client/fairyring.pep/types/fairyring/pep/genesis.ts +++ b/ts-client/fairyring.pep/types/fairyring/pep/genesis.ts @@ -6,6 +6,7 @@ import { AggregatedKeyShare } from "./aggregated_key_share"; import { EncryptedTxArray } from "./encrypted_tx"; import { Params } from "./params"; import { PepNonce } from "./pep_nonce"; +import { RequestId } from "./request_id"; export const protobufPackage = "fairyring.pep"; @@ -21,6 +22,7 @@ export interface GenesisState { activePubKey: ActivePublicKey | undefined; queuedPubKey: QueuedPublicKey | undefined; requestCount: number; + requestIdList: RequestId[]; } function createBaseGenesisState(): GenesisState { @@ -33,6 +35,7 @@ function createBaseGenesisState(): GenesisState { activePubKey: undefined, queuedPubKey: undefined, requestCount: 0, + requestIdList: [], }; } @@ -62,6 +65,9 @@ export const GenesisState = { if (message.requestCount !== 0) { writer.uint32(72).uint64(message.requestCount); } + for (const v of message.requestIdList) { + RequestId.encode(v!, writer.uint32(82).fork()).ldelim(); + } return writer; }, @@ -128,6 +134,13 @@ export const GenesisState = { message.requestCount = longToNumber(reader.uint64() as Long); continue; + case 10: + if (tag !== 82) { + break; + } + + message.requestIdList.push(RequestId.decode(reader, reader.uint32())); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -153,6 +166,9 @@ export const GenesisState = { activePubKey: isSet(object.activePubKey) ? ActivePublicKey.fromJSON(object.activePubKey) : undefined, queuedPubKey: isSet(object.queuedPubKey) ? QueuedPublicKey.fromJSON(object.queuedPubKey) : undefined, requestCount: isSet(object.requestCount) ? Number(object.requestCount) : 0, + requestIdList: Array.isArray(object?.requestIdList) + ? object.requestIdList.map((e: any) => RequestId.fromJSON(e)) + : [], }; }, @@ -182,6 +198,9 @@ export const GenesisState = { if (message.requestCount !== 0) { obj.requestCount = Math.round(message.requestCount); } + if (message.requestIdList?.length) { + obj.requestIdList = message.requestIdList.map((e) => RequestId.toJSON(e)); + } return obj; }, @@ -204,6 +223,7 @@ export const GenesisState = { ? QueuedPublicKey.fromPartial(object.queuedPubKey) : undefined; message.requestCount = object.requestCount ?? 0; + message.requestIdList = object.requestIdList?.map((e) => RequestId.fromPartial(e)) || []; return message; }, }; diff --git a/ts-client/fairyring.pep/types/fairyring/pep/request_id.ts b/ts-client/fairyring.pep/types/fairyring/pep/request_id.ts new file mode 100644 index 00000000..5437c3ff --- /dev/null +++ b/ts-client/fairyring.pep/types/fairyring/pep/request_id.ts @@ -0,0 +1,98 @@ +/* eslint-disable */ +import _m0 from "protobufjs/minimal"; + +export const protobufPackage = "fairyring.pep"; + +export interface RequestId { + creator: string; + reqId: string; +} + +function createBaseRequestId(): RequestId { + return { creator: "", reqId: "" }; +} + +export const RequestId = { + encode(message: RequestId, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.creator !== "") { + writer.uint32(10).string(message.creator); + } + if (message.reqId !== "") { + writer.uint32(18).string(message.reqId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): RequestId { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestId(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.creator = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.reqId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): RequestId { + return { + creator: isSet(object.creator) ? String(object.creator) : "", + reqId: isSet(object.reqId) ? String(object.reqId) : "", + }; + }, + + toJSON(message: RequestId): unknown { + const obj: any = {}; + if (message.creator !== "") { + obj.creator = message.creator; + } + if (message.reqId !== "") { + obj.reqId = message.reqId; + } + return obj; + }, + + create, I>>(base?: I): RequestId { + return RequestId.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): RequestId { + const message = createBaseRequestId(); + message.creator = object.creator ?? ""; + message.reqId = object.reqId ?? ""; + return message; + }, +}; + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +type KeysOfUnion = T extends T ? keyof T : never; +export type Exact = P extends Builtin ? P + : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts-client/fairyring.pep/types/fairyring/pep/tx.ts b/ts-client/fairyring.pep/types/fairyring/pep/tx.ts index a7fb7ac0..a0d34f70 100644 --- a/ts-client/fairyring.pep/types/fairyring/pep/tx.ts +++ b/ts-client/fairyring.pep/types/fairyring/pep/tx.ts @@ -10,11 +10,7 @@ export const protobufPackage = "fairyring.pep"; export interface MsgUpdateParams { /** authority is the address that controls the module (defaults to x/gov unless overwritten). */ authority: string; - /** - * params defines the module parameters to update. - * - * NOTE: All parameters must be supplied. - */ + /** NOTE: All parameters must be supplied. */ params: Params | undefined; } @@ -53,6 +49,7 @@ export interface MsgCreateAggregatedKeyShareResponse { export interface MsgRequestGeneralKeyshare { creator: string; estimatedDelay: Duration | undefined; + reqId: string; } export interface MsgRequestGeneralKeyshareResponse { @@ -544,7 +541,7 @@ export const MsgCreateAggregatedKeyShareResponse = { }; function createBaseMsgRequestGeneralKeyshare(): MsgRequestGeneralKeyshare { - return { creator: "", estimatedDelay: undefined }; + return { creator: "", estimatedDelay: undefined, reqId: "" }; } export const MsgRequestGeneralKeyshare = { @@ -555,6 +552,9 @@ export const MsgRequestGeneralKeyshare = { if (message.estimatedDelay !== undefined) { Duration.encode(message.estimatedDelay, writer.uint32(18).fork()).ldelim(); } + if (message.reqId !== "") { + writer.uint32(26).string(message.reqId); + } return writer; }, @@ -579,6 +579,13 @@ export const MsgRequestGeneralKeyshare = { message.estimatedDelay = Duration.decode(reader, reader.uint32()); continue; + case 3: + if (tag !== 26) { + break; + } + + message.reqId = reader.string(); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -592,6 +599,7 @@ export const MsgRequestGeneralKeyshare = { return { creator: isSet(object.creator) ? String(object.creator) : "", estimatedDelay: isSet(object.estimatedDelay) ? Duration.fromJSON(object.estimatedDelay) : undefined, + reqId: isSet(object.reqId) ? String(object.reqId) : "", }; }, @@ -603,6 +611,9 @@ export const MsgRequestGeneralKeyshare = { if (message.estimatedDelay !== undefined) { obj.estimatedDelay = Duration.toJSON(message.estimatedDelay); } + if (message.reqId !== "") { + obj.reqId = message.reqId; + } return obj; }, @@ -615,6 +626,7 @@ export const MsgRequestGeneralKeyshare = { message.estimatedDelay = (object.estimatedDelay !== undefined && object.estimatedDelay !== null) ? Duration.fromPartial(object.estimatedDelay) : undefined; + message.reqId = object.reqId ?? ""; return message; }, }; diff --git a/ts-client/ibc.applications.fee.v1/module.ts b/ts-client/ibc.applications.fee.v1/module.ts index 967dadb1..5df4e05c 100755 --- a/ts-client/ibc.applications.fee.v1/module.ts +++ b/ts-client/ibc.applications.fee.v1/module.ts @@ -6,63 +6,57 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; +import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; +import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; +import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; -import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; -import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; - +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; -export { MsgPayPacketFeeResponse, Metadata, MsgPayPacketFeeAsync, QueryTotalRecvFeesResponse, QueryCounterpartyPayeeRequest, RegisteredPayee, Fee, QueryIncentivizedPacketResponse, QueryTotalAckFeesRequest, QueryFeeEnabledChannelResponse, FeeEnabledChannel, RegisteredCounterpartyPayee, MsgRegisterPayee, MsgPayPacketFee, QueryTotalTimeoutFeesRequest, QueryCounterpartyPayeeResponse, QueryFeeEnabledChannelRequest, IncentivizedAcknowledgement, QueryIncentivizedPacketsForChannelRequest, QueryTotalAckFeesResponse, QueryPayeeRequest, QueryFeeEnabledChannelsRequest, MsgRegisterCounterpartyPayeeResponse, MsgPayPacketFeeAsyncResponse, MsgRegisterCounterpartyPayee, PacketFees, QueryIncentivizedPacketsRequest, QueryTotalTimeoutFeesResponse, MsgRegisterPayeeResponse, QueryIncentivizedPacketRequest, QueryIncentivizedPacketsForChannelResponse, QueryTotalRecvFeesRequest, QueryPayeeResponse, IdentifiedPacketFees, GenesisState, QueryFeeEnabledChannelsResponse, ForwardRelayerAddress, PacketFee, QueryIncentivizedPacketsResponse }; -type sendMsgPayPacketFeeResponseParams = { - value: MsgPayPacketFeeResponse, - fee?: StdFee, - memo?: string -}; +export { QueryIncentivizedPacketsForChannelRequest, QueryTotalRecvFeesRequest, QueryTotalRecvFeesResponse, QueryTotalTimeoutFeesResponse, QueryFeeEnabledChannelRequest, MsgPayPacketFeeResponse, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketResponse, Fee, PacketFees, Metadata, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsResponse, QueryIncentivizedPacketsForChannelResponse, QueryCounterpartyPayeeResponse, QueryFeeEnabledChannelResponse, PacketFee, GenesisState, ForwardRelayerAddress, MsgPayPacketFee, QueryIncentivizedPacketRequest, MsgRegisterCounterpartyPayee, QueryFeeEnabledChannelsRequest, IncentivizedAcknowledgement, FeeEnabledChannel, RegisteredCounterpartyPayee, MsgPayPacketFeeAsync, MsgRegisterCounterpartyPayeeResponse, IdentifiedPacketFees, RegisteredPayee, QueryIncentivizedPacketsResponse, QueryPayeeResponse, MsgRegisterPayee, QueryTotalTimeoutFeesRequest, QueryPayeeRequest, MsgRegisterPayeeResponse, MsgPayPacketFeeAsyncResponse, QueryTotalAckFeesRequest, QueryTotalAckFeesResponse }; -type sendMetadataParams = { - value: Metadata, +type sendQueryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest, fee?: StdFee, memo?: string }; -type sendMsgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync, +type sendQueryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest, fee?: StdFee, memo?: string }; @@ -73,68 +67,68 @@ type sendQueryTotalRecvFeesResponseParams = { memo?: string }; -type sendQueryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest, +type sendQueryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse, fee?: StdFee, memo?: string }; -type sendRegisteredPayeeParams = { - value: RegisteredPayee, +type sendQueryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest, fee?: StdFee, memo?: string }; -type sendFeeParams = { - value: Fee, +type sendMsgPayPacketFeeResponseParams = { + value: MsgPayPacketFeeResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse, +type sendQueryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest, fee?: StdFee, memo?: string }; -type sendQueryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest, +type sendQueryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse, +type sendFeeParams = { + value: Fee, fee?: StdFee, memo?: string }; -type sendFeeEnabledChannelParams = { - value: FeeEnabledChannel, +type sendPacketFeesParams = { + value: PacketFees, fee?: StdFee, memo?: string }; -type sendRegisteredCounterpartyPayeeParams = { - value: RegisteredCounterpartyPayee, +type sendMetadataParams = { + value: Metadata, fee?: StdFee, memo?: string }; -type sendMsgRegisterPayeeParams = { - value: MsgRegisterPayee, +type sendQueryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest, fee?: StdFee, memo?: string }; -type sendMsgPayPacketFeeParams = { - value: MsgPayPacketFee, +type sendQueryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalTimeoutFeesRequestParams = { - value: QueryTotalTimeoutFeesRequest, +type sendQueryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse, fee?: StdFee, memo?: string }; @@ -145,98 +139,98 @@ type sendQueryCounterpartyPayeeResponseParams = { memo?: string }; -type sendQueryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest, +type sendQueryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse, fee?: StdFee, memo?: string }; -type sendIncentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement, +type sendPacketFeeParams = { + value: PacketFee, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryTotalAckFeesResponseParams = { - value: QueryTotalAckFeesResponse, +type sendForwardRelayerAddressParams = { + value: ForwardRelayerAddress, fee?: StdFee, memo?: string }; -type sendQueryPayeeRequestParams = { - value: QueryPayeeRequest, +type sendMsgPayPacketFeeParams = { + value: MsgPayPacketFee, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest, +type sendQueryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse, +type sendMsgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee, fee?: StdFee, memo?: string }; -type sendMsgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse, +type sendQueryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee, +type sendIncentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement, fee?: StdFee, memo?: string }; -type sendPacketFeesParams = { - value: PacketFees, +type sendFeeEnabledChannelParams = { + value: FeeEnabledChannel, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest, +type sendRegisteredCounterpartyPayeeParams = { + value: RegisteredCounterpartyPayee, fee?: StdFee, memo?: string }; -type sendQueryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse, +type sendMsgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync, fee?: StdFee, memo?: string }; -type sendMsgRegisterPayeeResponseParams = { - value: MsgRegisterPayeeResponse, +type sendMsgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest, +type sendIdentifiedPacketFeesParams = { + value: IdentifiedPacketFees, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse, +type sendRegisteredPayeeParams = { + value: RegisteredPayee, fee?: StdFee, memo?: string }; -type sendQueryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest, +type sendQueryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse, fee?: StdFee, memo?: string }; @@ -247,197 +241,203 @@ type sendQueryPayeeResponseParams = { memo?: string }; -type sendIdentifiedPacketFeesParams = { - value: IdentifiedPacketFees, +type sendMsgRegisterPayeeParams = { + value: MsgRegisterPayee, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryTotalTimeoutFeesRequestParams = { + value: QueryTotalTimeoutFeesRequest, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse, +type sendQueryPayeeRequestParams = { + value: QueryPayeeRequest, fee?: StdFee, memo?: string }; -type sendForwardRelayerAddressParams = { - value: ForwardRelayerAddress, +type sendMsgRegisterPayeeResponseParams = { + value: MsgRegisterPayeeResponse, fee?: StdFee, memo?: string }; -type sendPacketFeeParams = { - value: PacketFee, +type sendMsgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse, +type sendQueryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest, fee?: StdFee, memo?: string }; - -type msgPayPacketFeeResponseParams = { - value: MsgPayPacketFeeResponse, +type sendQueryTotalAckFeesResponseParams = { + value: QueryTotalAckFeesResponse, + fee?: StdFee, + memo?: string }; -type metadataParams = { - value: Metadata, + +type queryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest, }; -type msgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync, +type queryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest, }; type queryTotalRecvFeesResponseParams = { value: QueryTotalRecvFeesResponse, }; -type queryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest, +type queryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse, }; -type registeredPayeeParams = { - value: RegisteredPayee, +type queryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest, }; -type feeParams = { - value: Fee, +type msgPayPacketFeeResponseParams = { + value: MsgPayPacketFeeResponse, }; -type queryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse, +type queryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest, }; -type queryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest, +type queryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse, }; -type queryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse, +type feeParams = { + value: Fee, }; -type feeEnabledChannelParams = { - value: FeeEnabledChannel, +type packetFeesParams = { + value: PacketFees, }; -type registeredCounterpartyPayeeParams = { - value: RegisteredCounterpartyPayee, +type metadataParams = { + value: Metadata, }; -type msgRegisterPayeeParams = { - value: MsgRegisterPayee, +type queryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest, }; -type msgPayPacketFeeParams = { - value: MsgPayPacketFee, +type queryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse, }; -type queryTotalTimeoutFeesRequestParams = { - value: QueryTotalTimeoutFeesRequest, +type queryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse, }; type queryCounterpartyPayeeResponseParams = { value: QueryCounterpartyPayeeResponse, }; -type queryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest, +type queryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse, }; -type incentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement, +type packetFeeParams = { + value: PacketFee, }; -type queryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest, +type genesisStateParams = { + value: GenesisState, }; -type queryTotalAckFeesResponseParams = { - value: QueryTotalAckFeesResponse, +type forwardRelayerAddressParams = { + value: ForwardRelayerAddress, }; -type queryPayeeRequestParams = { - value: QueryPayeeRequest, +type msgPayPacketFeeParams = { + value: MsgPayPacketFee, }; -type queryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest, +type queryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest, }; -type msgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse, +type msgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee, }; -type msgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse, +type queryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest, }; -type msgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee, +type incentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement, }; -type packetFeesParams = { - value: PacketFees, +type feeEnabledChannelParams = { + value: FeeEnabledChannel, }; -type queryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest, +type registeredCounterpartyPayeeParams = { + value: RegisteredCounterpartyPayee, }; -type queryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse, +type msgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync, }; -type msgRegisterPayeeResponseParams = { - value: MsgRegisterPayeeResponse, +type msgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse, }; -type queryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest, +type identifiedPacketFeesParams = { + value: IdentifiedPacketFees, }; -type queryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse, +type registeredPayeeParams = { + value: RegisteredPayee, }; -type queryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest, +type queryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse, }; type queryPayeeResponseParams = { value: QueryPayeeResponse, }; -type identifiedPacketFeesParams = { - value: IdentifiedPacketFees, +type msgRegisterPayeeParams = { + value: MsgRegisterPayee, }; -type genesisStateParams = { - value: GenesisState, +type queryTotalTimeoutFeesRequestParams = { + value: QueryTotalTimeoutFeesRequest, }; -type queryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse, +type queryPayeeRequestParams = { + value: QueryPayeeRequest, }; -type forwardRelayerAddressParams = { - value: ForwardRelayerAddress, +type msgRegisterPayeeResponseParams = { + value: MsgRegisterPayeeResponse, }; -type packetFeeParams = { - value: PacketFee, +type msgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse, }; -type queryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse, +type queryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest, +}; + +type queryTotalAckFeesResponseParams = { + value: QueryTotalAckFeesResponse, }; @@ -470,45 +470,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPayPacketFeeResponse({ value: MsgPayPacketFeeResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgPayPacketFeeResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { + async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadata: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.metadata({ value: Metadata.fromPartial(value) }) + let msg = this.queryIncentivizedPacketsForChannelRequest({ value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise { + async sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsync: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPayPacketFeeAsync({ value: MsgPayPacketFeeAsync.fromPartial(value) }) + let msg = this.queryTotalRecvFeesRequest({ value: QueryTotalRecvFeesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPayPacketFeeAsync: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: '+ e.message) } }, @@ -526,157 +512,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise { + async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: sendQueryTotalTimeoutFeesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryCounterpartyPayeeRequest({ value: QueryCounterpartyPayeeRequest.fromPartial(value) }) + let msg = this.queryTotalTimeoutFeesResponse({ value: QueryTotalTimeoutFeesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendRegisteredPayee({ value, fee, memo }: sendRegisteredPayeeParams): Promise { + async sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendRegisteredPayee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.registeredPayee({ value: RegisteredPayee.fromPartial(value) }) + let msg = this.queryFeeEnabledChannelRequest({ value: QueryFeeEnabledChannelRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRegisteredPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: '+ e.message) } }, - async sendFee({ value, fee, memo }: sendFeeParams): Promise { + async sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendFee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPayPacketFeeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.fee({ value: Fee.fromPartial(value) }) + let msg = this.msgPayPacketFeeResponse({ value: MsgPayPacketFeeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise { + async sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketResponse({ value: QueryIncentivizedPacketResponse.fromPartial(value) }) + let msg = this.queryIncentivizedPacketsRequest({ value: QueryIncentivizedPacketsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise { + async sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalAckFeesRequest({ value: QueryTotalAckFeesRequest.fromPartial(value) }) + let msg = this.queryIncentivizedPacketResponse({ value: QueryIncentivizedPacketResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalAckFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise { + async sendFee({ value, fee, memo }: sendFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendFee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryFeeEnabledChannelResponse({ value: QueryFeeEnabledChannelResponse.fromPartial(value) }) + let msg = this.fee({ value: Fee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFee: Could not broadcast Tx: '+ e.message) } }, - async sendFeeEnabledChannel({ value, fee, memo }: sendFeeEnabledChannelParams): Promise { + async sendPacketFees({ value, fee, memo }: sendPacketFeesParams): Promise { if (!signer) { - throw new Error('TxClient:sendFeeEnabledChannel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacketFees: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.feeEnabledChannel({ value: FeeEnabledChannel.fromPartial(value) }) + let msg = this.packetFees({ value: PacketFees.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendFeeEnabledChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketFees: Could not broadcast Tx: '+ e.message) } }, - async sendRegisteredCounterpartyPayee({ value, fee, memo }: sendRegisteredCounterpartyPayeeParams): Promise { + async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendRegisteredCounterpartyPayee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMetadata: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.registeredCounterpartyPayee({ value: RegisteredCounterpartyPayee.fromPartial(value) }) + let msg = this.metadata({ value: Metadata.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendRegisteredCounterpartyPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise { + async sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterPayee({ value: MsgRegisterPayee.fromPartial(value) }) + let msg = this.queryCounterpartyPayeeRequest({ value: QueryCounterpartyPayeeRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise { + async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPayPacketFee({ value: MsgPayPacketFee.fromPartial(value) }) + let msg = this.queryFeeEnabledChannelsResponse({ value: QueryFeeEnabledChannelsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPayPacketFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise { + async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalTimeoutFeesRequest({ value: QueryTotalTimeoutFeesRequest.fromPartial(value) }) + let msg = this.queryIncentivizedPacketsForChannelResponse({ value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: '+ e.message) } }, @@ -694,227 +680,227 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise { + async sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryFeeEnabledChannelRequest({ value: QueryFeeEnabledChannelRequest.fromPartial(value) }) + let msg = this.queryFeeEnabledChannelResponse({ value: QueryFeeEnabledChannelResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise { + async sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendIncentivizedAcknowledgement: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacketFee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.incentivizedAcknowledgement({ value: IncentivizedAcknowledgement.fromPartial(value) }) + let msg = this.packetFee({ value: PacketFee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIncentivizedAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketFee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketsForChannelRequest({ value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalAckFeesResponse({ value, fee, memo }: sendQueryTotalAckFeesResponseParams): Promise { + async sendForwardRelayerAddress({ value, fee, memo }: sendForwardRelayerAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendForwardRelayerAddress: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalAckFeesResponse({ value: QueryTotalAckFeesResponse.fromPartial(value) }) + let msg = this.forwardRelayerAddress({ value: ForwardRelayerAddress.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalAckFeesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendForwardRelayerAddress: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPayeeRequest({ value, fee, memo }: sendQueryPayeeRequestParams): Promise { + async sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPayeeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPayPacketFee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPayeeRequest({ value: QueryPayeeRequest.fromPartial(value) }) + let msg = this.msgPayPacketFee({ value: MsgPayPacketFee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPayeeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise { + async sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryFeeEnabledChannelsRequest({ value: QueryFeeEnabledChannelsRequest.fromPartial(value) }) + let msg = this.queryIncentivizedPacketRequest({ value: QueryIncentivizedPacketRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeResponseParams): Promise { + async sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterCounterpartyPayeeResponse({ value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }) + let msg = this.msgRegisterCounterpartyPayee({ value: MsgRegisterCounterpartyPayee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise { + async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPayPacketFeeAsyncResponse({ value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }) + let msg = this.queryFeeEnabledChannelsRequest({ value: QueryFeeEnabledChannelsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise { + async sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIncentivizedAcknowledgement: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterCounterpartyPayee({ value: MsgRegisterCounterpartyPayee.fromPartial(value) }) + let msg = this.incentivizedAcknowledgement({ value: IncentivizedAcknowledgement.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIncentivizedAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendPacketFees({ value, fee, memo }: sendPacketFeesParams): Promise { + async sendFeeEnabledChannel({ value, fee, memo }: sendFeeEnabledChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketFees: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendFeeEnabledChannel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packetFees({ value: PacketFees.fromPartial(value) }) + let msg = this.feeEnabledChannel({ value: FeeEnabledChannel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacketFees: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFeeEnabledChannel: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise { + async sendRegisteredCounterpartyPayee({ value, fee, memo }: sendRegisteredCounterpartyPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRegisteredCounterpartyPayee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketsRequest({ value: QueryIncentivizedPacketsRequest.fromPartial(value) }) + let msg = this.registeredCounterpartyPayee({ value: RegisteredCounterpartyPayee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRegisteredCounterpartyPayee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: sendQueryTotalTimeoutFeesResponseParams): Promise { + async sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPayPacketFeeAsync: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalTimeoutFeesResponse({ value: QueryTotalTimeoutFeesResponse.fromPartial(value) }) + let msg = this.msgPayPacketFeeAsync({ value: MsgPayPacketFeeAsync.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeAsync: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterPayeeResponse({ value, fee, memo }: sendMsgRegisterPayeeResponseParams): Promise { + async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayeeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterPayeeResponse({ value: MsgRegisterPayeeResponse.fromPartial(value) }) + let msg = this.msgRegisterCounterpartyPayeeResponse({ value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterPayeeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise { + async sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIdentifiedPacketFees: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketRequest({ value: QueryIncentivizedPacketRequest.fromPartial(value) }) + let msg = this.identifiedPacketFees({ value: IdentifiedPacketFees.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedPacketFees: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise { + async sendRegisteredPayee({ value, fee, memo }: sendRegisteredPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendRegisteredPayee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketsForChannelResponse({ value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }) + let msg = this.registeredPayee({ value: RegisteredPayee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRegisteredPayee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise { + async sendQueryIncentivizedPacketsResponse({ value, fee, memo }: sendQueryIncentivizedPacketsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalRecvFeesRequest({ value: QueryTotalRecvFeesRequest.fromPartial(value) }) + let msg = this.queryIncentivizedPacketsResponse({ value: QueryIncentivizedPacketsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -932,112 +918,118 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise { + async sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedPacketFees: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterPayee: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.identifiedPacketFees({ value: IdentifiedPacketFees.fromPartial(value) }) + let msg = this.msgRegisterPayee({ value: MsgRegisterPayee.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIdentifiedPacketFees: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterPayee: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryTotalTimeoutFeesRequest({ value: QueryTotalTimeoutFeesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise { + async sendQueryPayeeRequest({ value, fee, memo }: sendQueryPayeeRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryPayeeRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryPayeeRequest({ value: QueryPayeeRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryPayeeRequest: Could not broadcast Tx: '+ e.message) + } + }, + + async sendMsgRegisterPayeeResponse({ value, fee, memo }: sendMsgRegisterPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterPayeeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryFeeEnabledChannelsResponse({ value: QueryFeeEnabledChannelsResponse.fromPartial(value) }) + let msg = this.msgRegisterPayeeResponse({ value: MsgRegisterPayeeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendForwardRelayerAddress({ value, fee, memo }: sendForwardRelayerAddressParams): Promise { + async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendForwardRelayerAddress: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.forwardRelayerAddress({ value: ForwardRelayerAddress.fromPartial(value) }) + let msg = this.msgPayPacketFeeAsyncResponse({ value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendForwardRelayerAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise { + async sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketFee: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalAckFeesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packetFee({ value: PacketFee.fromPartial(value) }) + let msg = this.queryTotalAckFeesRequest({ value: QueryTotalAckFeesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacketFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalAckFeesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsResponse({ value, fee, memo }: sendQueryIncentivizedPacketsResponseParams): Promise { + async sendQueryTotalAckFeesResponse({ value, fee, memo }: sendQueryTotalAckFeesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalAckFeesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIncentivizedPacketsResponse({ value: QueryIncentivizedPacketsResponse.fromPartial(value) }) + let msg = this.queryTotalAckFeesResponse({ value: QueryTotalAckFeesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalAckFeesResponse: Could not broadcast Tx: '+ e.message) } }, - msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message) - } - }, - - metadata({ value }: metadataParams): EncodeObject { + queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message) } }, - msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject { + queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message) } }, @@ -1049,91 +1041,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject { + queryTotalTimeoutFeesResponse({ value }: queryTotalTimeoutFeesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message) } }, - registeredPayee({ value }: registeredPayeeParams): EncodeObject { + queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.RegisteredPayee", value: RegisteredPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RegisteredPayee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message) } }, - fee({ value }: feeParams): EncodeObject { + msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Fee: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject { + queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message) } }, - queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject { + queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject { + fee({ value }: feeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Fee: Could not create message: ' + e.message) } }, - feeEnabledChannel({ value }: feeEnabledChannelParams): EncodeObject { + packetFees({ value }: packetFeesParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.PacketFees", value: PacketFees.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message) + throw new Error('TxClient:PacketFees: Could not create message: ' + e.message) } }, - registeredCounterpartyPayee({ value }: registeredCounterpartyPayeeParams): EncodeObject { + metadata({ value }: metadataParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.RegisteredCounterpartyPayee", value: RegisteredCounterpartyPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RegisteredCounterpartyPayee: Could not create message: ' + e.message) + throw new Error('TxClient:Metadata: Could not create message: ' + e.message) } }, - msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject { + queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message) } }, - msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject { + queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message) } }, - queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject { + queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message) } }, @@ -1145,131 +1137,131 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject { + queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message) } }, - incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject { + packetFee({ value }: packetFeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:PacketFee: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject { + forwardRelayerAddress({ value }: forwardRelayerAddressParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message) } }, - queryPayeeRequest({ value }: queryPayeeRequestParams): EncodeObject { + msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject { + queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message) } }, - msgRegisterCounterpartyPayeeResponse({ value }: msgRegisterCounterpartyPayeeResponseParams): EncodeObject { + msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message) } }, - msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject { + queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message) } }, - msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject { + incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message) + throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message) } }, - packetFees({ value }: packetFeesParams): EncodeObject { + feeEnabledChannel({ value }: feeEnabledChannelParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.PacketFees", value: PacketFees.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketFees: Could not create message: ' + e.message) + throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject { + registeredCounterpartyPayee({ value }: registeredCounterpartyPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.RegisteredCounterpartyPayee", value: RegisteredCounterpartyPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:RegisteredCounterpartyPayee: Could not create message: ' + e.message) } }, - queryTotalTimeoutFeesResponse({ value }: queryTotalTimeoutFeesResponseParams): EncodeObject { + msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message) } }, - msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject { + msgRegisterCounterpartyPayeeResponse({ value }: msgRegisterCounterpartyPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject { + identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedPacketFees: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject { + registeredPayee({ value }: registeredPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.RegisteredPayee", value: RegisteredPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:RegisteredPayee: Could not create message: ' + e.message) } }, - queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject { + queryIncentivizedPacketsResponse({ value }: queryIncentivizedPacketsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message) } }, @@ -1281,51 +1273,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject { + msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedPacketFees: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject { + queryPayeeRequest({ value }: queryPayeeRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message) } }, - forwardRelayerAddress({ value }: forwardRelayerAddressParams): EncodeObject { + msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message) } }, - packetFee({ value }: packetFeeParams): EncodeObject { + msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketFee: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsResponse({ value }: queryIncentivizedPacketsResponseParams): EncodeObject { + queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message) + } + }, + + queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.applications.fee.v1/registry.ts b/ts-client/ibc.applications.fee.v1/registry.ts index ef23ea89..d525fe26 100755 --- a/ts-client/ibc.applications.fee.v1/registry.ts +++ b/ts-client/ibc.applications.fee.v1/registry.ts @@ -1,84 +1,84 @@ import { GeneratedType } from "@cosmjs/proto-signing"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; +import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; +import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; +import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; -import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; -import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], + ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", QueryTotalTimeoutFeesResponse], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], ["/ibc.applications.fee.v1.MsgPayPacketFeeResponse", MsgPayPacketFeeResponse], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", QueryIncentivizedPacketsRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], + ["/ibc.applications.fee.v1.Fee", Fee], + ["/ibc.applications.fee.v1.PacketFees", PacketFees], ["/ibc.applications.fee.v1.Metadata", Metadata], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], ["/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", QueryCounterpartyPayeeRequest], - ["/ibc.applications.fee.v1.RegisteredPayee", RegisteredPayee], - ["/ibc.applications.fee.v1.Fee", Fee], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], - ["/ibc.applications.fee.v1.QueryTotalAckFeesRequest", QueryTotalAckFeesRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], + ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], ["/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", QueryFeeEnabledChannelResponse], + ["/ibc.applications.fee.v1.PacketFee", PacketFee], + ["/ibc.applications.fee.v1.GenesisState", GenesisState], + ["/ibc.applications.fee.v1.ForwardRelayerAddress", ForwardRelayerAddress], + ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", QueryIncentivizedPacketRequest], + ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], + ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], ["/ibc.applications.fee.v1.FeeEnabledChannel", FeeEnabledChannel], ["/ibc.applications.fee.v1.RegisteredCounterpartyPayee", RegisteredCounterpartyPayee], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], + ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", MsgRegisterCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.IdentifiedPacketFees", IdentifiedPacketFees], + ["/ibc.applications.fee.v1.RegisteredPayee", RegisteredPayee], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", QueryIncentivizedPacketsResponse], + ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], ["/ibc.applications.fee.v1.MsgRegisterPayee", MsgRegisterPayee], - ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", QueryTotalTimeoutFeesRequest], - ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], - ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], - ["/ibc.applications.fee.v1.QueryTotalAckFeesResponse", QueryTotalAckFeesResponse], ["/ibc.applications.fee.v1.QueryPayeeRequest", QueryPayeeRequest], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], - ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", MsgRegisterCounterpartyPayeeResponse], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], - ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], - ["/ibc.applications.fee.v1.PacketFees", PacketFees], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", QueryIncentivizedPacketsRequest], - ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", QueryTotalTimeoutFeesResponse], ["/ibc.applications.fee.v1.MsgRegisterPayeeResponse", MsgRegisterPayeeResponse], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", QueryIncentivizedPacketRequest], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], - ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], - ["/ibc.applications.fee.v1.IdentifiedPacketFees", IdentifiedPacketFees], - ["/ibc.applications.fee.v1.GenesisState", GenesisState], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], - ["/ibc.applications.fee.v1.ForwardRelayerAddress", ForwardRelayerAddress], - ["/ibc.applications.fee.v1.PacketFee", PacketFee], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", QueryIncentivizedPacketsResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], + ["/ibc.applications.fee.v1.QueryTotalAckFeesRequest", QueryTotalAckFeesRequest], + ["/ibc.applications.fee.v1.QueryTotalAckFeesResponse", QueryTotalAckFeesResponse], ]; diff --git a/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts b/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts index ace66183..6dcb413a 100755 --- a/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts +++ b/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts @@ -6,53 +6,53 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; -import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -export { MsgRegisterInterchainAccount, QueryInterchainAccountRequest, QueryParamsRequest, Params, MsgRegisterInterchainAccountResponse, MsgSendTx, MsgUpdateParams, MsgUpdateParamsResponse, QueryInterchainAccountResponse, MsgSendTxResponse, QueryParamsResponse }; +export { MsgSendTx, MsgUpdateParamsResponse, Params, QueryParamsRequest, QueryParamsResponse, QueryInterchainAccountResponse, MsgUpdateParams, QueryInterchainAccountRequest, MsgRegisterInterchainAccountResponse, MsgRegisterInterchainAccount, MsgSendTxResponse }; -type sendMsgRegisterInterchainAccountParams = { - value: MsgRegisterInterchainAccount, +type sendMsgSendTxParams = { + value: MsgSendTx, fee?: StdFee, memo?: string }; -type sendQueryInterchainAccountRequestParams = { - value: QueryInterchainAccountRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgSendTxParams = { - value: MsgSendTx, +type sendQueryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse, fee?: StdFee, memo?: string }; @@ -63,73 +63,73 @@ type sendMsgUpdateParamsParams = { memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryInterchainAccountRequestParams = { + value: QueryInterchainAccountRequest, fee?: StdFee, memo?: string }; -type sendQueryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse, +type sendMsgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse, fee?: StdFee, memo?: string }; -type sendMsgSendTxResponseParams = { - value: MsgSendTxResponse, +type sendMsgRegisterInterchainAccountParams = { + value: MsgRegisterInterchainAccount, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgSendTxResponseParams = { + value: MsgSendTxResponse, fee?: StdFee, memo?: string }; -type msgRegisterInterchainAccountParams = { - value: MsgRegisterInterchainAccount, -}; - -type queryInterchainAccountRequestParams = { - value: QueryInterchainAccountRequest, +type msgSendTxParams = { + value: MsgSendTx, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; type paramsParams = { value: Params, }; -type msgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgSendTxParams = { - value: MsgSendTx, +type queryParamsResponseParams = { + value: QueryParamsResponse, +}; + +type queryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse, }; type msgUpdateParamsParams = { value: MsgUpdateParams, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryInterchainAccountRequestParams = { + value: QueryInterchainAccountRequest, }; -type queryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse, +type msgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse, }; -type msgSendTxResponseParams = { - value: MsgSendTxResponse, +type msgRegisterInterchainAccountParams = { + value: MsgRegisterInterchainAccount, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgSendTxResponseParams = { + value: MsgSendTxResponse, }; @@ -162,87 +162,87 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgRegisterInterchainAccount({ value, fee, memo }: sendMsgRegisterInterchainAccountParams): Promise { + async sendMsgSendTx({ value, fee, memo }: sendMsgSendTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSendTx: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterInterchainAccount({ value: MsgRegisterInterchainAccount.fromPartial(value) }) + let msg = this.msgSendTx({ value: MsgSendTx.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterInterchainAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendTx: Could not broadcast Tx: '+ e.message) } }, - async sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryInterchainAccountRequest({ value: QueryInterchainAccountRequest.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryInterchainAccountRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRegisterInterchainAccountResponse({ value: MsgRegisterInterchainAccountResponse.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendTx({ value, fee, memo }: sendMsgSendTxParams): Promise { + async sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendTx: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryInterchainAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSendTx({ value: MsgSendTx.fromPartial(value) }) + let msg = this.queryInterchainAccountResponse({ value: QueryInterchainAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSendTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryInterchainAccountResponse: Could not broadcast Tx: '+ e.message) } }, @@ -260,108 +260,108 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryInterchainAccountRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryInterchainAccountRequest({ value: QueryInterchainAccountRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryInterchainAccountRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise { + async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryInterchainAccountResponse({ value: QueryInterchainAccountResponse.fromPartial(value) }) + let msg = this.msgRegisterInterchainAccountResponse({ value: MsgRegisterInterchainAccountResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryInterchainAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise { + async sendMsgRegisterInterchainAccount({ value, fee, memo }: sendMsgRegisterInterchainAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendTxResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRegisterInterchainAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSendTxResponse({ value: MsgSendTxResponse.fromPartial(value) }) + let msg = this.msgRegisterInterchainAccount({ value: MsgRegisterInterchainAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSendTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterInterchainAccount: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSendTxResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.msgSendTxResponse({ value: MsgSendTxResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendTxResponse: Could not broadcast Tx: '+ e.message) } }, - msgRegisterInterchainAccount({ value }: msgRegisterInterchainAccountParams): EncodeObject { + msgSendTx({ value }: msgSendTxParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", value: MsgRegisterInterchainAccount.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterInterchainAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message) } }, - queryInterchainAccountRequest({ value }: queryInterchainAccountRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", value: QueryInterchainAccountRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryInterchainAccountRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - msgSendTx({ value }: msgSendTxParams): EncodeObject { + queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message) + throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message) } }, @@ -373,35 +373,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryInterchainAccountRequest({ value }: queryInterchainAccountRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", value: QueryInterchainAccountRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryInterchainAccountRequest: Could not create message: ' + e.message) } }, - queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject { + msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message) } }, - msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject { + msgRegisterInterchainAccount({ value }: msgRegisterInterchainAccountParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", value: MsgRegisterInterchainAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterInterchainAccount: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.applications.interchain_accounts.controller.v1/registry.ts b/ts-client/ibc.applications.interchain_accounts.controller.v1/registry.ts index 65d6eb55..9989ef83 100755 --- a/ts-client/ibc.applications.interchain_accounts.controller.v1/registry.ts +++ b/ts-client/ibc.applications.interchain_accounts.controller.v1/registry.ts @@ -1,28 +1,28 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; -import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", MsgRegisterInterchainAccount], - ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", QueryInterchainAccountRequest], - ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", QueryParamsRequest], - ["/ibc.applications.interchain_accounts.controller.v1.Params", Params], - ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", MsgSendTx], - ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.applications.interchain_accounts.controller.v1.Params", Params], + ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", QueryInterchainAccountResponse], + ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", QueryInterchainAccountRequest], + ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], + ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", MsgRegisterInterchainAccount], ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", MsgSendTxResponse], - ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", QueryParamsResponse], ]; diff --git a/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts b/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts index 19b84c7e..71438889 100755 --- a/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts +++ b/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts @@ -6,23 +6,23 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { Params } from "./types/ibc/applications/interchain_accounts/host/v1/host"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; -export { QueryParamsResponse, QueryParamsRequest, Params, MsgUpdateParams, MsgUpdateParamsResponse }; +export { QueryParamsRequest, QueryParamsResponse, Params, MsgUpdateParams, MsgUpdateParamsResponse }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; @@ -46,14 +46,14 @@ type sendMsgUpdateParamsResponseParams = { }; -type queryParamsResponseParams = { - value: QueryParamsResponse, -}; - type queryParamsRequestParams = { value: QueryParamsRequest, }; +type queryParamsResponseParams = { + value: QueryParamsResponse, +}; + type paramsParams = { value: Params, }; @@ -96,31 +96,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -167,19 +167,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts b/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts index 408bdd4d..ac2c4980 100755 --- a/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts +++ b/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts @@ -1,13 +1,13 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { Params } from "./types/ibc/applications/interchain_accounts/host/v1/host"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.interchain_accounts.host.v1.Params", Params], ["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], diff --git a/ts-client/ibc.applications.transfer.v1/module.ts b/ts-client/ibc.applications.transfer.v1/module.ts index 25c3868e..6c0421c3 100755 --- a/ts-client/ibc.applications.transfer.v1/module.ts +++ b/ts-client/ibc.applications.transfer.v1/module.ts @@ -6,45 +6,39 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; -import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; import { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Params } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; -import { Params } from "./types/ibc/applications/transfer/v1/transfer"; +import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; -export { MsgUpdateParamsResponse, QueryDenomTraceResponse, QueryEscrowAddressResponse, Allocation, QueryDenomTraceRequest, QueryTotalEscrowForDenomResponse, TransferAuthorization, GenesisState, QueryDenomTracesResponse, QueryParamsResponse, MsgTransferResponse, QueryDenomHashResponse, QueryDenomHashRequest, MsgUpdateParams, MsgTransfer, QueryDenomTracesRequest, QueryParamsRequest, QueryEscrowAddressRequest, QueryTotalEscrowForDenomRequest, Params, DenomTrace }; - -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, - fee?: StdFee, - memo?: string -}; +export { QueryDenomTraceRequest, QueryDenomHashRequest, Allocation, QueryParamsResponse, QueryDenomHashResponse, Params, QueryDenomTraceResponse, QueryDenomTracesResponse, QueryParamsRequest, QueryTotalEscrowForDenomResponse, GenesisState, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryTotalEscrowForDenomRequest, MsgTransferResponse, MsgUpdateParams, QueryDenomTracesRequest, TransferAuthorization, MsgUpdateParamsResponse, MsgTransfer, DenomTrace }; -type sendQueryDenomTraceResponseParams = { - value: QueryDenomTraceResponse, +type sendQueryDenomTraceRequestParams = { + value: QueryDenomTraceRequest, fee?: StdFee, memo?: string }; -type sendQueryEscrowAddressResponseParams = { - value: QueryEscrowAddressResponse, +type sendQueryDenomHashRequestParams = { + value: QueryDenomHashRequest, fee?: StdFee, memo?: string }; @@ -55,26 +49,26 @@ type sendAllocationParams = { memo?: string }; -type sendQueryDenomTraceRequestParams = { - value: QueryDenomTraceRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse, +type sendQueryDenomHashResponseParams = { + value: QueryDenomHashResponse, fee?: StdFee, memo?: string }; -type sendTransferAuthorizationParams = { - value: TransferAuthorization, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryDenomTraceResponseParams = { + value: QueryDenomTraceResponse, fee?: StdFee, memo?: string }; @@ -85,68 +79,74 @@ type sendQueryDenomTracesResponseParams = { memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgTransferResponseParams = { - value: MsgTransferResponse, +type sendQueryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomHashResponseParams = { - value: QueryDenomHashResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryDenomHashRequestParams = { - value: QueryDenomHashRequest, +type sendQueryEscrowAddressRequestParams = { + value: QueryEscrowAddressRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryEscrowAddressResponseParams = { + value: QueryEscrowAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgTransferParams = { - value: MsgTransfer, +type sendQueryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomTracesRequestParams = { - value: QueryDenomTracesRequest, +type sendMsgTransferResponseParams = { + value: MsgTransferResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryEscrowAddressRequestParams = { - value: QueryEscrowAddressRequest, +type sendQueryDenomTracesRequestParams = { + value: QueryDenomTracesRequest, fee?: StdFee, memo?: string }; -type sendQueryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest, +type sendTransferAuthorizationParams = { + value: TransferAuthorization, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, + fee?: StdFee, + memo?: string +}; + +type sendMsgTransferParams = { + value: MsgTransfer, fee?: StdFee, memo?: string }; @@ -158,84 +158,84 @@ type sendDenomTraceParams = { }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, -}; - -type queryDenomTraceResponseParams = { - value: QueryDenomTraceResponse, +type queryDenomTraceRequestParams = { + value: QueryDenomTraceRequest, }; -type queryEscrowAddressResponseParams = { - value: QueryEscrowAddressResponse, +type queryDenomHashRequestParams = { + value: QueryDenomHashRequest, }; type allocationParams = { value: Allocation, }; -type queryDenomTraceRequestParams = { - value: QueryDenomTraceRequest, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse, +type queryDenomHashResponseParams = { + value: QueryDenomHashResponse, }; -type transferAuthorizationParams = { - value: TransferAuthorization, +type paramsParams = { + value: Params, }; -type genesisStateParams = { - value: GenesisState, +type queryDenomTraceResponseParams = { + value: QueryDenomTraceResponse, }; type queryDenomTracesResponseParams = { value: QueryDenomTracesResponse, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgTransferResponseParams = { - value: MsgTransferResponse, +type queryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse, }; -type queryDenomHashResponseParams = { - value: QueryDenomHashResponse, +type genesisStateParams = { + value: GenesisState, }; -type queryDenomHashRequestParams = { - value: QueryDenomHashRequest, +type queryEscrowAddressRequestParams = { + value: QueryEscrowAddressRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryEscrowAddressResponseParams = { + value: QueryEscrowAddressResponse, }; -type msgTransferParams = { - value: MsgTransfer, +type queryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest, }; -type queryDenomTracesRequestParams = { - value: QueryDenomTracesRequest, +type msgTransferResponseParams = { + value: MsgTransferResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryEscrowAddressRequestParams = { - value: QueryEscrowAddressRequest, +type queryDenomTracesRequestParams = { + value: QueryDenomTracesRequest, }; -type queryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest, +type transferAuthorizationParams = { + value: TransferAuthorization, }; -type paramsParams = { - value: Params, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, +}; + +type msgTransferParams = { + value: MsgTransfer, }; type denomTraceParams = { @@ -272,283 +272,283 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomTraceRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryDenomTraceRequest({ value: QueryDenomTraceRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTraceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTraceResponse({ value, fee, memo }: sendQueryDenomTraceResponseParams): Promise { + async sendQueryDenomHashRequest({ value, fee, memo }: sendQueryDenomHashRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTraceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomHashRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomTraceResponse({ value: QueryDenomTraceResponse.fromPartial(value) }) + let msg = this.queryDenomHashRequest({ value: QueryDenomHashRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomTraceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomHashRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryEscrowAddressResponse({ value, fee, memo }: sendQueryEscrowAddressResponseParams): Promise { + async sendAllocation({ value, fee, memo }: sendAllocationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEscrowAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAllocation: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryEscrowAddressResponse({ value: QueryEscrowAddressResponse.fromPartial(value) }) + let msg = this.allocation({ value: Allocation.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryEscrowAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAllocation: Could not broadcast Tx: '+ e.message) } }, - async sendAllocation({ value, fee, memo }: sendAllocationParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAllocation: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.allocation({ value: Allocation.fromPartial(value) }) + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAllocation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise { + async sendQueryDenomHashResponse({ value, fee, memo }: sendQueryDenomHashResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTraceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomHashResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomTraceRequest({ value: QueryDenomTraceRequest.fromPartial(value) }) + let msg = this.queryDenomHashResponse({ value: QueryDenomHashResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomTraceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomHashResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalEscrowForDenomResponse({ value: QueryTotalEscrowForDenomResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise { + async sendQueryDenomTraceResponse({ value, fee, memo }: sendQueryDenomTraceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTransferAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomTraceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.transferAuthorization({ value: TransferAuthorization.fromPartial(value) }) + let msg = this.queryDenomTraceResponse({ value: QueryDenomTraceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTransferAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTraceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomTracesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryDenomTracesResponse({ value: QueryDenomTracesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTracesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTracesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomTracesResponse({ value: QueryDenomTracesResponse.fromPartial(value) }) + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomTracesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }) + let msg = this.queryTotalEscrowForDenomResponse({ value: QueryTotalEscrowForDenomResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTransferResponse({ value, fee, memo }: sendMsgTransferResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTransferResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTransferResponse({ value: MsgTransferResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTransferResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomHashResponse({ value, fee, memo }: sendQueryDenomHashResponseParams): Promise { + async sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomHashResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryEscrowAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomHashResponse({ value: QueryDenomHashResponse.fromPartial(value) }) + let msg = this.queryEscrowAddressRequest({ value: QueryEscrowAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomHashResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEscrowAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomHashRequest({ value, fee, memo }: sendQueryDenomHashRequestParams): Promise { + async sendQueryEscrowAddressResponse({ value, fee, memo }: sendQueryEscrowAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomHashRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryEscrowAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomHashRequest({ value: QueryDenomHashRequest.fromPartial(value) }) + let msg = this.queryEscrowAddressResponse({ value: QueryEscrowAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomHashRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEscrowAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryTotalEscrowForDenomRequest({ value: QueryTotalEscrowForDenomRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise { + async sendMsgTransferResponse({ value, fee, memo }: sendMsgTransferResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTransferResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) }) + let msg = this.msgTransferResponse({ value: MsgTransferResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTransferResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTracesRequest({ value, fee, memo }: sendQueryDenomTracesRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTracesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomTracesRequest({ value: QueryDenomTracesRequest.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomTracesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryDenomTracesRequest({ value, fee, memo }: sendQueryDenomTracesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomTracesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + let msg = this.queryDenomTracesRequest({ value: QueryDenomTracesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTracesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise { + async sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEscrowAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTransferAuthorization: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryEscrowAddressRequest({ value: QueryEscrowAddressRequest.fromPartial(value) }) + let msg = this.transferAuthorization({ value: TransferAuthorization.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryEscrowAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTransferAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryTotalEscrowForDenomRequest({ value: QueryTotalEscrowForDenomRequest.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: '+ e.message) } }, @@ -567,27 +567,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) - } - }, - - queryDenomTraceResponse({ value }: queryDenomTraceResponseParams): EncodeObject { + queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", value: QueryDenomTraceResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", value: QueryDenomTraceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTraceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTraceRequest: Could not create message: ' + e.message) } }, - queryEscrowAddressResponse({ value }: queryEscrowAddressResponseParams): EncodeObject { + queryDenomHashRequest({ value }: queryDenomHashRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message) } }, @@ -599,35 +591,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", value: QueryDenomTraceRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTraceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject { + queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message) } }, - transferAuthorization({ value }: transferAuthorizationParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryDenomTraceResponse({ value }: queryDenomTraceResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", value: QueryDenomTraceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTraceResponse: Could not create message: ' + e.message) } }, @@ -639,91 +631,99 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - msgTransferResponse({ value }: msgTransferResponseParams): EncodeObject { + queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", value: MsgTransferResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTransferResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message) } }, - queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryDenomHashRequest({ value }: queryDenomHashRequestParams): EncodeObject { + queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryEscrowAddressResponse({ value }: queryEscrowAddressResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message) } }, - msgTransfer({ value }: msgTransferParams): EncodeObject { + queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message) } }, - queryDenomTracesRequest({ value }: queryDenomTracesRequestParams): EncodeObject { + msgTransferResponse({ value }: msgTransferResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", value: QueryDenomTracesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", value: MsgTransferResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTracesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTransferResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject { + queryDenomTracesRequest({ value }: queryDenomTracesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", value: QueryDenomTracesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTracesRequest: Could not create message: ' + e.message) } }, - queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject { + transferAuthorization({ value }: transferAuthorizationParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + } + }, + + msgTransfer({ value }: msgTransferParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.applications.transfer.v1/registry.ts b/ts-client/ibc.applications.transfer.v1/registry.ts index 1639c112..a00caecb 100755 --- a/ts-client/ibc.applications.transfer.v1/registry.ts +++ b/ts-client/ibc.applications.transfer.v1/registry.ts @@ -1,47 +1,47 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; -import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; import { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Params } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; -import { Params } from "./types/ibc/applications/transfer/v1/transfer"; +import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.transfer.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.applications.transfer.v1.QueryDenomTraceResponse", QueryDenomTraceResponse], - ["/ibc.applications.transfer.v1.QueryEscrowAddressResponse", QueryEscrowAddressResponse], - ["/ibc.applications.transfer.v1.Allocation", Allocation], ["/ibc.applications.transfer.v1.QueryDenomTraceRequest", QueryDenomTraceRequest], - ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], - ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], - ["/ibc.applications.transfer.v1.GenesisState", GenesisState], - ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], + ["/ibc.applications.transfer.v1.QueryDenomHashRequest", QueryDenomHashRequest], + ["/ibc.applications.transfer.v1.Allocation", Allocation], ["/ibc.applications.transfer.v1.QueryParamsResponse", QueryParamsResponse], - ["/ibc.applications.transfer.v1.MsgTransferResponse", MsgTransferResponse], ["/ibc.applications.transfer.v1.QueryDenomHashResponse", QueryDenomHashResponse], - ["/ibc.applications.transfer.v1.QueryDenomHashRequest", QueryDenomHashRequest], - ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], - ["/ibc.applications.transfer.v1.QueryDenomTracesRequest", QueryDenomTracesRequest], + ["/ibc.applications.transfer.v1.Params", Params], + ["/ibc.applications.transfer.v1.QueryDenomTraceResponse", QueryDenomTraceResponse], + ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], ["/ibc.applications.transfer.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], + ["/ibc.applications.transfer.v1.GenesisState", GenesisState], ["/ibc.applications.transfer.v1.QueryEscrowAddressRequest", QueryEscrowAddressRequest], + ["/ibc.applications.transfer.v1.QueryEscrowAddressResponse", QueryEscrowAddressResponse], ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", QueryTotalEscrowForDenomRequest], - ["/ibc.applications.transfer.v1.Params", Params], + ["/ibc.applications.transfer.v1.MsgTransferResponse", MsgTransferResponse], + ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.applications.transfer.v1.QueryDenomTracesRequest", QueryDenomTracesRequest], + ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], + ["/ibc.applications.transfer.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], ["/ibc.applications.transfer.v1.DenomTrace", DenomTrace], ]; diff --git a/ts-client/ibc.core.channel.v1/module.ts b/ts-client/ibc.core.channel.v1/module.ts index a362b2bd..4311d809 100755 --- a/ts-client/ibc.core.channel.v1/module.ts +++ b/ts-client/ibc.core.channel.v1/module.ts @@ -6,170 +6,158 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgChannelUpgradeConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeOpenResponse } from "./types/ibc/core/channel/v1/tx"; +import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { Packet } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelUpgradeAck } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelUpgradeCancelResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/channel/v1/tx"; +import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; +import { MsgChannelUpgradeOpen } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; +import { ErrorReceipt } from "./types/ibc/core/channel/v1/upgrade"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; -import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeErrorRequest } from "./types/ibc/core/channel/v1/query"; +import { Upgrade } from "./types/ibc/core/channel/v1/upgrade"; +import { UpgradeFields } from "./types/ibc/core/channel/v1/upgrade"; +import { MsgPruneAcknowledgementsResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTry } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeCancel } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgPruneAcknowledgementsResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; -import { Params } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelUpgradeInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelParamsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelParamsResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeTimeout } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { Timeout } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelParamsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { Channel } from "./types/ibc/core/channel/v1/channel"; import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { Channel } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeErrorRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelParamsResponse } from "./types/ibc/core/channel/v1/query"; -import { UpgradeFields } from "./types/ibc/core/channel/v1/upgrade"; -import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; -import { MsgChannelUpgradeAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeInit } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeTry } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeCancel } from "./types/ibc/core/channel/v1/tx"; +import { MsgPruneAcknowledgements } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeErrorResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeErrorResponse } from "./types/ibc/core/channel/v1/query"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeOpen } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeConfirm } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeCancelResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/channel/v1/tx"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeAckResponse } from "./types/ibc/core/channel/v1/tx"; +import { Params } from "./types/ibc/core/channel/v1/channel"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; -import { ErrorReceipt } from "./types/ibc/core/channel/v1/upgrade"; -import { MsgChannelUpgradeConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeInitResponse } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelUpgradeTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelUpgradeAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { Upgrade } from "./types/ibc/core/channel/v1/upgrade"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgPruneAcknowledgements } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; - - -export { MsgChannelUpgradeConfirmResponse, MsgChannelUpgradeOpenResponse, MsgChannelOpenConfirmResponse, QueryConnectionChannelsResponse, QueryPacketAcknowledgementRequest, QueryUnreceivedPacketsRequest, QueryUnreceivedAcksResponse, MsgChannelUpgradeCancelResponse, QueryChannelsRequest, QueryPacketReceiptResponse, MsgChannelCloseConfirm, MsgChannelUpgradeTimeout, MsgUpdateParams, MsgChannelOpenTryResponse, MsgTimeoutOnCloseResponse, Counterparty, QueryUnreceivedAcksRequest, MsgChannelOpenTry, MsgChannelUpgradeTry, QueryPacketReceiptRequest, MsgTimeoutOnClose, MsgAcknowledgement, MsgChannelUpgradeCancel, MsgAcknowledgementResponse, MsgPruneAcknowledgementsResponse, QueryPacketCommitmentsResponse, Params, QueryChannelRequest, QueryConnectionChannelsRequest, QueryChannelParamsRequest, MsgChannelOpenInit, MsgChannelOpenConfirm, MsgChannelCloseInit, PacketState, QueryChannelClientStateRequest, QueryPacketCommitmentsRequest, MsgChannelOpenInitResponse, MsgTimeoutResponse, Channel, QueryChannelClientStateResponse, QueryUpgradeErrorRequest, QueryUpgradeResponse, QueryChannelParamsResponse, UpgradeFields, GenesisState, PacketSequence, MsgChannelUpgradeAckResponse, MsgChannelUpgradeInit, QueryPacketAcknowledgementsResponse, MsgChannelCloseConfirmResponse, MsgChannelUpgradeInitResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementResponse, QueryNextSequenceSendRequest, QueryUpgradeErrorResponse, MsgChannelOpenAck, MsgChannelUpgradeOpen, QueryChannelsResponse, MsgChannelOpenAckResponse, Timeout, QueryNextSequenceReceiveResponse, QueryUpgradeRequest, MsgTimeout, MsgChannelCloseInitResponse, IdentifiedChannel, Acknowledgement, QueryPacketCommitmentRequest, QueryNextSequenceReceiveRequest, ErrorReceipt, MsgChannelUpgradeConfirm, MsgChannelUpgradeTryResponse, Packet, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryPacketCommitmentResponse, MsgUpdateParamsResponse, QueryChannelResponse, QueryNextSequenceSendResponse, MsgChannelUpgradeAck, MsgRecvPacketResponse, MsgChannelUpgradeTimeoutResponse, PacketId, Upgrade, MsgRecvPacket, MsgPruneAcknowledgements, QueryUnreceivedPacketsResponse }; +import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeOpenResponse } from "./types/ibc/core/channel/v1/tx"; -type sendMsgChannelUpgradeConfirmResponseParams = { - value: MsgChannelUpgradeConfirmResponse, - fee?: StdFee, - memo?: string -}; -type sendMsgChannelUpgradeOpenResponseParams = { - value: MsgChannelUpgradeOpenResponse, - fee?: StdFee, - memo?: string -}; +export { Counterparty, Packet, MsgChannelUpgradeAck, QueryUnreceivedPacketsResponse, MsgChannelOpenConfirmResponse, GenesisState, MsgChannelUpgradeOpen, QueryPacketCommitmentsResponse, QueryPacketAcknowledgementsRequest, ErrorReceipt, QueryPacketAcknowledgementsResponse, MsgChannelOpenTryResponse, MsgUpdateParamsResponse, QueryChannelResponse, QueryChannelsRequest, QueryPacketCommitmentResponse, MsgChannelCloseInitResponse, MsgRecvPacketResponse, MsgTimeout, QueryChannelConsensusStateRequest, QueryUpgradeErrorRequest, Upgrade, UpgradeFields, MsgPruneAcknowledgementsResponse, QueryUnreceivedAcksRequest, QueryUpgradeRequest, MsgChannelUpgradeTimeoutResponse, PacketId, PacketSequence, MsgChannelOpenTry, MsgChannelUpgradeInit, QueryChannelParamsRequest, QueryChannelParamsResponse, PacketState, MsgRecvPacket, QueryChannelRequest, MsgTimeoutOnClose, MsgChannelUpgradeTimeout, QueryPacketReceiptRequest, QueryUpgradeResponse, MsgChannelUpgradeConfirmResponse, Timeout, MsgChannelCloseConfirm, QueryConnectionChannelsRequest, QueryChannelClientStateResponse, QueryPacketAcknowledgementResponse, QueryUnreceivedPacketsRequest, QueryPacketAcknowledgementRequest, Channel, MsgChannelOpenInit, MsgChannelOpenConfirm, MsgChannelUpgradeTry, MsgChannelUpgradeCancel, MsgPruneAcknowledgements, QueryChannelConsensusStateResponse, QueryNextSequenceReceiveResponse, QueryUpgradeErrorResponse, MsgChannelCloseConfirmResponse, Acknowledgement, QueryPacketCommitmentsRequest, QueryNextSequenceReceiveRequest, QueryNextSequenceSendRequest, IdentifiedChannel, MsgChannelOpenAck, MsgChannelUpgradeConfirm, QueryChannelsResponse, MsgTimeoutOnCloseResponse, MsgChannelUpgradeCancelResponse, MsgChannelOpenInitResponse, MsgChannelCloseInit, MsgAcknowledgement, MsgUpdateParams, QueryConnectionChannelsResponse, QueryChannelClientStateRequest, QueryUnreceivedAcksResponse, QueryNextSequenceSendResponse, MsgAcknowledgementResponse, MsgChannelUpgradeAckResponse, Params, QueryPacketReceiptResponse, MsgChannelOpenAckResponse, MsgTimeoutResponse, MsgChannelUpgradeInitResponse, MsgChannelUpgradeTryResponse, QueryPacketCommitmentRequest, MsgChannelUpgradeOpenResponse }; -type sendMsgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse, +type sendCounterpartyParams = { + value: Counterparty, fee?: StdFee, memo?: string }; -type sendQueryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse, +type sendPacketParams = { + value: Packet, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest, +type sendMsgChannelUpgradeAckParams = { + value: MsgChannelUpgradeAck, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest, +type sendQueryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedAcksResponseParams = { - value: QueryUnreceivedAcksResponse, +type sendMsgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeCancelResponseParams = { - value: MsgChannelUpgradeCancelResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryChannelsRequestParams = { - value: QueryChannelsRequest, +type sendMsgChannelUpgradeOpenParams = { + value: MsgChannelUpgradeOpen, fee?: StdFee, memo?: string }; -type sendQueryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse, +type sendQueryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm, +type sendQueryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeTimeoutParams = { - value: MsgChannelUpgradeTimeout, +type sendErrorReceiptParams = { + value: ErrorReceipt, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse, fee?: StdFee, memo?: string }; @@ -180,164 +168,164 @@ type sendMsgChannelOpenTryResponseParams = { memo?: string }; -type sendMsgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendCounterpartyParams = { - value: Counterparty, +type sendQueryChannelResponseParams = { + value: QueryChannelResponse, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedAcksRequestParams = { - value: QueryUnreceivedAcksRequest, +type sendQueryChannelsRequestParams = { + value: QueryChannelsRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenTryParams = { - value: MsgChannelOpenTry, +type sendQueryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeTryParams = { - value: MsgChannelUpgradeTry, +type sendMsgChannelCloseInitResponseParams = { + value: MsgChannelCloseInitResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest, +type sendMsgRecvPacketResponseParams = { + value: MsgRecvPacketResponse, fee?: StdFee, memo?: string }; -type sendMsgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose, +type sendMsgTimeoutParams = { + value: MsgTimeout, fee?: StdFee, memo?: string }; -type sendMsgAcknowledgementParams = { - value: MsgAcknowledgement, +type sendQueryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeCancelParams = { - value: MsgChannelUpgradeCancel, +type sendQueryUpgradeErrorRequestParams = { + value: QueryUpgradeErrorRequest, fee?: StdFee, memo?: string }; -type sendMsgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse, +type sendUpgradeParams = { + value: Upgrade, fee?: StdFee, memo?: string }; -type sendMsgPruneAcknowledgementsResponseParams = { - value: MsgPruneAcknowledgementsResponse, +type sendUpgradeFieldsParams = { + value: UpgradeFields, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse, +type sendMsgPruneAcknowledgementsResponseParams = { + value: MsgPruneAcknowledgementsResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryUnreceivedAcksRequestParams = { + value: QueryUnreceivedAcksRequest, fee?: StdFee, memo?: string }; -type sendQueryChannelRequestParams = { - value: QueryChannelRequest, +type sendQueryUpgradeRequestParams = { + value: QueryUpgradeRequest, fee?: StdFee, memo?: string }; -type sendQueryConnectionChannelsRequestParams = { - value: QueryConnectionChannelsRequest, +type sendMsgChannelUpgradeTimeoutResponseParams = { + value: MsgChannelUpgradeTimeoutResponse, fee?: StdFee, memo?: string }; -type sendQueryChannelParamsRequestParams = { - value: QueryChannelParamsRequest, +type sendPacketIdParams = { + value: PacketId, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenInitParams = { - value: MsgChannelOpenInit, +type sendPacketSequenceParams = { + value: PacketSequence, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm, +type sendMsgChannelOpenTryParams = { + value: MsgChannelOpenTry, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseInitParams = { - value: MsgChannelCloseInit, +type sendMsgChannelUpgradeInitParams = { + value: MsgChannelUpgradeInit, fee?: StdFee, memo?: string }; -type sendPacketStateParams = { - value: PacketState, +type sendQueryChannelParamsRequestParams = { + value: QueryChannelParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryChannelClientStateRequestParams = { - value: QueryChannelClientStateRequest, +type sendQueryChannelParamsResponseParams = { + value: QueryChannelParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest, +type sendPacketStateParams = { + value: PacketState, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenInitResponseParams = { - value: MsgChannelOpenInitResponse, +type sendMsgRecvPacketParams = { + value: MsgRecvPacket, fee?: StdFee, memo?: string }; -type sendMsgTimeoutResponseParams = { - value: MsgTimeoutResponse, +type sendQueryChannelRequestParams = { + value: QueryChannelRequest, fee?: StdFee, memo?: string }; -type sendChannelParams = { - value: Channel, +type sendMsgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose, fee?: StdFee, memo?: string }; -type sendQueryChannelClientStateResponseParams = { - value: QueryChannelClientStateResponse, +type sendMsgChannelUpgradeTimeoutParams = { + value: MsgChannelUpgradeTimeout, fee?: StdFee, memo?: string }; -type sendQueryUpgradeErrorRequestParams = { - value: QueryUpgradeErrorRequest, +type sendQueryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest, fee?: StdFee, memo?: string }; @@ -348,134 +336,134 @@ type sendQueryUpgradeResponseParams = { memo?: string }; -type sendQueryChannelParamsResponseParams = { - value: QueryChannelParamsResponse, +type sendMsgChannelUpgradeConfirmResponseParams = { + value: MsgChannelUpgradeConfirmResponse, fee?: StdFee, memo?: string }; -type sendUpgradeFieldsParams = { - value: UpgradeFields, +type sendTimeoutParams = { + value: Timeout, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm, fee?: StdFee, memo?: string }; -type sendPacketSequenceParams = { - value: PacketSequence, +type sendQueryConnectionChannelsRequestParams = { + value: QueryConnectionChannelsRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeAckResponseParams = { - value: MsgChannelUpgradeAckResponse, +type sendQueryChannelClientStateResponseParams = { + value: QueryChannelClientStateResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeInitParams = { - value: MsgChannelUpgradeInit, +type sendQueryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse, +type sendQueryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse, +type sendQueryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeInitResponseParams = { - value: MsgChannelUpgradeInitResponse, +type sendChannelParams = { + value: Channel, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest, +type sendMsgChannelOpenInitParams = { + value: MsgChannelOpenInit, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse, +type sendMsgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceSendRequestParams = { - value: QueryNextSequenceSendRequest, +type sendMsgChannelUpgradeTryParams = { + value: MsgChannelUpgradeTry, fee?: StdFee, memo?: string }; -type sendQueryUpgradeErrorResponseParams = { - value: QueryUpgradeErrorResponse, +type sendMsgChannelUpgradeCancelParams = { + value: MsgChannelUpgradeCancel, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenAckParams = { - value: MsgChannelOpenAck, +type sendMsgPruneAcknowledgementsParams = { + value: MsgPruneAcknowledgements, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeOpenParams = { - value: MsgChannelUpgradeOpen, +type sendQueryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendQueryChannelsResponseParams = { - value: QueryChannelsResponse, +type sendQueryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse, +type sendQueryUpgradeErrorResponseParams = { + value: QueryUpgradeErrorResponse, fee?: StdFee, memo?: string }; -type sendTimeoutParams = { - value: Timeout, +type sendMsgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse, +type sendAcknowledgementParams = { + value: Acknowledgement, fee?: StdFee, memo?: string }; -type sendQueryUpgradeRequestParams = { - value: QueryUpgradeRequest, +type sendQueryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest, fee?: StdFee, memo?: string }; -type sendMsgTimeoutParams = { - value: MsgTimeout, +type sendQueryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseInitResponseParams = { - value: MsgChannelCloseInitResponse, +type sendQueryNextSequenceSendRequestParams = { + value: QueryNextSequenceSendRequest, fee?: StdFee, memo?: string }; @@ -486,74 +474,74 @@ type sendIdentifiedChannelParams = { memo?: string }; -type sendAcknowledgementParams = { - value: Acknowledgement, +type sendMsgChannelOpenAckParams = { + value: MsgChannelOpenAck, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentRequestParams = { - value: QueryPacketCommitmentRequest, +type sendMsgChannelUpgradeConfirmParams = { + value: MsgChannelUpgradeConfirm, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest, +type sendQueryChannelsResponseParams = { + value: QueryChannelsResponse, fee?: StdFee, memo?: string }; -type sendErrorReceiptParams = { - value: ErrorReceipt, +type sendMsgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeConfirmParams = { - value: MsgChannelUpgradeConfirm, +type sendMsgChannelUpgradeCancelResponseParams = { + value: MsgChannelUpgradeCancelResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeTryResponseParams = { - value: MsgChannelUpgradeTryResponse, +type sendMsgChannelOpenInitResponseParams = { + value: MsgChannelOpenInitResponse, fee?: StdFee, memo?: string }; -type sendPacketParams = { - value: Packet, +type sendMsgChannelCloseInitParams = { + value: MsgChannelCloseInit, fee?: StdFee, memo?: string }; -type sendQueryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest, +type sendMsgAcknowledgementParams = { + value: MsgAcknowledgement, fee?: StdFee, memo?: string }; -type sendQueryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse, +type sendQueryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryChannelClientStateRequestParams = { + value: QueryChannelClientStateRequest, fee?: StdFee, memo?: string }; -type sendQueryChannelResponseParams = { - value: QueryChannelResponse, +type sendQueryUnreceivedAcksResponseParams = { + value: QueryUnreceivedAcksResponse, fee?: StdFee, memo?: string }; @@ -564,397 +552,409 @@ type sendQueryNextSequenceSendResponseParams = { memo?: string }; -type sendMsgChannelUpgradeAckParams = { - value: MsgChannelUpgradeAck, +type sendMsgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse, fee?: StdFee, memo?: string }; -type sendMsgRecvPacketResponseParams = { - value: MsgRecvPacketResponse, +type sendMsgChannelUpgradeAckResponseParams = { + value: MsgChannelUpgradeAckResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelUpgradeTimeoutResponseParams = { - value: MsgChannelUpgradeTimeoutResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendPacketIdParams = { - value: PacketId, +type sendQueryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse, fee?: StdFee, memo?: string }; -type sendUpgradeParams = { - value: Upgrade, +type sendMsgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse, fee?: StdFee, memo?: string }; -type sendMsgRecvPacketParams = { - value: MsgRecvPacket, +type sendMsgTimeoutResponseParams = { + value: MsgTimeoutResponse, fee?: StdFee, memo?: string }; -type sendMsgPruneAcknowledgementsParams = { - value: MsgPruneAcknowledgements, +type sendMsgChannelUpgradeInitResponseParams = { + value: MsgChannelUpgradeInitResponse, + fee?: StdFee, + memo?: string +}; + +type sendMsgChannelUpgradeTryResponseParams = { + value: MsgChannelUpgradeTryResponse, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse, +type sendQueryPacketCommitmentRequestParams = { + value: QueryPacketCommitmentRequest, fee?: StdFee, memo?: string }; - -type msgChannelUpgradeConfirmResponseParams = { - value: MsgChannelUpgradeConfirmResponse, -}; - -type msgChannelUpgradeOpenResponseParams = { +type sendMsgChannelUpgradeOpenResponseParams = { value: MsgChannelUpgradeOpenResponse, + fee?: StdFee, + memo?: string }; -type msgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse, + +type counterpartyParams = { + value: Counterparty, }; -type queryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse, +type packetParams = { + value: Packet, }; -type queryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest, +type msgChannelUpgradeAckParams = { + value: MsgChannelUpgradeAck, }; -type queryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest, +type queryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse, }; -type queryUnreceivedAcksResponseParams = { - value: QueryUnreceivedAcksResponse, +type msgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse, }; -type msgChannelUpgradeCancelResponseParams = { - value: MsgChannelUpgradeCancelResponse, +type genesisStateParams = { + value: GenesisState, }; -type queryChannelsRequestParams = { - value: QueryChannelsRequest, +type msgChannelUpgradeOpenParams = { + value: MsgChannelUpgradeOpen, }; -type queryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse, +type queryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse, }; -type msgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm, +type queryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest, }; -type msgChannelUpgradeTimeoutParams = { - value: MsgChannelUpgradeTimeout, +type errorReceiptParams = { + value: ErrorReceipt, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse, }; type msgChannelOpenTryResponseParams = { value: MsgChannelOpenTryResponse, }; -type msgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type counterpartyParams = { - value: Counterparty, +type queryChannelResponseParams = { + value: QueryChannelResponse, }; -type queryUnreceivedAcksRequestParams = { - value: QueryUnreceivedAcksRequest, +type queryChannelsRequestParams = { + value: QueryChannelsRequest, }; -type msgChannelOpenTryParams = { - value: MsgChannelOpenTry, +type queryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse, }; -type msgChannelUpgradeTryParams = { - value: MsgChannelUpgradeTry, +type msgChannelCloseInitResponseParams = { + value: MsgChannelCloseInitResponse, }; -type queryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest, +type msgRecvPacketResponseParams = { + value: MsgRecvPacketResponse, }; -type msgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose, +type msgTimeoutParams = { + value: MsgTimeout, }; -type msgAcknowledgementParams = { - value: MsgAcknowledgement, +type queryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest, }; -type msgChannelUpgradeCancelParams = { - value: MsgChannelUpgradeCancel, +type queryUpgradeErrorRequestParams = { + value: QueryUpgradeErrorRequest, }; -type msgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse, +type upgradeParams = { + value: Upgrade, }; -type msgPruneAcknowledgementsResponseParams = { - value: MsgPruneAcknowledgementsResponse, +type upgradeFieldsParams = { + value: UpgradeFields, }; -type queryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse, +type msgPruneAcknowledgementsResponseParams = { + value: MsgPruneAcknowledgementsResponse, }; -type paramsParams = { - value: Params, +type queryUnreceivedAcksRequestParams = { + value: QueryUnreceivedAcksRequest, }; -type queryChannelRequestParams = { - value: QueryChannelRequest, +type queryUpgradeRequestParams = { + value: QueryUpgradeRequest, }; -type queryConnectionChannelsRequestParams = { - value: QueryConnectionChannelsRequest, +type msgChannelUpgradeTimeoutResponseParams = { + value: MsgChannelUpgradeTimeoutResponse, }; -type queryChannelParamsRequestParams = { - value: QueryChannelParamsRequest, +type packetIdParams = { + value: PacketId, }; -type msgChannelOpenInitParams = { - value: MsgChannelOpenInit, +type packetSequenceParams = { + value: PacketSequence, }; -type msgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm, +type msgChannelOpenTryParams = { + value: MsgChannelOpenTry, }; -type msgChannelCloseInitParams = { - value: MsgChannelCloseInit, +type msgChannelUpgradeInitParams = { + value: MsgChannelUpgradeInit, }; -type packetStateParams = { - value: PacketState, +type queryChannelParamsRequestParams = { + value: QueryChannelParamsRequest, }; -type queryChannelClientStateRequestParams = { - value: QueryChannelClientStateRequest, +type queryChannelParamsResponseParams = { + value: QueryChannelParamsResponse, }; -type queryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest, +type packetStateParams = { + value: PacketState, }; -type msgChannelOpenInitResponseParams = { - value: MsgChannelOpenInitResponse, +type msgRecvPacketParams = { + value: MsgRecvPacket, }; -type msgTimeoutResponseParams = { - value: MsgTimeoutResponse, +type queryChannelRequestParams = { + value: QueryChannelRequest, }; -type channelParams = { - value: Channel, +type msgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose, }; -type queryChannelClientStateResponseParams = { - value: QueryChannelClientStateResponse, +type msgChannelUpgradeTimeoutParams = { + value: MsgChannelUpgradeTimeout, }; -type queryUpgradeErrorRequestParams = { - value: QueryUpgradeErrorRequest, +type queryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest, }; type queryUpgradeResponseParams = { value: QueryUpgradeResponse, }; -type queryChannelParamsResponseParams = { - value: QueryChannelParamsResponse, +type msgChannelUpgradeConfirmResponseParams = { + value: MsgChannelUpgradeConfirmResponse, }; -type upgradeFieldsParams = { - value: UpgradeFields, +type timeoutParams = { + value: Timeout, }; -type genesisStateParams = { - value: GenesisState, +type msgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm, }; -type packetSequenceParams = { - value: PacketSequence, +type queryConnectionChannelsRequestParams = { + value: QueryConnectionChannelsRequest, }; -type msgChannelUpgradeAckResponseParams = { - value: MsgChannelUpgradeAckResponse, +type queryChannelClientStateResponseParams = { + value: QueryChannelClientStateResponse, }; -type msgChannelUpgradeInitParams = { - value: MsgChannelUpgradeInit, +type queryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse, }; -type queryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse, +type queryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest, }; -type msgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse, +type queryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest, }; -type msgChannelUpgradeInitResponseParams = { - value: MsgChannelUpgradeInitResponse, +type channelParams = { + value: Channel, }; -type queryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest, +type msgChannelOpenInitParams = { + value: MsgChannelOpenInit, }; -type queryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse, +type msgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm, }; -type queryNextSequenceSendRequestParams = { - value: QueryNextSequenceSendRequest, +type msgChannelUpgradeTryParams = { + value: MsgChannelUpgradeTry, }; -type queryUpgradeErrorResponseParams = { - value: QueryUpgradeErrorResponse, +type msgChannelUpgradeCancelParams = { + value: MsgChannelUpgradeCancel, }; -type msgChannelOpenAckParams = { - value: MsgChannelOpenAck, +type msgPruneAcknowledgementsParams = { + value: MsgPruneAcknowledgements, }; -type msgChannelUpgradeOpenParams = { - value: MsgChannelUpgradeOpen, +type queryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse, }; -type queryChannelsResponseParams = { - value: QueryChannelsResponse, +type queryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse, }; -type msgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse, +type queryUpgradeErrorResponseParams = { + value: QueryUpgradeErrorResponse, }; -type timeoutParams = { - value: Timeout, +type msgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse, }; -type queryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse, +type acknowledgementParams = { + value: Acknowledgement, }; -type queryUpgradeRequestParams = { - value: QueryUpgradeRequest, +type queryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest, }; -type msgTimeoutParams = { - value: MsgTimeout, +type queryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest, }; -type msgChannelCloseInitResponseParams = { - value: MsgChannelCloseInitResponse, +type queryNextSequenceSendRequestParams = { + value: QueryNextSequenceSendRequest, }; type identifiedChannelParams = { value: IdentifiedChannel, }; -type acknowledgementParams = { - value: Acknowledgement, +type msgChannelOpenAckParams = { + value: MsgChannelOpenAck, }; -type queryPacketCommitmentRequestParams = { - value: QueryPacketCommitmentRequest, +type msgChannelUpgradeConfirmParams = { + value: MsgChannelUpgradeConfirm, }; -type queryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest, +type queryChannelsResponseParams = { + value: QueryChannelsResponse, }; -type errorReceiptParams = { - value: ErrorReceipt, +type msgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse, }; -type msgChannelUpgradeConfirmParams = { - value: MsgChannelUpgradeConfirm, +type msgChannelUpgradeCancelResponseParams = { + value: MsgChannelUpgradeCancelResponse, }; -type msgChannelUpgradeTryResponseParams = { - value: MsgChannelUpgradeTryResponse, +type msgChannelOpenInitResponseParams = { + value: MsgChannelOpenInitResponse, }; -type packetParams = { - value: Packet, +type msgChannelCloseInitParams = { + value: MsgChannelCloseInit, }; -type queryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest, +type msgAcknowledgementParams = { + value: MsgAcknowledgement, }; -type queryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse, +type queryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryChannelClientStateRequestParams = { + value: QueryChannelClientStateRequest, }; -type queryChannelResponseParams = { - value: QueryChannelResponse, +type queryUnreceivedAcksResponseParams = { + value: QueryUnreceivedAcksResponse, }; type queryNextSequenceSendResponseParams = { value: QueryNextSequenceSendResponse, }; -type msgChannelUpgradeAckParams = { - value: MsgChannelUpgradeAck, +type msgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse, }; -type msgRecvPacketResponseParams = { - value: MsgRecvPacketResponse, +type msgChannelUpgradeAckResponseParams = { + value: MsgChannelUpgradeAckResponse, }; -type msgChannelUpgradeTimeoutResponseParams = { - value: MsgChannelUpgradeTimeoutResponse, +type paramsParams = { + value: Params, }; -type packetIdParams = { - value: PacketId, +type queryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse, }; -type upgradeParams = { - value: Upgrade, +type msgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse, }; -type msgRecvPacketParams = { - value: MsgRecvPacket, +type msgTimeoutResponseParams = { + value: MsgTimeoutResponse, }; -type msgPruneAcknowledgementsParams = { - value: MsgPruneAcknowledgements, +type msgChannelUpgradeInitResponseParams = { + value: MsgChannelUpgradeInitResponse, }; -type queryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse, +type msgChannelUpgradeTryResponseParams = { + value: MsgChannelUpgradeTryResponse, +}; + +type queryPacketCommitmentRequestParams = { + value: QueryPacketCommitmentRequest, +}; + +type msgChannelUpgradeOpenResponseParams = { + value: MsgChannelUpgradeOpenResponse, }; @@ -987,185 +987,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgChannelUpgradeConfirmResponse({ value, fee, memo }: sendMsgChannelUpgradeConfirmResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeConfirmResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeConfirmResponse({ value: MsgChannelUpgradeConfirmResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeConfirmResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendMsgChannelUpgradeOpenResponse({ value, fee, memo }: sendMsgChannelUpgradeOpenResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeOpenResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeOpenResponse({ value: MsgChannelUpgradeOpenResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeOpenResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendMsgChannelOpenConfirmResponse({ value, fee, memo }: sendMsgChannelOpenConfirmResponseParams): Promise { + async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCounterparty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenConfirmResponse({ value: MsgChannelOpenConfirmResponse.fromPartial(value) }) + let msg = this.counterparty({ value: Counterparty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise { + async sendPacket({ value, fee, memo }: sendPacketParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionChannelsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacket: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionChannelsResponse({ value: QueryConnectionChannelsResponse.fromPartial(value) }) + let msg = this.packet({ value: Packet.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionChannelsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacket: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise { + async sendMsgChannelUpgradeAck({ value, fee, memo }: sendMsgChannelUpgradeAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketAcknowledgementRequest({ value: QueryPacketAcknowledgementRequest.fromPartial(value) }) + let msg = this.msgChannelUpgradeAck({ value: MsgChannelUpgradeAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise { + async sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnreceivedPacketsRequest({ value: QueryUnreceivedPacketsRequest.fromPartial(value) }) + let msg = this.queryUnreceivedPacketsResponse({ value: QueryUnreceivedPacketsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise { + async sendMsgChannelOpenConfirmResponse({ value, fee, memo }: sendMsgChannelOpenConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnreceivedAcksResponse({ value: QueryUnreceivedAcksResponse.fromPartial(value) }) + let msg = this.msgChannelOpenConfirmResponse({ value: MsgChannelOpenConfirmResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeCancelResponse({ value, fee, memo }: sendMsgChannelUpgradeCancelResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeCancelResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeCancelResponse({ value: MsgChannelUpgradeCancelResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeCancelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelsRequest({ value, fee, memo }: sendQueryChannelsRequestParams): Promise { + async sendMsgChannelUpgradeOpen({ value, fee, memo }: sendMsgChannelUpgradeOpenParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeOpen: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelsRequest({ value: QueryChannelsRequest.fromPartial(value) }) + let msg = this.msgChannelUpgradeOpen({ value: MsgChannelUpgradeOpen.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeOpen: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise { + async sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketReceiptResponse({ value: QueryPacketReceiptResponse.fromPartial(value) }) + let msg = this.queryPacketCommitmentsResponse({ value: QueryPacketCommitmentsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketReceiptResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise { + async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: sendQueryPacketAcknowledgementsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirm: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelCloseConfirm({ value: MsgChannelCloseConfirm.fromPartial(value) }) + let msg = this.queryPacketAcknowledgementsRequest({ value: QueryPacketAcknowledgementsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeTimeout({ value, fee, memo }: sendMsgChannelUpgradeTimeoutParams): Promise { + async sendErrorReceipt({ value, fee, memo }: sendErrorReceiptParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendErrorReceipt: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeTimeout({ value: MsgChannelUpgradeTimeout.fromPartial(value) }) + let msg = this.errorReceipt({ value: ErrorReceipt.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendErrorReceipt: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryPacketAcknowledgementsResponse({ value: QueryPacketAcknowledgementsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1183,381 +1155,381 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgTimeoutOnCloseResponse({ value, fee, memo }: sendMsgTimeoutOnCloseResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTimeoutOnCloseResponse({ value: MsgTimeoutOnCloseResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { + async sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCounterparty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.counterparty({ value: Counterparty.fromPartial(value) }) + let msg = this.queryChannelResponse({ value: QueryChannelResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise { + async sendQueryChannelsRequest({ value, fee, memo }: sendQueryChannelsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnreceivedAcksRequest({ value: QueryUnreceivedAcksRequest.fromPartial(value) }) + let msg = this.queryChannelsRequest({ value: QueryChannelsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise { + async sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenTry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketCommitmentResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenTry({ value: MsgChannelOpenTry.fromPartial(value) }) + let msg = this.queryPacketCommitmentResponse({ value: QueryPacketCommitmentResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeTry({ value, fee, memo }: sendMsgChannelUpgradeTryParams): Promise { + async sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeTry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelCloseInitResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeTry({ value: MsgChannelUpgradeTry.fromPartial(value) }) + let msg = this.msgChannelCloseInitResponse({ value: MsgChannelCloseInitResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeTry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketReceiptRequest({ value, fee, memo }: sendQueryPacketReceiptRequestParams): Promise { + async sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRecvPacketResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketReceiptRequest({ value: QueryPacketReceiptRequest.fromPartial(value) }) + let msg = this.msgRecvPacketResponse({ value: MsgRecvPacketResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketReceiptRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecvPacketResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise { + async sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnClose: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTimeout: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTimeoutOnClose({ value: MsgTimeoutOnClose.fromPartial(value) }) + let msg = this.msgTimeout({ value: MsgTimeout.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise { + async sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgement: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAcknowledgement({ value: MsgAcknowledgement.fromPartial(value) }) + let msg = this.queryChannelConsensusStateRequest({ value: QueryChannelConsensusStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeCancel({ value, fee, memo }: sendMsgChannelUpgradeCancelParams): Promise { + async sendQueryUpgradeErrorRequest({ value, fee, memo }: sendQueryUpgradeErrorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeCancel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradeErrorRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeCancel({ value: MsgChannelUpgradeCancel.fromPartial(value) }) + let msg = this.queryUpgradeErrorRequest({ value: QueryUpgradeErrorRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeCancel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradeErrorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise { + async sendUpgrade({ value, fee, memo }: sendUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgementResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUpgrade: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAcknowledgementResponse({ value: MsgAcknowledgementResponse.fromPartial(value) }) + let msg = this.upgrade({ value: Upgrade.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAcknowledgementResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPruneAcknowledgementsResponse({ value, fee, memo }: sendMsgPruneAcknowledgementsResponseParams): Promise { + async sendUpgradeFields({ value, fee, memo }: sendUpgradeFieldsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPruneAcknowledgementsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUpgradeFields: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPruneAcknowledgementsResponse({ value: MsgPruneAcknowledgementsResponse.fromPartial(value) }) + let msg = this.upgradeFields({ value: UpgradeFields.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPruneAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpgradeFields: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise { + async sendMsgPruneAcknowledgementsResponse({ value, fee, memo }: sendMsgPruneAcknowledgementsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPruneAcknowledgementsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketCommitmentsResponse({ value: QueryPacketCommitmentsResponse.fromPartial(value) }) + let msg = this.msgPruneAcknowledgementsResponse({ value: MsgPruneAcknowledgementsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPruneAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryUnreceivedAcksRequest({ value: QueryUnreceivedAcksRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise { + async sendQueryUpgradeRequest({ value, fee, memo }: sendQueryUpgradeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradeRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelRequest({ value: QueryChannelRequest.fromPartial(value) }) + let msg = this.queryUpgradeRequest({ value: QueryUpgradeRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionChannelsRequest({ value, fee, memo }: sendQueryConnectionChannelsRequestParams): Promise { + async sendMsgChannelUpgradeTimeoutResponse({ value, fee, memo }: sendMsgChannelUpgradeTimeoutResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionChannelsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeTimeoutResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionChannelsRequest({ value: QueryConnectionChannelsRequest.fromPartial(value) }) + let msg = this.msgChannelUpgradeTimeoutResponse({ value: MsgChannelUpgradeTimeoutResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionChannelsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeTimeoutResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelParamsRequest({ value, fee, memo }: sendQueryChannelParamsRequestParams): Promise { + async sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacketId: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelParamsRequest({ value: QueryChannelParamsRequest.fromPartial(value) }) + let msg = this.packetId({ value: PacketId.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketId: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise { + async sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacketSequence: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenInit({ value: MsgChannelOpenInit.fromPartial(value) }) + let msg = this.packetSequence({ value: PacketSequence.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketSequence: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise { + async sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirm: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenTry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.fromPartial(value) }) + let msg = this.msgChannelOpenTry({ value: MsgChannelOpenTry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise { + async sendMsgChannelUpgradeInit({ value, fee, memo }: sendMsgChannelUpgradeInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeInit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelCloseInit({ value: MsgChannelCloseInit.fromPartial(value) }) + let msg = this.msgChannelUpgradeInit({ value: MsgChannelUpgradeInit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeInit: Could not broadcast Tx: '+ e.message) } }, - async sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise { + async sendQueryChannelParamsRequest({ value, fee, memo }: sendQueryChannelParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packetState({ value: PacketState.fromPartial(value) }) + let msg = this.queryChannelParamsRequest({ value: QueryChannelParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacketState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise { + async sendQueryChannelParamsResponse({ value, fee, memo }: sendQueryChannelParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelClientStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelClientStateRequest({ value: QueryChannelClientStateRequest.fromPartial(value) }) + let msg = this.queryChannelParamsResponse({ value: QueryChannelParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise { + async sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendPacketState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketCommitmentsRequest({ value: QueryPacketCommitmentsRequest.fromPartial(value) }) + let msg = this.packetState({ value: PacketState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise { + async sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInitResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRecvPacket: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenInitResponse({ value: MsgChannelOpenInitResponse.fromPartial(value) }) + let msg = this.msgRecvPacket({ value: MsgRecvPacket.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise { + async sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTimeoutResponse({ value: MsgTimeoutResponse.fromPartial(value) }) + let msg = this.queryChannelRequest({ value: QueryChannelRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTimeoutResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelRequest: Could not broadcast Tx: '+ e.message) } }, - async sendChannel({ value, fee, memo }: sendChannelParams): Promise { + async sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise { if (!signer) { - throw new Error('TxClient:sendChannel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTimeoutOnClose: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.channel({ value: Channel.fromPartial(value) }) + let msg = this.msgTimeoutOnClose({ value: MsgTimeoutOnClose.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelClientStateResponse({ value, fee, memo }: sendQueryChannelClientStateResponseParams): Promise { + async sendMsgChannelUpgradeTimeout({ value, fee, memo }: sendMsgChannelUpgradeTimeoutParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelClientStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelClientStateResponse({ value: QueryChannelClientStateResponse.fromPartial(value) }) + let msg = this.msgChannelUpgradeTimeout({ value: MsgChannelUpgradeTimeout.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradeErrorRequest({ value, fee, memo }: sendQueryUpgradeErrorRequestParams): Promise { + async sendQueryPacketReceiptRequest({ value, fee, memo }: sendQueryPacketReceiptRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradeErrorRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketReceiptRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradeErrorRequest({ value: QueryUpgradeErrorRequest.fromPartial(value) }) + let msg = this.queryPacketReceiptRequest({ value: QueryPacketReceiptRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradeErrorRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketReceiptRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1575,311 +1547,311 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryChannelParamsResponse({ value, fee, memo }: sendQueryChannelParamsResponseParams): Promise { + async sendMsgChannelUpgradeConfirmResponse({ value, fee, memo }: sendMsgChannelUpgradeConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeConfirmResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelParamsResponse({ value: QueryChannelParamsResponse.fromPartial(value) }) + let msg = this.msgChannelUpgradeConfirmResponse({ value: MsgChannelUpgradeConfirmResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendUpgradeFields({ value, fee, memo }: sendUpgradeFieldsParams): Promise { + async sendTimeout({ value, fee, memo }: sendTimeoutParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpgradeFields: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendTimeout: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.upgradeFields({ value: UpgradeFields.fromPartial(value) }) + let msg = this.timeout({ value: Timeout.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUpgradeFields: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTimeout: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelCloseConfirm: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.msgChannelCloseConfirm({ value: MsgChannelCloseConfirm.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise { + async sendQueryConnectionChannelsRequest({ value, fee, memo }: sendQueryConnectionChannelsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketSequence: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionChannelsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packetSequence({ value: PacketSequence.fromPartial(value) }) + let msg = this.queryConnectionChannelsRequest({ value: QueryConnectionChannelsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacketSequence: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionChannelsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeAckResponse({ value, fee, memo }: sendMsgChannelUpgradeAckResponseParams): Promise { + async sendQueryChannelClientStateResponse({ value, fee, memo }: sendQueryChannelClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeAckResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelClientStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeAckResponse({ value: MsgChannelUpgradeAckResponse.fromPartial(value) }) + let msg = this.queryChannelClientStateResponse({ value: QueryChannelClientStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeAckResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeInit({ value, fee, memo }: sendMsgChannelUpgradeInitParams): Promise { + async sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeInit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeInit({ value: MsgChannelUpgradeInit.fromPartial(value) }) + let msg = this.queryPacketAcknowledgementResponse({ value: QueryPacketAcknowledgementResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise { + async sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketAcknowledgementsResponse({ value: QueryPacketAcknowledgementsResponse.fromPartial(value) }) + let msg = this.queryUnreceivedPacketsRequest({ value: QueryUnreceivedPacketsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise { + async sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelCloseConfirmResponse({ value: MsgChannelCloseConfirmResponse.fromPartial(value) }) + let msg = this.queryPacketAcknowledgementRequest({ value: QueryPacketAcknowledgementRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeInitResponse({ value, fee, memo }: sendMsgChannelUpgradeInitResponseParams): Promise { + async sendChannel({ value, fee, memo }: sendChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeInitResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendChannel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeInitResponse({ value: MsgChannelUpgradeInitResponse.fromPartial(value) }) + let msg = this.channel({ value: Channel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendChannel: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: sendQueryPacketAcknowledgementsRequestParams): Promise { + async sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenInit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketAcknowledgementsRequest({ value: QueryPacketAcknowledgementsRequest.fromPartial(value) }) + let msg = this.msgChannelOpenInit({ value: MsgChannelOpenInit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise { + async sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenConfirm: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketAcknowledgementResponse({ value: QueryPacketAcknowledgementResponse.fromPartial(value) }) + let msg = this.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise { + async sendMsgChannelUpgradeTry({ value, fee, memo }: sendMsgChannelUpgradeTryParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceSendRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeTry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNextSequenceSendRequest({ value: QueryNextSequenceSendRequest.fromPartial(value) }) + let msg = this.msgChannelUpgradeTry({ value: MsgChannelUpgradeTry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNextSequenceSendRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeTry: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradeErrorResponse({ value, fee, memo }: sendQueryUpgradeErrorResponseParams): Promise { + async sendMsgChannelUpgradeCancel({ value, fee, memo }: sendMsgChannelUpgradeCancelParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradeErrorResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeCancel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradeErrorResponse({ value: QueryUpgradeErrorResponse.fromPartial(value) }) + let msg = this.msgChannelUpgradeCancel({ value: MsgChannelUpgradeCancel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradeErrorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeCancel: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise { + async sendMsgPruneAcknowledgements({ value, fee, memo }: sendMsgPruneAcknowledgementsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgPruneAcknowledgements: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenAck({ value: MsgChannelOpenAck.fromPartial(value) }) + let msg = this.msgPruneAcknowledgements({ value: MsgPruneAcknowledgements.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPruneAcknowledgements: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeOpen({ value, fee, memo }: sendMsgChannelUpgradeOpenParams): Promise { + async sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeOpen: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeOpen({ value: MsgChannelUpgradeOpen.fromPartial(value) }) + let msg = this.queryChannelConsensusStateResponse({ value: QueryChannelConsensusStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeOpen: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelsResponse({ value, fee, memo }: sendQueryChannelsResponseParams): Promise { + async sendQueryNextSequenceReceiveResponse({ value, fee, memo }: sendQueryNextSequenceReceiveResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelsResponse({ value: QueryChannelsResponse.fromPartial(value) }) + let msg = this.queryNextSequenceReceiveResponse({ value: QueryNextSequenceReceiveResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise { + async sendQueryUpgradeErrorResponse({ value, fee, memo }: sendQueryUpgradeErrorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAckResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradeErrorResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelOpenAckResponse({ value: MsgChannelOpenAckResponse.fromPartial(value) }) + let msg = this.queryUpgradeErrorResponse({ value: QueryUpgradeErrorResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelOpenAckResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradeErrorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTimeout({ value, fee, memo }: sendTimeoutParams): Promise { + async sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTimeout: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.timeout({ value: Timeout.fromPartial(value) }) + let msg = this.msgChannelCloseConfirmResponse({ value: MsgChannelCloseConfirmResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendTimeout: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceReceiveResponse({ value, fee, memo }: sendQueryNextSequenceReceiveResponseParams): Promise { + async sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAcknowledgement: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNextSequenceReceiveResponse({ value: QueryNextSequenceReceiveResponse.fromPartial(value) }) + let msg = this.acknowledgement({ value: Acknowledgement.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradeRequest({ value, fee, memo }: sendQueryUpgradeRequestParams): Promise { + async sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradeRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradeRequest({ value: QueryUpgradeRequest.fromPartial(value) }) + let msg = this.queryPacketCommitmentsRequest({ value: QueryPacketCommitmentsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise { + async sendQueryNextSequenceReceiveRequest({ value, fee, memo }: sendQueryNextSequenceReceiveRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeout: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgTimeout({ value: MsgTimeout.fromPartial(value) }) + let msg = this.queryNextSequenceReceiveRequest({ value: QueryNextSequenceReceiveRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise { + async sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInitResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNextSequenceSendRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelCloseInitResponse({ value: MsgChannelCloseInitResponse.fromPartial(value) }) + let msg = this.queryNextSequenceSendRequest({ value: QueryNextSequenceSendRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelCloseInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceSendRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1897,171 +1869,171 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise { + async sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendAcknowledgement: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.acknowledgement({ value: Acknowledgement.fromPartial(value) }) + let msg = this.msgChannelOpenAck({ value: MsgChannelOpenAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentRequest({ value, fee, memo }: sendQueryPacketCommitmentRequestParams): Promise { + async sendMsgChannelUpgradeConfirm({ value, fee, memo }: sendMsgChannelUpgradeConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketCommitmentRequest({ value: QueryPacketCommitmentRequest.fromPartial(value) }) + let msg = this.msgChannelUpgradeConfirm({ value: MsgChannelUpgradeConfirm.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketCommitmentRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceReceiveRequest({ value, fee, memo }: sendQueryNextSequenceReceiveRequestParams): Promise { + async sendQueryChannelsResponse({ value, fee, memo }: sendQueryChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryNextSequenceReceiveRequest({ value: QueryNextSequenceReceiveRequest.fromPartial(value) }) + let msg = this.queryChannelsResponse({ value: QueryChannelsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendErrorReceipt({ value, fee, memo }: sendErrorReceiptParams): Promise { + async sendMsgTimeoutOnCloseResponse({ value, fee, memo }: sendMsgTimeoutOnCloseResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendErrorReceipt: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.errorReceipt({ value: ErrorReceipt.fromPartial(value) }) + let msg = this.msgTimeoutOnCloseResponse({ value: MsgTimeoutOnCloseResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendErrorReceipt: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeConfirm({ value, fee, memo }: sendMsgChannelUpgradeConfirmParams): Promise { + async sendMsgChannelUpgradeCancelResponse({ value, fee, memo }: sendMsgChannelUpgradeCancelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeCancelResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeConfirm({ value: MsgChannelUpgradeConfirm.fromPartial(value) }) + let msg = this.msgChannelUpgradeCancelResponse({ value: MsgChannelUpgradeCancelResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeCancelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeTryResponse({ value, fee, memo }: sendMsgChannelUpgradeTryResponseParams): Promise { + async sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeTryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenInitResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeTryResponse({ value: MsgChannelUpgradeTryResponse.fromPartial(value) }) + let msg = this.msgChannelOpenInitResponse({ value: MsgChannelOpenInitResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeTryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPacket({ value, fee, memo }: sendPacketParams): Promise { + async sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacket: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelCloseInit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packet({ value: Packet.fromPartial(value) }) + let msg = this.msgChannelCloseInit({ value: MsgChannelCloseInit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacket: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise { + async sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAcknowledgement: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelConsensusStateRequest({ value: QueryChannelConsensusStateRequest.fromPartial(value) }) + let msg = this.msgAcknowledgement({ value: MsgAcknowledgement.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelConsensusStateResponse({ value: QueryChannelConsensusStateResponse.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise { + async sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionChannelsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryPacketCommitmentResponse({ value: QueryPacketCommitmentResponse.fromPartial(value) }) + let msg = this.queryConnectionChannelsResponse({ value: QueryConnectionChannelsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryPacketCommitmentResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryChannelClientStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.queryChannelClientStateRequest({ value: QueryChannelClientStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise { + async sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryChannelResponse({ value: QueryChannelResponse.fromPartial(value) }) + let msg = this.queryUnreceivedAcksResponse({ value: QueryUnreceivedAcksResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: '+ e.message) } }, @@ -2079,220 +2051,232 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgChannelUpgradeAck({ value, fee, memo }: sendMsgChannelUpgradeAckParams): Promise { + async sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAcknowledgementResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeAck({ value: MsgChannelUpgradeAck.fromPartial(value) }) + let msg = this.msgAcknowledgementResponse({ value: MsgAcknowledgementResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAcknowledgementResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise { + async sendMsgChannelUpgradeAckResponse({ value, fee, memo }: sendMsgChannelUpgradeAckResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacketResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeAckResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRecvPacketResponse({ value: MsgRecvPacketResponse.fromPartial(value) }) + let msg = this.msgChannelUpgradeAckResponse({ value: MsgChannelUpgradeAckResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRecvPacketResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeAckResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelUpgradeTimeoutResponse({ value, fee, memo }: sendMsgChannelUpgradeTimeoutResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelUpgradeTimeoutResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgChannelUpgradeTimeoutResponse({ value: MsgChannelUpgradeTimeoutResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgChannelUpgradeTimeoutResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise { + async sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketId: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPacketReceiptResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.packetId({ value: PacketId.fromPartial(value) }) + let msg = this.queryPacketReceiptResponse({ value: QueryPacketReceiptResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendPacketId: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketReceiptResponse: Could not broadcast Tx: '+ e.message) } }, - async sendUpgrade({ value, fee, memo }: sendUpgradeParams): Promise { + async sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpgrade: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenAckResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.upgrade({ value: Upgrade.fromPartial(value) }) + let msg = this.msgChannelOpenAckResponse({ value: MsgChannelOpenAckResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenAckResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise { + async sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacket: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgTimeoutResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRecvPacket({ value: MsgRecvPacket.fromPartial(value) }) + let msg = this.msgTimeoutResponse({ value: MsgTimeoutResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPruneAcknowledgements({ value, fee, memo }: sendMsgPruneAcknowledgementsParams): Promise { + async sendMsgChannelUpgradeInitResponse({ value, fee, memo }: sendMsgChannelUpgradeInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPruneAcknowledgements: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeInitResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgPruneAcknowledgements({ value: MsgPruneAcknowledgements.fromPartial(value) }) + let msg = this.msgChannelUpgradeInitResponse({ value: MsgChannelUpgradeInitResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgPruneAcknowledgements: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise { + async sendMsgChannelUpgradeTryResponse({ value, fee, memo }: sendMsgChannelUpgradeTryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelUpgradeTryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUnreceivedPacketsResponse({ value: QueryUnreceivedPacketsResponse.fromPartial(value) }) + let msg = this.msgChannelUpgradeTryResponse({ value: MsgChannelUpgradeTryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelUpgradeTryResponse: Could not broadcast Tx: '+ e.message) } }, - - msgChannelUpgradeConfirmResponse({ value }: msgChannelUpgradeConfirmResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse", value: MsgChannelUpgradeConfirmResponse.fromPartial( value ) } + async sendQueryPacketCommitmentRequest({ value, fee, memo }: sendQueryPacketCommitmentRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryPacketCommitmentRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryPacketCommitmentRequest({ value: QueryPacketCommitmentRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendQueryPacketCommitmentRequest: Could not broadcast Tx: '+ e.message) } }, - msgChannelUpgradeOpenResponse({ value }: msgChannelUpgradeOpenResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeOpenResponse", value: MsgChannelUpgradeOpenResponse.fromPartial( value ) } + async sendMsgChannelUpgradeOpenResponse({ value, fee, memo }: sendMsgChannelUpgradeOpenResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgChannelUpgradeOpenResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgChannelUpgradeOpenResponse({ value: MsgChannelUpgradeOpenResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeOpenResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendMsgChannelUpgradeOpenResponse: Could not broadcast Tx: '+ e.message) } }, - msgChannelOpenConfirmResponse({ value }: msgChannelOpenConfirmResponseParams): EncodeObject { + + counterparty({ value }: counterpartyParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) } }, - queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject { + packet({ value }: packetParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Packet: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject { + msgChannelUpgradeAck({ value }: msgChannelUpgradeAckParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeAck", value: MsgChannelUpgradeAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeAck: Could not create message: ' + e.message) } }, - queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject { + queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message) } }, - queryUnreceivedAcksResponse({ value }: queryUnreceivedAcksResponseParams): EncodeObject { + msgChannelOpenConfirmResponse({ value }: msgChannelOpenConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksResponse", value: QueryUnreceivedAcksResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedAcksResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeCancelResponse({ value }: msgChannelUpgradeCancelResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeCancelResponse", value: MsgChannelUpgradeCancelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeCancelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryChannelsRequest({ value }: queryChannelsRequestParams): EncodeObject { + msgChannelUpgradeOpen({ value }: msgChannelUpgradeOpenParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeOpen", value: MsgChannelUpgradeOpen.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeOpen: Could not create message: ' + e.message) } }, - queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject { + queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message) } }, - msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject { + queryPacketAcknowledgementsRequest({ value }: queryPacketAcknowledgementsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message) } }, - msgChannelUpgradeTimeout({ value }: msgChannelUpgradeTimeoutParams): EncodeObject { + errorReceipt({ value }: errorReceiptParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTimeout", value: MsgChannelUpgradeTimeout.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.ErrorReceipt", value: ErrorReceipt.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeTimeout: Could not create message: ' + e.message) + throw new Error('TxClient:ErrorReceipt: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message) } }, @@ -2304,219 +2288,219 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgTimeoutOnCloseResponse({ value }: msgTimeoutOnCloseResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - counterparty({ value }: counterpartyParams): EncodeObject { + queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message) } }, - queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject { + queryChannelsRequest({ value }: queryChannelsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message) } }, - msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject { + queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeTry({ value }: msgChannelUpgradeTryParams): EncodeObject { + msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTry", value: MsgChannelUpgradeTry.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeTry: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message) } }, - queryPacketReceiptRequest({ value }: queryPacketReceiptRequestParams): EncodeObject { + msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message) } }, - msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject { + msgTimeout({ value }: msgTimeoutParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message) } }, - msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject { + queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message) } }, - msgChannelUpgradeCancel({ value }: msgChannelUpgradeCancelParams): EncodeObject { + queryUpgradeErrorRequest({ value }: queryUpgradeErrorRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeCancel", value: MsgChannelUpgradeCancel.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeErrorRequest", value: QueryUpgradeErrorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeCancel: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradeErrorRequest: Could not create message: ' + e.message) } }, - msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject { + upgrade({ value }: upgradeParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Upgrade", value: Upgrade.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Upgrade: Could not create message: ' + e.message) } }, - msgPruneAcknowledgementsResponse({ value }: msgPruneAcknowledgementsResponseParams): EncodeObject { + upgradeFields({ value }: upgradeFieldsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgPruneAcknowledgementsResponse", value: MsgPruneAcknowledgementsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.UpgradeFields", value: UpgradeFields.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPruneAcknowledgementsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:UpgradeFields: Could not create message: ' + e.message) } }, - queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject { + msgPruneAcknowledgementsResponse({ value }: msgPruneAcknowledgementsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgPruneAcknowledgementsResponse", value: MsgPruneAcknowledgementsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPruneAcknowledgementsResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message) } }, - queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject { + queryUpgradeRequest({ value }: queryUpgradeRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelRequest", value: QueryChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeRequest", value: QueryUpgradeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradeRequest: Could not create message: ' + e.message) } }, - queryConnectionChannelsRequest({ value }: queryConnectionChannelsRequestParams): EncodeObject { + msgChannelUpgradeTimeoutResponse({ value }: msgChannelUpgradeTimeoutResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsRequest", value: QueryConnectionChannelsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse", value: MsgChannelUpgradeTimeoutResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionChannelsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeTimeoutResponse: Could not create message: ' + e.message) } }, - queryChannelParamsRequest({ value }: queryChannelParamsRequestParams): EncodeObject { + packetId({ value }: packetIdParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelParamsRequest", value: QueryChannelParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:PacketId: Could not create message: ' + e.message) } }, - msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject { + packetSequence({ value }: packetSequenceParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.PacketSequence", value: PacketSequence.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message) + throw new Error('TxClient:PacketSequence: Could not create message: ' + e.message) } }, - msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject { + msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message) } }, - msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject { + msgChannelUpgradeInit({ value }: msgChannelUpgradeInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeInit", value: MsgChannelUpgradeInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeInit: Could not create message: ' + e.message) } }, - packetState({ value }: packetStateParams): EncodeObject { + queryChannelParamsRequest({ value }: queryChannelParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelParamsRequest", value: QueryChannelParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelParamsRequest: Could not create message: ' + e.message) } }, - queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject { + queryChannelParamsResponse({ value }: queryChannelParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelParamsResponse", value: QueryChannelParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelParamsResponse: Could not create message: ' + e.message) } }, - queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject { + packetState({ value }: packetStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:PacketState: Could not create message: ' + e.message) } }, - msgChannelOpenInitResponse({ value }: msgChannelOpenInitResponseParams): EncodeObject { + msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse", value: MsgChannelOpenInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message) } }, - msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject { + queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelRequest", value: QueryChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelRequest: Could not create message: ' + e.message) } }, - channel({ value }: channelParams): EncodeObject { + msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Channel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message) } }, - queryChannelClientStateResponse({ value }: queryChannelClientStateResponseParams): EncodeObject { + msgChannelUpgradeTimeout({ value }: msgChannelUpgradeTimeoutParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateResponse", value: QueryChannelClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTimeout", value: MsgChannelUpgradeTimeout.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeTimeout: Could not create message: ' + e.message) } }, - queryUpgradeErrorRequest({ value }: queryUpgradeErrorRequestParams): EncodeObject { + queryPacketReceiptRequest({ value }: queryPacketReceiptRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeErrorRequest", value: QueryUpgradeErrorRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradeErrorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message) } }, @@ -2528,179 +2512,179 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryChannelParamsResponse({ value }: queryChannelParamsResponseParams): EncodeObject { + msgChannelUpgradeConfirmResponse({ value }: msgChannelUpgradeConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelParamsResponse", value: QueryChannelParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse", value: MsgChannelUpgradeConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeConfirmResponse: Could not create message: ' + e.message) } }, - upgradeFields({ value }: upgradeFieldsParams): EncodeObject { + timeout({ value }: timeoutParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.UpgradeFields", value: UpgradeFields.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UpgradeFields: Could not create message: ' + e.message) + throw new Error('TxClient:Timeout: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message) } }, - packetSequence({ value }: packetSequenceParams): EncodeObject { + queryConnectionChannelsRequest({ value }: queryConnectionChannelsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketSequence", value: PacketSequence.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsRequest", value: QueryConnectionChannelsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketSequence: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionChannelsRequest: Could not create message: ' + e.message) } }, - msgChannelUpgradeAckResponse({ value }: msgChannelUpgradeAckResponseParams): EncodeObject { + queryChannelClientStateResponse({ value }: queryChannelClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeAckResponse", value: MsgChannelUpgradeAckResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateResponse", value: QueryChannelClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeAckResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelClientStateResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeInit({ value }: msgChannelUpgradeInitParams): EncodeObject { + queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeInit", value: MsgChannelUpgradeInit.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeInit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementResponse: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject { + queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message) } }, - msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject { + queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message) } }, - msgChannelUpgradeInitResponse({ value }: msgChannelUpgradeInitResponseParams): EncodeObject { + channel({ value }: channelParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeInitResponse", value: MsgChannelUpgradeInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Channel: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementsRequest({ value }: queryPacketAcknowledgementsRequestParams): EncodeObject { + msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject { + msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message) } }, - queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject { + msgChannelUpgradeTry({ value }: msgChannelUpgradeTryParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTry", value: MsgChannelUpgradeTry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeTry: Could not create message: ' + e.message) } }, - queryUpgradeErrorResponse({ value }: queryUpgradeErrorResponseParams): EncodeObject { + msgChannelUpgradeCancel({ value }: msgChannelUpgradeCancelParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeErrorResponse", value: QueryUpgradeErrorResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeCancel", value: MsgChannelUpgradeCancel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradeErrorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeCancel: Could not create message: ' + e.message) } }, - msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject { + msgPruneAcknowledgements({ value }: msgPruneAcknowledgementsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgPruneAcknowledgements", value: MsgPruneAcknowledgements.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPruneAcknowledgements: Could not create message: ' + e.message) } }, - msgChannelUpgradeOpen({ value }: msgChannelUpgradeOpenParams): EncodeObject { + queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeOpen", value: MsgChannelUpgradeOpen.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeOpen: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message) } }, - queryChannelsResponse({ value }: queryChannelsResponseParams): EncodeObject { + queryNextSequenceReceiveResponse({ value }: queryNextSequenceReceiveResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelsResponse", value: QueryChannelsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message) } }, - msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject { + queryUpgradeErrorResponse({ value }: queryUpgradeErrorResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeErrorResponse", value: QueryUpgradeErrorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradeErrorResponse: Could not create message: ' + e.message) } }, - timeout({ value }: timeoutParams): EncodeObject { + msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Timeout: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message) } }, - queryNextSequenceReceiveResponse({ value }: queryNextSequenceReceiveResponseParams): EncodeObject { + acknowledgement({ value }: acknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message) } }, - queryUpgradeRequest({ value }: queryUpgradeRequestParams): EncodeObject { + queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUpgradeRequest", value: QueryUpgradeRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message) } }, - msgTimeout({ value }: msgTimeoutParams): EncodeObject { + queryNextSequenceReceiveRequest({ value }: queryNextSequenceReceiveRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message) } }, - msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject { + queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message) } }, @@ -2712,99 +2696,99 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - acknowledgement({ value }: acknowledgementParams): EncodeObject { + msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message) } }, - queryPacketCommitmentRequest({ value }: queryPacketCommitmentRequestParams): EncodeObject { + msgChannelUpgradeConfirm({ value }: msgChannelUpgradeConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest", value: QueryPacketCommitmentRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeConfirm", value: MsgChannelUpgradeConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeConfirm: Could not create message: ' + e.message) } }, - queryNextSequenceReceiveRequest({ value }: queryNextSequenceReceiveRequestParams): EncodeObject { + queryChannelsResponse({ value }: queryChannelsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelsResponse", value: QueryChannelsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelsResponse: Could not create message: ' + e.message) } }, - errorReceipt({ value }: errorReceiptParams): EncodeObject { + msgTimeoutOnCloseResponse({ value }: msgTimeoutOnCloseResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.ErrorReceipt", value: ErrorReceipt.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ErrorReceipt: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeConfirm({ value }: msgChannelUpgradeConfirmParams): EncodeObject { + msgChannelUpgradeCancelResponse({ value }: msgChannelUpgradeCancelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeConfirm", value: MsgChannelUpgradeConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeCancelResponse", value: MsgChannelUpgradeCancelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeCancelResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeTryResponse({ value }: msgChannelUpgradeTryResponseParams): EncodeObject { + msgChannelOpenInitResponse({ value }: msgChannelOpenInitResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTryResponse", value: MsgChannelUpgradeTryResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse", value: MsgChannelOpenInitResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeTryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenInitResponse: Could not create message: ' + e.message) } }, - packet({ value }: packetParams): EncodeObject { + msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Packet: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message) } }, - queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject { + msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message) } }, - queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject { + queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message) } }, - queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject { + queryUnreceivedAcksResponse({ value }: queryUnreceivedAcksResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksResponse", value: QueryUnreceivedAcksResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedAcksResponse: Could not create message: ' + e.message) } }, @@ -2816,67 +2800,83 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgChannelUpgradeAck({ value }: msgChannelUpgradeAckParams): EncodeObject { + msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeAck", value: MsgChannelUpgradeAck.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeAck: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message) } }, - msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject { + msgChannelUpgradeAckResponse({ value }: msgChannelUpgradeAckResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeAckResponse", value: MsgChannelUpgradeAckResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeAckResponse: Could not create message: ' + e.message) } }, - msgChannelUpgradeTimeoutResponse({ value }: msgChannelUpgradeTimeoutResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse", value: MsgChannelUpgradeTimeoutResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelUpgradeTimeoutResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - packetId({ value }: packetIdParams): EncodeObject { + queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketId: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message) } }, - upgrade({ value }: upgradeParams): EncodeObject { + msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Upgrade", value: Upgrade.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Upgrade: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message) } }, - msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject { + msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message) } }, - msgPruneAcknowledgements({ value }: msgPruneAcknowledgementsParams): EncodeObject { + msgChannelUpgradeInitResponse({ value }: msgChannelUpgradeInitResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgPruneAcknowledgements", value: MsgPruneAcknowledgements.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeInitResponse", value: MsgChannelUpgradeInitResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPruneAcknowledgements: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeInitResponse: Could not create message: ' + e.message) } }, - queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject { + msgChannelUpgradeTryResponse({ value }: msgChannelUpgradeTryResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTryResponse", value: MsgChannelUpgradeTryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelUpgradeTryResponse: Could not create message: ' + e.message) + } + }, + + queryPacketCommitmentRequest({ value }: queryPacketCommitmentRequestParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest", value: QueryPacketCommitmentRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryPacketCommitmentRequest: Could not create message: ' + e.message) + } + }, + + msgChannelUpgradeOpenResponse({ value }: msgChannelUpgradeOpenResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeOpenResponse", value: MsgChannelUpgradeOpenResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgChannelUpgradeOpenResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.core.channel.v1/registry.ts b/ts-client/ibc.core.channel.v1/registry.ts index 7148ab84..08437633 100755 --- a/ts-client/ibc.core.channel.v1/registry.ts +++ b/ts-client/ibc.core.channel.v1/registry.ts @@ -1,178 +1,178 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgChannelUpgradeConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeOpenResponse } from "./types/ibc/core/channel/v1/tx"; +import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { Packet } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelUpgradeAck } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelUpgradeCancelResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/channel/v1/tx"; +import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; +import { MsgChannelUpgradeOpen } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; +import { ErrorReceipt } from "./types/ibc/core/channel/v1/upgrade"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; -import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeErrorRequest } from "./types/ibc/core/channel/v1/query"; +import { Upgrade } from "./types/ibc/core/channel/v1/upgrade"; +import { UpgradeFields } from "./types/ibc/core/channel/v1/upgrade"; +import { MsgPruneAcknowledgementsResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTry } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeCancel } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgPruneAcknowledgementsResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; -import { Params } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelUpgradeInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelParamsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelParamsResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeTimeout } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { Timeout } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelParamsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { Channel } from "./types/ibc/core/channel/v1/channel"; import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { Channel } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeErrorRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelParamsResponse } from "./types/ibc/core/channel/v1/query"; -import { UpgradeFields } from "./types/ibc/core/channel/v1/upgrade"; -import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; -import { MsgChannelUpgradeAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeInit } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeTry } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeCancel } from "./types/ibc/core/channel/v1/tx"; +import { MsgPruneAcknowledgements } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUpgradeErrorResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeErrorResponse } from "./types/ibc/core/channel/v1/query"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeOpen } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeConfirm } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeCancelResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/channel/v1/tx"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeAckResponse } from "./types/ibc/core/channel/v1/tx"; +import { Params } from "./types/ibc/core/channel/v1/channel"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryUpgradeRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; -import { ErrorReceipt } from "./types/ibc/core/channel/v1/upgrade"; -import { MsgChannelUpgradeConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelUpgradeInitResponse } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelUpgradeTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelUpgradeAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelUpgradeTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { Upgrade } from "./types/ibc/core/channel/v1/upgrade"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgPruneAcknowledgements } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelUpgradeOpenResponse } from "./types/ibc/core/channel/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse", MsgChannelUpgradeConfirmResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeOpenResponse", MsgChannelUpgradeOpenResponse], + ["/ibc.core.channel.v1.Counterparty", Counterparty], + ["/ibc.core.channel.v1.Packet", Packet], + ["/ibc.core.channel.v1.MsgChannelUpgradeAck", MsgChannelUpgradeAck], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], ["/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", MsgChannelOpenConfirmResponse], - ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], - ["/ibc.core.channel.v1.QueryUnreceivedAcksResponse", QueryUnreceivedAcksResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeCancelResponse", MsgChannelUpgradeCancelResponse], - ["/ibc.core.channel.v1.QueryChannelsRequest", QueryChannelsRequest], - ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], - ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], - ["/ibc.core.channel.v1.MsgChannelUpgradeTimeout", MsgChannelUpgradeTimeout], - ["/ibc.core.channel.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.channel.v1.GenesisState", GenesisState], + ["/ibc.core.channel.v1.MsgChannelUpgradeOpen", MsgChannelUpgradeOpen], + ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", QueryPacketAcknowledgementsRequest], + ["/ibc.core.channel.v1.ErrorReceipt", ErrorReceipt], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], ["/ibc.core.channel.v1.MsgChannelOpenTryResponse", MsgChannelOpenTryResponse], - ["/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", MsgTimeoutOnCloseResponse], - ["/ibc.core.channel.v1.Counterparty", Counterparty], + ["/ibc.core.channel.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], + ["/ibc.core.channel.v1.QueryChannelsRequest", QueryChannelsRequest], + ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], + ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], + ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], + ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], + ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], + ["/ibc.core.channel.v1.QueryUpgradeErrorRequest", QueryUpgradeErrorRequest], + ["/ibc.core.channel.v1.Upgrade", Upgrade], + ["/ibc.core.channel.v1.UpgradeFields", UpgradeFields], + ["/ibc.core.channel.v1.MsgPruneAcknowledgementsResponse", MsgPruneAcknowledgementsResponse], ["/ibc.core.channel.v1.QueryUnreceivedAcksRequest", QueryUnreceivedAcksRequest], + ["/ibc.core.channel.v1.QueryUpgradeRequest", QueryUpgradeRequest], + ["/ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse", MsgChannelUpgradeTimeoutResponse], + ["/ibc.core.channel.v1.PacketId", PacketId], + ["/ibc.core.channel.v1.PacketSequence", PacketSequence], ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], - ["/ibc.core.channel.v1.MsgChannelUpgradeTry", MsgChannelUpgradeTry], - ["/ibc.core.channel.v1.QueryPacketReceiptRequest", QueryPacketReceiptRequest], - ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], - ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], - ["/ibc.core.channel.v1.MsgChannelUpgradeCancel", MsgChannelUpgradeCancel], - ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], - ["/ibc.core.channel.v1.MsgPruneAcknowledgementsResponse", MsgPruneAcknowledgementsResponse], - ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], - ["/ibc.core.channel.v1.Params", Params], + ["/ibc.core.channel.v1.MsgChannelUpgradeInit", MsgChannelUpgradeInit], + ["/ibc.core.channel.v1.QueryChannelParamsRequest", QueryChannelParamsRequest], + ["/ibc.core.channel.v1.QueryChannelParamsResponse", QueryChannelParamsResponse], + ["/ibc.core.channel.v1.PacketState", PacketState], + ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], ["/ibc.core.channel.v1.QueryChannelRequest", QueryChannelRequest], + ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], + ["/ibc.core.channel.v1.MsgChannelUpgradeTimeout", MsgChannelUpgradeTimeout], + ["/ibc.core.channel.v1.QueryPacketReceiptRequest", QueryPacketReceiptRequest], + ["/ibc.core.channel.v1.QueryUpgradeResponse", QueryUpgradeResponse], + ["/ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse", MsgChannelUpgradeConfirmResponse], + ["/ibc.core.channel.v1.Timeout", Timeout], + ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], ["/ibc.core.channel.v1.QueryConnectionChannelsRequest", QueryConnectionChannelsRequest], - ["/ibc.core.channel.v1.QueryChannelParamsRequest", QueryChannelParamsRequest], + ["/ibc.core.channel.v1.QueryChannelClientStateResponse", QueryChannelClientStateResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], + ["/ibc.core.channel.v1.Channel", Channel], ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], - ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], - ["/ibc.core.channel.v1.PacketState", PacketState], - ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], - ["/ibc.core.channel.v1.QueryPacketCommitmentsRequest", QueryPacketCommitmentsRequest], - ["/ibc.core.channel.v1.MsgChannelOpenInitResponse", MsgChannelOpenInitResponse], - ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], - ["/ibc.core.channel.v1.Channel", Channel], - ["/ibc.core.channel.v1.QueryChannelClientStateResponse", QueryChannelClientStateResponse], - ["/ibc.core.channel.v1.QueryUpgradeErrorRequest", QueryUpgradeErrorRequest], - ["/ibc.core.channel.v1.QueryUpgradeResponse", QueryUpgradeResponse], - ["/ibc.core.channel.v1.QueryChannelParamsResponse", QueryChannelParamsResponse], - ["/ibc.core.channel.v1.UpgradeFields", UpgradeFields], - ["/ibc.core.channel.v1.GenesisState", GenesisState], - ["/ibc.core.channel.v1.PacketSequence", PacketSequence], - ["/ibc.core.channel.v1.MsgChannelUpgradeAckResponse", MsgChannelUpgradeAckResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeInit", MsgChannelUpgradeInit], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], + ["/ibc.core.channel.v1.MsgChannelUpgradeTry", MsgChannelUpgradeTry], + ["/ibc.core.channel.v1.MsgChannelUpgradeCancel", MsgChannelUpgradeCancel], + ["/ibc.core.channel.v1.MsgPruneAcknowledgements", MsgPruneAcknowledgements], + ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], + ["/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", QueryNextSequenceReceiveResponse], + ["/ibc.core.channel.v1.QueryUpgradeErrorResponse", QueryUpgradeErrorResponse], ["/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", MsgChannelCloseConfirmResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeInitResponse", MsgChannelUpgradeInitResponse], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", QueryPacketAcknowledgementsRequest], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], + ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], + ["/ibc.core.channel.v1.QueryPacketCommitmentsRequest", QueryPacketCommitmentsRequest], + ["/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", QueryNextSequenceReceiveRequest], ["/ibc.core.channel.v1.QueryNextSequenceSendRequest", QueryNextSequenceSendRequest], - ["/ibc.core.channel.v1.QueryUpgradeErrorResponse", QueryUpgradeErrorResponse], + ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], - ["/ibc.core.channel.v1.MsgChannelUpgradeOpen", MsgChannelUpgradeOpen], + ["/ibc.core.channel.v1.MsgChannelUpgradeConfirm", MsgChannelUpgradeConfirm], ["/ibc.core.channel.v1.QueryChannelsResponse", QueryChannelsResponse], + ["/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", MsgTimeoutOnCloseResponse], + ["/ibc.core.channel.v1.MsgChannelUpgradeCancelResponse", MsgChannelUpgradeCancelResponse], + ["/ibc.core.channel.v1.MsgChannelOpenInitResponse", MsgChannelOpenInitResponse], + ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], + ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], + ["/ibc.core.channel.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], + ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], + ["/ibc.core.channel.v1.QueryUnreceivedAcksResponse", QueryUnreceivedAcksResponse], + ["/ibc.core.channel.v1.QueryNextSequenceSendResponse", QueryNextSequenceSendResponse], + ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], + ["/ibc.core.channel.v1.MsgChannelUpgradeAckResponse", MsgChannelUpgradeAckResponse], + ["/ibc.core.channel.v1.Params", Params], + ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], ["/ibc.core.channel.v1.MsgChannelOpenAckResponse", MsgChannelOpenAckResponse], - ["/ibc.core.channel.v1.Timeout", Timeout], - ["/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", QueryNextSequenceReceiveResponse], - ["/ibc.core.channel.v1.QueryUpgradeRequest", QueryUpgradeRequest], - ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], - ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], - ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], - ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], - ["/ibc.core.channel.v1.QueryPacketCommitmentRequest", QueryPacketCommitmentRequest], - ["/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", QueryNextSequenceReceiveRequest], - ["/ibc.core.channel.v1.ErrorReceipt", ErrorReceipt], - ["/ibc.core.channel.v1.MsgChannelUpgradeConfirm", MsgChannelUpgradeConfirm], + ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], + ["/ibc.core.channel.v1.MsgChannelUpgradeInitResponse", MsgChannelUpgradeInitResponse], ["/ibc.core.channel.v1.MsgChannelUpgradeTryResponse", MsgChannelUpgradeTryResponse], - ["/ibc.core.channel.v1.Packet", Packet], - ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], - ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], - ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], - ["/ibc.core.channel.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], - ["/ibc.core.channel.v1.QueryNextSequenceSendResponse", QueryNextSequenceSendResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeAck", MsgChannelUpgradeAck], - ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], - ["/ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse", MsgChannelUpgradeTimeoutResponse], - ["/ibc.core.channel.v1.PacketId", PacketId], - ["/ibc.core.channel.v1.Upgrade", Upgrade], - ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], - ["/ibc.core.channel.v1.MsgPruneAcknowledgements", MsgPruneAcknowledgements], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], + ["/ibc.core.channel.v1.QueryPacketCommitmentRequest", QueryPacketCommitmentRequest], + ["/ibc.core.channel.v1.MsgChannelUpgradeOpenResponse", MsgChannelUpgradeOpenResponse], ]; diff --git a/ts-client/ibc.core.client.v1/module.ts b/ts-client/ibc.core.client.v1/module.ts index 12745992..46efb847 100755 --- a/ts-client/ibc.core.client.v1/module.ts +++ b/ts-client/ibc.core.client.v1/module.ts @@ -6,126 +6,120 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; +import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; +import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { Height } from "./types/ibc/core/client/v1/client"; import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { Height } from "./types/ibc/core/client/v1/client"; -import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; -import { Params } from "./types/ibc/core/client/v1/client"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; -import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; - +import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -export { MsgSubmitMisbehaviour, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryClientParamsRequest, QueryUpgradedClientStateResponse, Height, ClientUpdateProposal, MsgCreateClientResponse, MsgRecoverClientResponse, QueryClientStatesRequest, MsgUpdateClient, MsgIBCSoftwareUpgradeResponse, QueryClientStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, MsgCreateClient, Params, QueryConsensusStateRequest, IdentifiedClientState, ClientConsensusStates, MsgUpdateParams, IdentifiedGenesisMetadata, QueryClientStateRequest, QueryClientParamsResponse, UpgradeProposal, MsgIBCSoftwareUpgrade, MsgUpdateClientResponse, MsgSubmitMisbehaviourResponse, MsgUpgradeClientResponse, QueryClientStateResponse, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryUpgradedClientStateRequest, QueryUpgradedConsensusStateRequest, GenesisMetadata, QueryUpgradedConsensusStateResponse, ConsensusStateWithHeight, MsgUpgradeClient, MsgUpdateParamsResponse, MsgRecoverClient, GenesisState }; -type sendMsgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour, - fee?: StdFee, - memo?: string -}; +export { ClientConsensusStates, QueryConsensusStateRequest, QueryUpgradedConsensusStateRequest, MsgCreateClient, MsgUpgradeClientResponse, MsgRecoverClient, Params, MsgUpdateParamsResponse, QueryClientStatesResponse, ClientUpdateProposal, UpgradeProposal, QueryClientStateRequest, QueryConsensusStateHeightsRequest, QueryClientStatusRequest, GenesisState, ConsensusStateWithHeight, Height, QueryConsensusStatesRequest, QueryClientParamsRequest, QueryUpgradedClientStateResponse, MsgCreateClientResponse, MsgIBCSoftwareUpgrade, IdentifiedClientState, QueryConsensusStateHeightsResponse, QueryClientParamsResponse, QueryUpgradedClientStateRequest, MsgUpdateClientResponse, MsgIBCSoftwareUpgradeResponse, QueryConsensusStateResponse, QueryConsensusStatesResponse, IdentifiedGenesisMetadata, QueryClientStateResponse, MsgRecoverClientResponse, MsgUpdateParams, GenesisMetadata, MsgSubmitMisbehaviourResponse, QueryClientStatesRequest, QueryClientStatusResponse, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour, QueryUpgradedConsensusStateResponse }; -type sendQueryConsensusStateResponseParams = { - value: QueryConsensusStateResponse, +type sendClientConsensusStatesParams = { + value: ClientConsensusStates, fee?: StdFee, memo?: string }; -type sendQueryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest, +type sendQueryConsensusStateRequestParams = { + value: QueryConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendQueryClientParamsRequestParams = { - value: QueryClientParamsRequest, +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendQueryUpgradedClientStateResponseParams = { - value: QueryUpgradedClientStateResponse, +type sendMsgCreateClientParams = { + value: MsgCreateClient, fee?: StdFee, memo?: string }; -type sendHeightParams = { - value: Height, +type sendMsgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse, fee?: StdFee, memo?: string }; -type sendClientUpdateProposalParams = { - value: ClientUpdateProposal, +type sendMsgRecoverClientParams = { + value: MsgRecoverClient, fee?: StdFee, memo?: string }; -type sendMsgCreateClientResponseParams = { - value: MsgCreateClientResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendMsgRecoverClientResponseParams = { - value: MsgRecoverClientResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryClientStatesRequestParams = { - value: QueryClientStatesRequest, +type sendQueryClientStatesResponseParams = { + value: QueryClientStatesResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateClientParams = { - value: MsgUpdateClient, +type sendClientUpdateProposalParams = { + value: ClientUpdateProposal, fee?: StdFee, memo?: string }; -type sendMsgIBCSoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse, +type sendUpgradeProposalParams = { + value: UpgradeProposal, fee?: StdFee, memo?: string }; -type sendQueryClientStatesResponseParams = { - value: QueryClientStatesResponse, +type sendQueryClientStateRequestParams = { + value: QueryClientStateRequest, fee?: StdFee, memo?: string }; @@ -136,98 +130,98 @@ type sendQueryConsensusStateHeightsRequestParams = { memo?: string }; -type sendQueryConsensusStateHeightsResponseParams = { - value: QueryConsensusStateHeightsResponse, +type sendQueryClientStatusRequestParams = { + value: QueryClientStatusRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateClientParams = { - value: MsgCreateClient, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendConsensusStateWithHeightParams = { + value: ConsensusStateWithHeight, fee?: StdFee, memo?: string }; -type sendQueryConsensusStateRequestParams = { - value: QueryConsensusStateRequest, +type sendHeightParams = { + value: Height, fee?: StdFee, memo?: string }; -type sendIdentifiedClientStateParams = { - value: IdentifiedClientState, +type sendQueryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest, fee?: StdFee, memo?: string }; -type sendClientConsensusStatesParams = { - value: ClientConsensusStates, +type sendQueryClientParamsRequestParams = { + value: QueryClientParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryUpgradedClientStateResponseParams = { + value: QueryUpgradedClientStateResponse, fee?: StdFee, memo?: string }; -type sendIdentifiedGenesisMetadataParams = { - value: IdentifiedGenesisMetadata, +type sendMsgCreateClientResponseParams = { + value: MsgCreateClientResponse, fee?: StdFee, memo?: string }; -type sendQueryClientStateRequestParams = { - value: QueryClientStateRequest, +type sendMsgIBCSoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade, fee?: StdFee, memo?: string }; -type sendQueryClientParamsResponseParams = { - value: QueryClientParamsResponse, +type sendIdentifiedClientStateParams = { + value: IdentifiedClientState, fee?: StdFee, memo?: string }; -type sendUpgradeProposalParams = { - value: UpgradeProposal, +type sendQueryConsensusStateHeightsResponseParams = { + value: QueryConsensusStateHeightsResponse, fee?: StdFee, memo?: string }; -type sendMsgIBCSoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade, +type sendQueryClientParamsResponseParams = { + value: QueryClientParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateClientResponseParams = { - value: MsgUpdateClientResponse, +type sendQueryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest, fee?: StdFee, memo?: string }; -type sendMsgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse, +type sendMsgUpdateClientResponseParams = { + value: MsgUpdateClientResponse, fee?: StdFee, memo?: string }; -type sendMsgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse, +type sendMsgIBCSoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse, fee?: StdFee, memo?: string }; -type sendQueryClientStateResponseParams = { - value: QueryClientStateResponse, +type sendQueryConsensusStateResponseParams = { + value: QueryConsensusStateResponse, fee?: StdFee, memo?: string }; @@ -238,26 +232,26 @@ type sendQueryConsensusStatesResponseParams = { memo?: string }; -type sendQueryClientStatusRequestParams = { - value: QueryClientStatusRequest, +type sendIdentifiedGenesisMetadataParams = { + value: IdentifiedGenesisMetadata, fee?: StdFee, memo?: string }; -type sendQueryClientStatusResponseParams = { - value: QueryClientStatusResponse, +type sendQueryClientStateResponseParams = { + value: QueryClientStateResponse, fee?: StdFee, memo?: string }; -type sendQueryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest, +type sendMsgRecoverClientResponseParams = { + value: MsgRecoverClientResponse, fee?: StdFee, memo?: string }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; @@ -268,209 +262,215 @@ type sendGenesisMetadataParams = { memo?: string }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type sendMsgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse, fee?: StdFee, memo?: string }; -type sendConsensusStateWithHeightParams = { - value: ConsensusStateWithHeight, +type sendQueryClientStatesRequestParams = { + value: QueryClientStatesRequest, fee?: StdFee, memo?: string }; -type sendMsgUpgradeClientParams = { - value: MsgUpgradeClient, +type sendQueryClientStatusResponseParams = { + value: QueryClientStatusResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgUpdateClientParams = { + value: MsgUpdateClient, fee?: StdFee, memo?: string }; -type sendMsgRecoverClientParams = { - value: MsgRecoverClient, +type sendMsgUpgradeClientParams = { + value: MsgUpgradeClient, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour, fee?: StdFee, memo?: string }; - -type msgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour, +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, + fee?: StdFee, + memo?: string }; -type queryConsensusStateResponseParams = { - value: QueryConsensusStateResponse, + +type clientConsensusStatesParams = { + value: ClientConsensusStates, }; -type queryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest, +type queryConsensusStateRequestParams = { + value: QueryConsensusStateRequest, }; -type queryClientParamsRequestParams = { - value: QueryClientParamsRequest, +type queryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, }; -type queryUpgradedClientStateResponseParams = { - value: QueryUpgradedClientStateResponse, +type msgCreateClientParams = { + value: MsgCreateClient, }; -type heightParams = { - value: Height, +type msgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse, }; -type clientUpdateProposalParams = { - value: ClientUpdateProposal, +type msgRecoverClientParams = { + value: MsgRecoverClient, }; -type msgCreateClientResponseParams = { - value: MsgCreateClientResponse, +type paramsParams = { + value: Params, }; -type msgRecoverClientResponseParams = { - value: MsgRecoverClientResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryClientStatesRequestParams = { - value: QueryClientStatesRequest, +type queryClientStatesResponseParams = { + value: QueryClientStatesResponse, }; -type msgUpdateClientParams = { - value: MsgUpdateClient, +type clientUpdateProposalParams = { + value: ClientUpdateProposal, }; -type msgIbcsoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse, +type upgradeProposalParams = { + value: UpgradeProposal, }; -type queryClientStatesResponseParams = { - value: QueryClientStatesResponse, +type queryClientStateRequestParams = { + value: QueryClientStateRequest, }; type queryConsensusStateHeightsRequestParams = { value: QueryConsensusStateHeightsRequest, }; -type queryConsensusStateHeightsResponseParams = { - value: QueryConsensusStateHeightsResponse, +type queryClientStatusRequestParams = { + value: QueryClientStatusRequest, }; -type msgCreateClientParams = { - value: MsgCreateClient, +type genesisStateParams = { + value: GenesisState, }; -type paramsParams = { - value: Params, +type consensusStateWithHeightParams = { + value: ConsensusStateWithHeight, }; -type queryConsensusStateRequestParams = { - value: QueryConsensusStateRequest, +type heightParams = { + value: Height, }; -type identifiedClientStateParams = { - value: IdentifiedClientState, +type queryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest, }; -type clientConsensusStatesParams = { - value: ClientConsensusStates, +type queryClientParamsRequestParams = { + value: QueryClientParamsRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryUpgradedClientStateResponseParams = { + value: QueryUpgradedClientStateResponse, }; -type identifiedGenesisMetadataParams = { - value: IdentifiedGenesisMetadata, +type msgCreateClientResponseParams = { + value: MsgCreateClientResponse, }; -type queryClientStateRequestParams = { - value: QueryClientStateRequest, +type msgIbcsoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade, }; -type queryClientParamsResponseParams = { - value: QueryClientParamsResponse, +type identifiedClientStateParams = { + value: IdentifiedClientState, }; -type upgradeProposalParams = { - value: UpgradeProposal, +type queryConsensusStateHeightsResponseParams = { + value: QueryConsensusStateHeightsResponse, }; -type msgIbcsoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade, +type queryClientParamsResponseParams = { + value: QueryClientParamsResponse, }; -type msgUpdateClientResponseParams = { - value: MsgUpdateClientResponse, +type queryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest, }; -type msgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse, +type msgUpdateClientResponseParams = { + value: MsgUpdateClientResponse, }; -type msgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse, +type msgIbcsoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse, }; -type queryClientStateResponseParams = { - value: QueryClientStateResponse, +type queryConsensusStateResponseParams = { + value: QueryConsensusStateResponse, }; type queryConsensusStatesResponseParams = { value: QueryConsensusStatesResponse, }; -type queryClientStatusRequestParams = { - value: QueryClientStatusRequest, +type identifiedGenesisMetadataParams = { + value: IdentifiedGenesisMetadata, }; -type queryClientStatusResponseParams = { - value: QueryClientStatusResponse, +type queryClientStateResponseParams = { + value: QueryClientStateResponse, }; -type queryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest, +type msgRecoverClientResponseParams = { + value: MsgRecoverClientResponse, }; -type queryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; type genesisMetadataParams = { value: GenesisMetadata, }; -type queryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type msgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse, }; -type consensusStateWithHeightParams = { - value: ConsensusStateWithHeight, +type queryClientStatesRequestParams = { + value: QueryClientStatesRequest, }; -type msgUpgradeClientParams = { - value: MsgUpgradeClient, +type queryClientStatusResponseParams = { + value: QueryClientStatusResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateClientParams = { + value: MsgUpdateClient, }; -type msgRecoverClientParams = { - value: MsgRecoverClient, +type msgUpgradeClientParams = { + value: MsgUpgradeClient, }; -type genesisStateParams = { - value: GenesisState, +type msgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour, +}; + +type queryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, }; @@ -503,185 +503,171 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviour: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitMisbehaviour({ value: MsgSubmitMisbehaviour.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitMisbehaviour: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise { + async sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendClientConsensusStates: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConsensusStateResponse({ value: QueryConsensusStateResponse.fromPartial(value) }) + let msg = this.clientConsensusStates({ value: ClientConsensusStates.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClientConsensusStates: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStatesRequest({ value, fee, memo }: sendQueryConsensusStatesRequestParams): Promise { + async sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStatesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConsensusStatesRequest({ value: QueryConsensusStatesRequest.fromPartial(value) }) + let msg = this.queryConsensusStateRequest({ value: QueryConsensusStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConsensusStatesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientParamsRequest({ value: QueryClientParamsRequest.fromPartial(value) }) + let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise { + async sendMsgCreateClient({ value, fee, memo }: sendMsgCreateClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateClient: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedClientStateResponse({ value: QueryUpgradedClientStateResponse.fromPartial(value) }) + let msg = this.msgCreateClient({ value: MsgCreateClient.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateClient: Could not broadcast Tx: '+ e.message) } }, - async sendHeight({ value, fee, memo }: sendHeightParams): Promise { + async sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendHeight: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpgradeClientResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.height({ value: Height.fromPartial(value) }) + let msg = this.msgUpgradeClientResponse({ value: MsgUpgradeClientResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendHeight: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpgradeClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise { + async sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientUpdateProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRecoverClient: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.clientUpdateProposal({ value: ClientUpdateProposal.fromPartial(value) }) + let msg = this.msgRecoverClient({ value: MsgRecoverClient.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendClientUpdateProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecoverClient: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateClientResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateClientResponse({ value: MsgCreateClientResponse.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecoverClientResponse({ value, fee, memo }: sendMsgRecoverClientResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClientResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRecoverClientResponse({ value: MsgRecoverClientResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRecoverClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise { + async sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStatesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStatesRequest({ value: QueryClientStatesRequest.fromPartial(value) }) + let msg = this.queryClientStatesResponse({ value: QueryClientStatesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStatesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise { + async sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateClient: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendClientUpdateProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateClient({ value: MsgUpdateClient.fromPartial(value) }) + let msg = this.clientUpdateProposal({ value: ClientUpdateProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClientUpdateProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: sendMsgIBCSoftwareUpgradeResponseParams): Promise { + async sendUpgradeProposal({ value, fee, memo }: sendUpgradeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendUpgradeProposal: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgIbcsoftwareUpgradeResponse({ value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }) + let msg = this.upgradeProposal({ value: UpgradeProposal.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise { + async sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStatesResponse({ value: QueryClientStatesResponse.fromPartial(value) }) + let msg = this.queryClientStateRequest({ value: QueryClientStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStatesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStateRequest: Could not broadcast Tx: '+ e.message) } }, @@ -699,227 +685,227 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise { + async sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStatusRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConsensusStateHeightsResponse({ value: QueryConsensusStateHeightsResponse.fromPartial(value) }) + let msg = this.queryClientStatusRequest({ value: QueryClientStatusRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatusRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateClient({ value, fee, memo }: sendMsgCreateClientParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateClient: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgCreateClient({ value: MsgCreateClient.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendConsensusStateWithHeight: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.consensusStateWithHeight({ value: ConsensusStateWithHeight.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConsensusStateWithHeight: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise { + async sendHeight({ value, fee, memo }: sendHeightParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendHeight: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConsensusStateRequest({ value: QueryConsensusStateRequest.fromPartial(value) }) + let msg = this.height({ value: Height.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHeight: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise { + async sendQueryConsensusStatesRequest({ value, fee, memo }: sendQueryConsensusStatesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedClientState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStatesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.identifiedClientState({ value: IdentifiedClientState.fromPartial(value) }) + let msg = this.queryConsensusStatesRequest({ value: QueryConsensusStatesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIdentifiedClientState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStatesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise { + async sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientConsensusStates: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.clientConsensusStates({ value: ClientConsensusStates.fromPartial(value) }) + let msg = this.queryClientParamsRequest({ value: QueryClientParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendClientConsensusStates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryUpgradedClientStateResponse({ value: QueryUpgradedClientStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise { + async sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedGenesisMetadata: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateClientResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.identifiedGenesisMetadata({ value: IdentifiedGenesisMetadata.fromPartial(value) }) + let msg = this.msgCreateClientResponse({ value: MsgCreateClientResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIdentifiedGenesisMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise { + async sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStateRequest({ value: QueryClientStateRequest.fromPartial(value) }) + let msg = this.msgIbcsoftwareUpgrade({ value: MsgIBCSoftwareUpgrade.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise { + async sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIdentifiedClientState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientParamsResponse({ value: QueryClientParamsResponse.fromPartial(value) }) + let msg = this.identifiedClientState({ value: IdentifiedClientState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedClientState: Could not broadcast Tx: '+ e.message) } }, - async sendUpgradeProposal({ value, fee, memo }: sendUpgradeProposalParams): Promise { + async sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpgradeProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.upgradeProposal({ value: UpgradeProposal.fromPartial(value) }) + let msg = this.queryConsensusStateHeightsResponse({ value: QueryConsensusStateHeightsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise { + async sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgIbcsoftwareUpgrade({ value: MsgIBCSoftwareUpgrade.fromPartial(value) }) + let msg = this.queryClientParamsResponse({ value: QueryClientParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateClientResponse({ value, fee, memo }: sendMsgUpdateClientResponseParams): Promise { + async sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateClientResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateClientResponse({ value: MsgUpdateClientResponse.fromPartial(value) }) + let msg = this.queryUpgradedClientStateRequest({ value: QueryUpgradedClientStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise { + async sendMsgUpdateClientResponse({ value, fee, memo }: sendMsgUpdateClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateClientResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitMisbehaviourResponse({ value: MsgSubmitMisbehaviourResponse.fromPartial(value) }) + let msg = this.msgUpdateClientResponse({ value: MsgUpdateClientResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise { + async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: sendMsgIBCSoftwareUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClientResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpgradeClientResponse({ value: MsgUpgradeClientResponse.fromPartial(value) }) + let msg = this.msgIbcsoftwareUpgradeResponse({ value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpgradeClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise { + async sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStateResponse({ value: QueryClientStateResponse.fromPartial(value) }) + let msg = this.queryConsensusStateResponse({ value: QueryConsensusStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, @@ -937,59 +923,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise { + async sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIdentifiedGenesisMetadata: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStatusRequest({ value: QueryClientStatusRequest.fromPartial(value) }) + let msg = this.identifiedGenesisMetadata({ value: IdentifiedGenesisMetadata.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStatusRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedGenesisMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise { + async sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientStatusResponse({ value: QueryClientStatusResponse.fromPartial(value) }) + let msg = this.queryClientStateResponse({ value: QueryClientStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientStatusResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise { + async sendMsgRecoverClientResponse({ value, fee, memo }: sendMsgRecoverClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRecoverClientResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedClientStateRequest({ value: QueryUpgradedClientStateRequest.fromPartial(value) }) + let msg = this.msgRecoverClientResponse({ value: MsgRecoverClientResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecoverClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, @@ -1007,192 +993,198 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { + async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }) + let msg = this.msgSubmitMisbehaviourResponse({ value: MsgSubmitMisbehaviourResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: '+ e.message) } }, - async sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise { + async sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendConsensusStateWithHeight: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStatesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.consensusStateWithHeight({ value: ConsensusStateWithHeight.fromPartial(value) }) + let msg = this.queryClientStatesRequest({ value: QueryClientStatesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendConsensusStateWithHeight: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise { + async sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClient: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientStatusResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpgradeClient({ value: MsgUpgradeClient.fromPartial(value) }) + let msg = this.queryClientStatusResponse({ value: QueryClientStatusResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpgradeClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatusResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateClient: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.msgUpdateClient({ value: MsgUpdateClient.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateClient: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise { + async sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClient: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpgradeClient: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgUpgradeClient({ value: MsgUpgradeClient.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendMsgUpgradeClient: Could not broadcast Tx: '+ e.message) + } + }, + + async sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgSubmitMisbehaviour: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRecoverClient({ value: MsgRecoverClient.fromPartial(value) }) + let msg = this.msgSubmitMisbehaviour({ value: MsgSubmitMisbehaviour.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRecoverClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitMisbehaviour: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message) - } - }, - - queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject { + clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message) } }, - queryConsensusStatesRequest({ value }: queryConsensusStatesRequestParams): EncodeObject { + queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message) } }, - queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject { + queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) } }, - queryUpgradedClientStateResponse({ value }: queryUpgradedClientStateResponseParams): EncodeObject { + msgCreateClient({ value }: msgCreateClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", value: QueryUpgradedClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message) } }, - height({ value }: heightParams): EncodeObject { + msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Height: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message) } }, - clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject { + msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientUpdateProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message) } }, - msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - msgRecoverClientResponse({ value }: msgRecoverClientResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject { + queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message) } }, - msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject { + clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: MsgUpdateClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateClient: Could not create message: ' + e.message) + throw new Error('TxClient:ClientUpdateProposal: Could not create message: ' + e.message) } }, - msgIbcsoftwareUpgradeResponse({ value }: msgIbcsoftwareUpgradeResponseParams): EncodeObject { + upgradeProposal({ value }: upgradeProposalParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.UpgradeProposal", value: UpgradeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:UpgradeProposal: Could not create message: ' + e.message) } }, - queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject { + queryClientStateRequest({ value }: queryClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", value: QueryClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStateRequest: Could not create message: ' + e.message) } }, @@ -1204,131 +1196,131 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryConsensusStateHeightsResponse({ value }: queryConsensusStateHeightsResponseParams): EncodeObject { + queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", value: QueryConsensusStateHeightsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateHeightsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message) } }, - msgCreateClient({ value }: msgCreateClientParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message) } }, - queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject { + height({ value }: heightParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Height: Could not create message: ' + e.message) } }, - identifiedClientState({ value }: identifiedClientStateParams): EncodeObject { + queryConsensusStatesRequest({ value }: queryConsensusStatesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message) } }, - clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject { + queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryUpgradedClientStateResponse({ value }: queryUpgradedClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", value: QueryUpgradedClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedClientStateResponse: Could not create message: ' + e.message) } }, - identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject { + msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message) } }, - queryClientStateRequest({ value }: queryClientStateRequestParams): EncodeObject { + msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", value: QueryClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message) } }, - queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject { + identifiedClientState({ value }: identifiedClientStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message) } }, - upgradeProposal({ value }: upgradeProposalParams): EncodeObject { + queryConsensusStateHeightsResponse({ value }: queryConsensusStateHeightsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.UpgradeProposal", value: UpgradeProposal.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", value: QueryConsensusStateHeightsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UpgradeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateHeightsResponse: Could not create message: ' + e.message) } }, - msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject { + queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message) } }, - msgUpdateClientResponse({ value }: msgUpdateClientResponseParams): EncodeObject { + queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message) } }, - msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject { + msgUpdateClientResponse({ value }: msgUpdateClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message) } }, - msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject { + msgIbcsoftwareUpgradeResponse({ value }: msgIbcsoftwareUpgradeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message) } }, - queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject { + queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message) } }, @@ -1340,35 +1332,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject { + identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message) } }, - queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject { + queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message) } }, - queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject { + msgRecoverClientResponse({ value }: msgRecoverClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message) } }, - queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, @@ -1380,51 +1372,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { + msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message) } }, - consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject { + queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message) } }, - msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject { + queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: MsgUpdateClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateClient: Could not create message: ' + e.message) } }, - msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject { + msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message) + } + }, + + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.core.client.v1/registry.ts b/ts-client/ibc.core.client.v1/registry.ts index ad62203a..8321ed8c 100755 --- a/ts-client/ibc.core.client.v1/registry.ts +++ b/ts-client/ibc.core.client.v1/registry.ts @@ -1,90 +1,90 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; +import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; +import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { Height } from "./types/ibc/core/client/v1/client"; import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { Height } from "./types/ibc/core/client/v1/client"; -import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; -import { Params } from "./types/ibc/core/client/v1/client"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; -import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], - ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], + ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], + ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], + ["/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], + ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], + ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], + ["/ibc.core.client.v1.Params", Params], + ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.core.client.v1.QueryClientStatesResponse", QueryClientStatesResponse], + ["/ibc.core.client.v1.ClientUpdateProposal", ClientUpdateProposal], + ["/ibc.core.client.v1.UpgradeProposal", UpgradeProposal], + ["/ibc.core.client.v1.QueryClientStateRequest", QueryClientStateRequest], + ["/ibc.core.client.v1.QueryConsensusStateHeightsRequest", QueryConsensusStateHeightsRequest], + ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], + ["/ibc.core.client.v1.GenesisState", GenesisState], + ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], + ["/ibc.core.client.v1.Height", Height], ["/ibc.core.client.v1.QueryConsensusStatesRequest", QueryConsensusStatesRequest], ["/ibc.core.client.v1.QueryClientParamsRequest", QueryClientParamsRequest], ["/ibc.core.client.v1.QueryUpgradedClientStateResponse", QueryUpgradedClientStateResponse], - ["/ibc.core.client.v1.Height", Height], - ["/ibc.core.client.v1.ClientUpdateProposal", ClientUpdateProposal], ["/ibc.core.client.v1.MsgCreateClientResponse", MsgCreateClientResponse], - ["/ibc.core.client.v1.MsgRecoverClientResponse", MsgRecoverClientResponse], - ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], - ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], - ["/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", MsgIBCSoftwareUpgradeResponse], - ["/ibc.core.client.v1.QueryClientStatesResponse", QueryClientStatesResponse], - ["/ibc.core.client.v1.QueryConsensusStateHeightsRequest", QueryConsensusStateHeightsRequest], - ["/ibc.core.client.v1.QueryConsensusStateHeightsResponse", QueryConsensusStateHeightsResponse], - ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], - ["/ibc.core.client.v1.Params", Params], - ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], + ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], ["/ibc.core.client.v1.IdentifiedClientState", IdentifiedClientState], - ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], - ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.core.client.v1.IdentifiedGenesisMetadata", IdentifiedGenesisMetadata], - ["/ibc.core.client.v1.QueryClientStateRequest", QueryClientStateRequest], + ["/ibc.core.client.v1.QueryConsensusStateHeightsResponse", QueryConsensusStateHeightsResponse], ["/ibc.core.client.v1.QueryClientParamsResponse", QueryClientParamsResponse], - ["/ibc.core.client.v1.UpgradeProposal", UpgradeProposal], - ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], + ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], ["/ibc.core.client.v1.MsgUpdateClientResponse", MsgUpdateClientResponse], - ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], - ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], - ["/ibc.core.client.v1.QueryClientStateResponse", QueryClientStateResponse], + ["/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", MsgIBCSoftwareUpgradeResponse], + ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], ["/ibc.core.client.v1.QueryConsensusStatesResponse", QueryConsensusStatesResponse], - ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], - ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], - ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], - ["/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/ibc.core.client.v1.IdentifiedGenesisMetadata", IdentifiedGenesisMetadata], + ["/ibc.core.client.v1.QueryClientStateResponse", QueryClientStateResponse], + ["/ibc.core.client.v1.MsgRecoverClientResponse", MsgRecoverClientResponse], + ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.core.client.v1.GenesisMetadata", GenesisMetadata], - ["/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], - ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], + ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], + ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], + ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], + ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], - ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], - ["/ibc.core.client.v1.GenesisState", GenesisState], + ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], + ["/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], ]; diff --git a/ts-client/ibc.core.connection.v1/module.ts b/ts-client/ibc.core.connection.v1/module.ts index f6f65b4c..e98ef8a1 100755 --- a/ts-client/ibc.core.connection.v1/module.ts +++ b/ts-client/ibc.core.connection.v1/module.ts @@ -6,48 +6,48 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; import { Params } from "./types/ibc/core/connection/v1/connection"; -import { Version } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; +import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; +import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { Version } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; -export { QueryClientConnectionsResponse, Counterparty, QueryClientConnectionsRequest, ConnectionPaths, IdentifiedConnection, QueryConnectionClientStateResponse, QueryConnectionParamsRequest, QueryConnectionResponse, QueryConnectionClientStateRequest, QueryConnectionParamsResponse, MsgConnectionOpenTryResponse, MsgConnectionOpenConfirm, QueryConnectionRequest, Params, Version, MsgConnectionOpenTry, QueryConnectionConsensusStateRequest, ClientPaths, MsgUpdateParamsResponse, ConnectionEnd, GenesisState, MsgUpdateParams, QueryConnectionConsensusStateResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, MsgConnectionOpenAckResponse, MsgConnectionOpenAck, QueryConnectionsRequest, QueryConnectionsResponse, MsgConnectionOpenConfirmResponse }; +export { Counterparty, QueryConnectionsResponse, QueryClientConnectionsRequest, MsgConnectionOpenTryResponse, IdentifiedConnection, MsgConnectionOpenTry, MsgConnectionOpenConfirm, MsgUpdateParamsResponse, Params, QueryConnectionRequest, QueryConnectionConsensusStateRequest, ConnectionPaths, QueryConnectionClientStateRequest, QueryConnectionParamsRequest, MsgUpdateParams, MsgConnectionOpenConfirmResponse, QueryConnectionsRequest, MsgConnectionOpenAck, MsgConnectionOpenAckResponse, ConnectionEnd, QueryConnectionConsensusStateResponse, QueryClientConnectionsResponse, QueryConnectionParamsResponse, ClientPaths, GenesisState, Version, QueryConnectionClientStateResponse, QueryConnectionResponse, MsgConnectionOpenInitResponse, MsgConnectionOpenInit }; -type sendQueryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse, +type sendCounterpartyParams = { + value: Counterparty, fee?: StdFee, memo?: string }; -type sendCounterpartyParams = { - value: Counterparty, +type sendQueryConnectionsResponseParams = { + value: QueryConnectionsResponse, fee?: StdFee, memo?: string }; @@ -58,8 +58,8 @@ type sendQueryClientConnectionsRequestParams = { memo?: string }; -type sendConnectionPathsParams = { - value: ConnectionPaths, +type sendMsgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse, fee?: StdFee, memo?: string }; @@ -70,86 +70,86 @@ type sendIdentifiedConnectionParams = { memo?: string }; -type sendQueryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse, +type sendMsgConnectionOpenTryParams = { + value: MsgConnectionOpenTry, fee?: StdFee, memo?: string }; -type sendQueryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest, +type sendMsgConnectionOpenConfirmParams = { + value: MsgConnectionOpenConfirm, fee?: StdFee, memo?: string }; -type sendQueryConnectionResponseParams = { - value: QueryConnectionResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse, +type sendQueryConnectionRequestParams = { + value: QueryConnectionRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse, +type sendQueryConnectionConsensusStateRequestParams = { + value: QueryConnectionConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenConfirmParams = { - value: MsgConnectionOpenConfirm, +type sendConnectionPathsParams = { + value: ConnectionPaths, fee?: StdFee, memo?: string }; -type sendQueryConnectionRequestParams = { - value: QueryConnectionRequest, +type sendQueryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest, fee?: StdFee, memo?: string }; -type sendVersionParams = { - value: Version, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenTryParams = { - value: MsgConnectionOpenTry, +type sendMsgConnectionOpenConfirmResponseParams = { + value: MsgConnectionOpenConfirmResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionConsensusStateRequestParams = { - value: QueryConnectionConsensusStateRequest, +type sendQueryConnectionsRequestParams = { + value: QueryConnectionsRequest, fee?: StdFee, memo?: string }; -type sendClientPathsParams = { - value: ClientPaths, +type sendMsgConnectionOpenAckParams = { + value: MsgConnectionOpenAck, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgConnectionOpenAckResponseParams = { + value: MsgConnectionOpenAckResponse, fee?: StdFee, memo?: string }; @@ -160,185 +160,185 @@ type sendConnectionEndParams = { memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse, +type sendQueryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenInitParams = { - value: MsgConnectionOpenInit, +type sendClientPathsParams = { + value: ClientPaths, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenAckResponseParams = { - value: MsgConnectionOpenAckResponse, +type sendVersionParams = { + value: Version, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenAckParams = { - value: MsgConnectionOpenAck, +type sendQueryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionsRequestParams = { - value: QueryConnectionsRequest, +type sendQueryConnectionResponseParams = { + value: QueryConnectionResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionsResponseParams = { - value: QueryConnectionsResponse, +type sendMsgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenConfirmResponseParams = { - value: MsgConnectionOpenConfirmResponse, +type sendMsgConnectionOpenInitParams = { + value: MsgConnectionOpenInit, fee?: StdFee, memo?: string }; -type queryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse, -}; - type counterpartyParams = { value: Counterparty, }; +type queryConnectionsResponseParams = { + value: QueryConnectionsResponse, +}; + type queryClientConnectionsRequestParams = { value: QueryClientConnectionsRequest, }; -type connectionPathsParams = { - value: ConnectionPaths, +type msgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse, }; type identifiedConnectionParams = { value: IdentifiedConnection, }; -type queryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse, +type msgConnectionOpenTryParams = { + value: MsgConnectionOpenTry, }; -type queryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest, +type msgConnectionOpenConfirmParams = { + value: MsgConnectionOpenConfirm, }; -type queryConnectionResponseParams = { - value: QueryConnectionResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest, +type paramsParams = { + value: Params, }; -type queryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse, +type queryConnectionRequestParams = { + value: QueryConnectionRequest, }; -type msgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse, +type queryConnectionConsensusStateRequestParams = { + value: QueryConnectionConsensusStateRequest, }; -type msgConnectionOpenConfirmParams = { - value: MsgConnectionOpenConfirm, +type connectionPathsParams = { + value: ConnectionPaths, }; -type queryConnectionRequestParams = { - value: QueryConnectionRequest, +type queryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest, }; -type paramsParams = { - value: Params, +type queryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest, }; -type versionParams = { - value: Version, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type msgConnectionOpenTryParams = { - value: MsgConnectionOpenTry, +type msgConnectionOpenConfirmResponseParams = { + value: MsgConnectionOpenConfirmResponse, }; -type queryConnectionConsensusStateRequestParams = { - value: QueryConnectionConsensusStateRequest, +type queryConnectionsRequestParams = { + value: QueryConnectionsRequest, }; -type clientPathsParams = { - value: ClientPaths, +type msgConnectionOpenAckParams = { + value: MsgConnectionOpenAck, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgConnectionOpenAckResponseParams = { + value: MsgConnectionOpenAckResponse, }; type connectionEndParams = { value: ConnectionEnd, }; -type genesisStateParams = { - value: GenesisState, +type queryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse, }; -type queryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse, +type queryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse, }; -type msgConnectionOpenInitParams = { - value: MsgConnectionOpenInit, +type clientPathsParams = { + value: ClientPaths, }; -type msgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgConnectionOpenAckResponseParams = { - value: MsgConnectionOpenAckResponse, +type versionParams = { + value: Version, }; -type msgConnectionOpenAckParams = { - value: MsgConnectionOpenAck, +type queryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse, }; -type queryConnectionsRequestParams = { - value: QueryConnectionsRequest, +type queryConnectionResponseParams = { + value: QueryConnectionResponse, }; -type queryConnectionsResponseParams = { - value: QueryConnectionsResponse, +type msgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse, }; -type msgConnectionOpenConfirmResponseParams = { - value: MsgConnectionOpenConfirmResponse, +type msgConnectionOpenInitParams = { + value: MsgConnectionOpenInit, }; @@ -371,31 +371,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise { + async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientConnectionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendCounterparty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryClientConnectionsResponse({ value: QueryClientConnectionsResponse.fromPartial(value) }) + let msg = this.counterparty({ value: Counterparty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryClientConnectionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) } }, - async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { + async sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCounterparty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.counterparty({ value: Counterparty.fromPartial(value) }) + let msg = this.queryConnectionsResponse({ value: QueryConnectionsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -413,17 +413,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendConnectionPaths({ value, fee, memo }: sendConnectionPathsParams): Promise { + async sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendConnectionPaths: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.connectionPaths({ value: ConnectionPaths.fromPartial(value) }) + let msg = this.msgConnectionOpenTryResponse({ value: MsgConnectionOpenTryResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendConnectionPaths: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: '+ e.message) } }, @@ -441,199 +441,199 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryConnectionClientStateResponse({ value, fee, memo }: sendQueryConnectionClientStateResponseParams): Promise { + async sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionClientStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenTry: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionClientStateResponse({ value: QueryConnectionClientStateResponse.fromPartial(value) }) + let msg = this.msgConnectionOpenTry({ value: MsgConnectionOpenTry.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenTry: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionParamsRequest({ value, fee, memo }: sendQueryConnectionParamsRequestParams): Promise { + async sendMsgConnectionOpenConfirm({ value, fee, memo }: sendMsgConnectionOpenConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenConfirm: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionParamsRequest({ value: QueryConnectionParamsRequest.fromPartial(value) }) + let msg = this.msgConnectionOpenConfirm({ value: MsgConnectionOpenConfirm.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionResponse({ value: QueryConnectionResponse.fromPartial(value) }) + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionClientStateRequest({ value, fee, memo }: sendQueryConnectionClientStateRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionClientStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionClientStateRequest({ value: QueryConnectionClientStateRequest.fromPartial(value) }) + let msg = this.params({ value: Params.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise { + async sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionParamsResponse({ value: QueryConnectionParamsResponse.fromPartial(value) }) + let msg = this.queryConnectionRequest({ value: QueryConnectionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise { + async sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenTryResponse({ value: MsgConnectionOpenTryResponse.fromPartial(value) }) + let msg = this.queryConnectionConsensusStateRequest({ value: QueryConnectionConsensusStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenConfirm({ value, fee, memo }: sendMsgConnectionOpenConfirmParams): Promise { + async sendConnectionPaths({ value, fee, memo }: sendConnectionPathsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirm: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendConnectionPaths: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenConfirm({ value: MsgConnectionOpenConfirm.fromPartial(value) }) + let msg = this.connectionPaths({ value: ConnectionPaths.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConnectionPaths: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise { + async sendQueryConnectionClientStateRequest({ value, fee, memo }: sendQueryConnectionClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionClientStateRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionRequest({ value: QueryConnectionRequest.fromPartial(value) }) + let msg = this.queryConnectionClientStateRequest({ value: QueryConnectionClientStateRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryConnectionParamsRequest({ value, fee, memo }: sendQueryConnectionParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionParamsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.params({ value: Params.fromPartial(value) }) + let msg = this.queryConnectionParamsRequest({ value: QueryConnectionParamsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendVersion({ value, fee, memo }: sendVersionParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendVersion: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.version({ value: Version.fromPartial(value) }) + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendVersion: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise { + async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenTry: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenTry({ value: MsgConnectionOpenTry.fromPartial(value) }) + let msg = this.msgConnectionOpenConfirmResponse({ value: MsgConnectionOpenConfirmResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenTry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise { + async sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionConsensusStateRequest({ value: QueryConnectionConsensusStateRequest.fromPartial(value) }) + let msg = this.queryConnectionsRequest({ value: QueryConnectionsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise { + async sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientPaths: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenAck: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.clientPaths({ value: ClientPaths.fromPartial(value) }) + let msg = this.msgConnectionOpenAck({ value: MsgConnectionOpenAck.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendClientPaths: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenAck: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + let msg = this.msgConnectionOpenAckResponse({ value: MsgConnectionOpenAckResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: '+ e.message) } }, @@ -651,160 +651,160 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) + let msg = this.queryConnectionConsensusStateResponse({ value: QueryConnectionConsensusStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientConnectionsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }) + let msg = this.queryClientConnectionsResponse({ value: QueryClientConnectionsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientConnectionsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise { + async sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionParamsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionConsensusStateResponse({ value: QueryConnectionConsensusStateResponse.fromPartial(value) }) + let msg = this.queryConnectionParamsResponse({ value: QueryConnectionParamsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise { + async sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendClientPaths: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenInit({ value: MsgConnectionOpenInit.fromPartial(value) }) + let msg = this.clientPaths({ value: ClientPaths.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClientPaths: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenInitResponse({ value: MsgConnectionOpenInitResponse.fromPartial(value) }) + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise { + async sendVersion({ value, fee, memo }: sendVersionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendVersion: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenAckResponse({ value: MsgConnectionOpenAckResponse.fromPartial(value) }) + let msg = this.version({ value: Version.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVersion: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise { + async sendQueryConnectionClientStateResponse({ value, fee, memo }: sendQueryConnectionClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAck: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionClientStateResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenAck({ value: MsgConnectionOpenAck.fromPartial(value) }) + let msg = this.queryConnectionClientStateResponse({ value: QueryConnectionClientStateResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise { + async sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConnectionResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionsRequest({ value: QueryConnectionsRequest.fromPartial(value) }) + let msg = this.queryConnectionResponse({ value: QueryConnectionResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise { + async sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryConnectionsResponse({ value: QueryConnectionsResponse.fromPartial(value) }) + let msg = this.msgConnectionOpenInitResponse({ value: MsgConnectionOpenInitResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryConnectionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise { + async sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgConnectionOpenInit: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgConnectionOpenConfirmResponse({ value: MsgConnectionOpenConfirmResponse.fromPartial(value) }) + let msg = this.msgConnectionOpenInit({ value: MsgConnectionOpenInit.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenInit: Could not broadcast Tx: '+ e.message) } }, - queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject { + counterparty({ value }: counterpartyParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) } }, - counterparty({ value }: counterpartyParams): EncodeObject { + queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionsResponse: Could not create message: ' + e.message) } }, @@ -816,11 +816,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - connectionPaths({ value }: connectionPathsParams): EncodeObject { + msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message) } }, @@ -832,115 +832,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryConnectionClientStateResponse({ value }: queryConnectionClientStateResponseParams): EncodeObject { + msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: MsgConnectionOpenTry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenTry: Could not create message: ' + e.message) } }, - queryConnectionParamsRequest({ value }: queryConnectionParamsRequestParams): EncodeObject { + msgConnectionOpenConfirm({ value }: msgConnectionOpenConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest", value: QueryConnectionParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: MsgConnectionOpenConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenConfirm: Could not create message: ' + e.message) } }, - queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject { + queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject { + queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenConfirm({ value }: msgConnectionOpenConfirmParams): EncodeObject { + connectionPaths({ value }: connectionPathsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: MsgConnectionOpenConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message) } }, - queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject { + queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryConnectionParamsRequest({ value }: queryConnectionParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest", value: QueryConnectionParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message) } }, - version({ value }: versionParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Version: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject { + msgConnectionOpenConfirmResponse({ value }: msgConnectionOpenConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: MsgConnectionOpenTry.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", value: MsgConnectionOpenConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenTry: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenConfirmResponse: Could not create message: ' + e.message) } }, - queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject { + queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest", value: QueryConnectionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionsRequest: Could not create message: ' + e.message) } }, - clientPaths({ value }: clientPathsParams): EncodeObject { + msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.ClientPaths", value: ClientPaths.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientPaths: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgConnectionOpenAckResponse({ value }: msgConnectionOpenAckResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse", value: MsgConnectionOpenAckResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenAckResponse: Could not create message: ' + e.message) } }, @@ -952,83 +952,83 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message) } }, - queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject { + queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message) } }, - msgConnectionOpenInit({ value }: msgConnectionOpenInitParams): EncodeObject { + clientPaths({ value }: clientPathsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: MsgConnectionOpenInit.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.ClientPaths", value: ClientPaths.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenInit: Could not create message: ' + e.message) + throw new Error('TxClient:ClientPaths: Could not create message: ' + e.message) } }, - msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgConnectionOpenAckResponse({ value }: msgConnectionOpenAckResponseParams): EncodeObject { + version({ value }: versionParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse", value: MsgConnectionOpenAckResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenAckResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Version: Could not create message: ' + e.message) } }, - msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject { + queryConnectionClientStateResponse({ value }: queryConnectionClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message) } }, - queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject { + queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest", value: QueryConnectionsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message) } }, - queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject { + msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message) } }, - msgConnectionOpenConfirmResponse({ value }: msgConnectionOpenConfirmResponseParams): EncodeObject { + msgConnectionOpenInit({ value }: msgConnectionOpenInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", value: MsgConnectionOpenConfirmResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: MsgConnectionOpenInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenInit: Could not create message: ' + e.message) } }, diff --git a/ts-client/ibc.core.connection.v1/registry.ts b/ts-client/ibc.core.connection.v1/registry.ts index 47d70010..eaad9d9d 100755 --- a/ts-client/ibc.core.connection.v1/registry.ts +++ b/ts-client/ibc.core.connection.v1/registry.ts @@ -1,66 +1,66 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; import { Params } from "./types/ibc/core/connection/v1/connection"; -import { Version } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; +import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; +import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { Version } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.connection.v1.QueryClientConnectionsResponse", QueryClientConnectionsResponse], ["/ibc.core.connection.v1.Counterparty", Counterparty], + ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], ["/ibc.core.connection.v1.QueryClientConnectionsRequest", QueryClientConnectionsRequest], - ["/ibc.core.connection.v1.ConnectionPaths", ConnectionPaths], - ["/ibc.core.connection.v1.IdentifiedConnection", IdentifiedConnection], - ["/ibc.core.connection.v1.QueryConnectionClientStateResponse", QueryConnectionClientStateResponse], - ["/ibc.core.connection.v1.QueryConnectionParamsRequest", QueryConnectionParamsRequest], - ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], - ["/ibc.core.connection.v1.QueryConnectionClientStateRequest", QueryConnectionClientStateRequest], - ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], ["/ibc.core.connection.v1.MsgConnectionOpenTryResponse", MsgConnectionOpenTryResponse], + ["/ibc.core.connection.v1.IdentifiedConnection", IdentifiedConnection], + ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], - ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], + ["/ibc.core.connection.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/ibc.core.connection.v1.Params", Params], - ["/ibc.core.connection.v1.Version", Version], - ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], + ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], ["/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", QueryConnectionConsensusStateRequest], - ["/ibc.core.connection.v1.ClientPaths", ClientPaths], - ["/ibc.core.connection.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.connection.v1.ConnectionEnd", ConnectionEnd], - ["/ibc.core.connection.v1.GenesisState", GenesisState], + ["/ibc.core.connection.v1.ConnectionPaths", ConnectionPaths], + ["/ibc.core.connection.v1.QueryConnectionClientStateRequest", QueryConnectionClientStateRequest], + ["/ibc.core.connection.v1.QueryConnectionParamsRequest", QueryConnectionParamsRequest], ["/ibc.core.connection.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", MsgConnectionOpenConfirmResponse], + ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], + ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], + ["/ibc.core.connection.v1.MsgConnectionOpenAckResponse", MsgConnectionOpenAckResponse], + ["/ibc.core.connection.v1.ConnectionEnd", ConnectionEnd], ["/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", QueryConnectionConsensusStateResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.QueryClientConnectionsResponse", QueryClientConnectionsResponse], + ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], + ["/ibc.core.connection.v1.ClientPaths", ClientPaths], + ["/ibc.core.connection.v1.GenesisState", GenesisState], + ["/ibc.core.connection.v1.Version", Version], + ["/ibc.core.connection.v1.QueryConnectionClientStateResponse", QueryConnectionClientStateResponse], + ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], ["/ibc.core.connection.v1.MsgConnectionOpenInitResponse", MsgConnectionOpenInitResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenAckResponse", MsgConnectionOpenAckResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], - ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], - ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", MsgConnectionOpenConfirmResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], ]; diff --git a/x/keyshare/client/cli/tx_general_key_share.go b/x/keyshare/client/cli/tx_general_key_share.go index 9cd3e647..3122c52d 100644 --- a/x/keyshare/client/cli/tx_general_key_share.go +++ b/x/keyshare/client/cli/tx_general_key_share.go @@ -38,6 +38,7 @@ func CmdCreateGeneralKeyShare() *cobra.Command { argKeyShare, argKeyShareIndex, ) + if err := msg.ValidateBasic(); err != nil { return err } diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 87d48727..3caf7a18 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -42,11 +42,7 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { activePubKey = types.ActivePubKey(queuedPubKey) } - reqCountString := k.GetRequestCount(ctx) - reqCount, _ := strconv.ParseUint(reqCountString, 10, 64) - reqCount = reqCount + 1 - - id := types.IdentityFromRequestCount(reqCount) + id := types.IdentityFromRequestID(req.GetRequestId()) var keyshareRequest types.KeyShareRequest @@ -57,7 +53,6 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { keyshareRequest.RequestId = req.GetRequestId() k.SetKeyShareRequest(ctx, keyshareRequest) - k.SetRequestCount(ctx, reqCount) entry := peptypes.GenEncTxExecutionQueue{ Creator: req.Creator, diff --git a/x/keyshare/types/key_key_share_request.go b/x/keyshare/types/key_key_share_request.go index 1e54ffe1..7e7b46db 100644 --- a/x/keyshare/types/key_key_share_request.go +++ b/x/keyshare/types/key_key_share_request.go @@ -21,6 +21,13 @@ func IdentityFromRequestCount( return identity } +func IdentityFromRequestID( + reqID string, +) string { + identity := reqID + "/id" + return identity +} + func RequestCountFromIdentity( identity string, ) uint64 { diff --git a/x/keyshare/types/msg_general_key_share.go b/x/keyshare/types/msg_general_key_share.go index 6e82fac9..b45db2d9 100644 --- a/x/keyshare/types/msg_general_key_share.go +++ b/x/keyshare/types/msg_general_key_share.go @@ -14,7 +14,6 @@ func NewMsgCreateGeneralKeyShare( idValue string, keyShare string, keyShareIndex uint64, - ) *MsgCreateGeneralKeyShare { return &MsgCreateGeneralKeyShare{ Creator: creator, diff --git a/x/pep/client/cli/tx_request_general_keyshare.go b/x/pep/client/cli/tx_request_general_keyshare.go index 2337a316..19b1f25a 100644 --- a/x/pep/client/cli/tx_request_general_keyshare.go +++ b/x/pep/client/cli/tx_request_general_keyshare.go @@ -15,9 +15,9 @@ var _ = strconv.Itoa(0) func CmdRequestGeneralKeyshare() *cobra.Command { cmd := &cobra.Command{ - Use: "request-general-keyshare [estimated-delay]", + Use: "request-general-keyshare [estimated-delay] [req-id]", Short: "Broadcast message request-general-keyshare", - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { argDelay, err := time.ParseDuration(args[0]) if err != nil { @@ -32,6 +32,7 @@ func CmdRequestGeneralKeyshare() *cobra.Command { msg := types.NewMsgRequestGeneralKeyshare( clientCtx.GetFromAddress().String(), argDelay, + args[1], ) if err := msg.ValidateBasic(); err != nil { return err diff --git a/x/pep/keeper/msg_request_general_key_share.go b/x/pep/keeper/msg_request_general_key_share.go index f0b3d2ae..980262e8 100644 --- a/x/pep/keeper/msg_request_general_key_share.go +++ b/x/pep/keeper/msg_request_general_key_share.go @@ -3,7 +3,6 @@ package keeper import ( "context" "errors" - "strconv" "time" commontypes "github.com/Fairblock/fairyring/x/common/types" @@ -20,33 +19,41 @@ import ( func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgRequestGeneralKeyshare) (*types.MsgRequestGeneralKeyshareResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - params := k.GetParams(ctx) - reqCountString := k.GetRequestCount(ctx) - reqCount, _ := strconv.ParseUint(reqCountString, 10, 64) - reqCount = reqCount + 1 + reqID, found := k.GetRequestId(ctx, msg.Creator, msg.ReqId) + if found || len(reqID.ReqId) != 0 { + return nil, types.ErrReqIDAlreadyExists + } + + requestIDStr := types.GetReqIDStr(msg.Creator, msg.ReqId) if msg.EstimatedDelay == nil { return &types.MsgRequestGeneralKeyshareResponse{}, errors.New("could not parse estimated delay") } + k.SetRequestId(ctx, types.RequestId{ + Creator: msg.Creator, + ReqId: msg.ReqId, + }) + + params := k.GetParams(ctx) + if params.IsSourceChain { entry := commontypes.RequestAggrKeyshare{ Creator: msg.Creator, - Id: &commontypes.RequestAggrKeyshare_RequestId{RequestId: reqCountString}, + Id: &commontypes.RequestAggrKeyshare_RequestId{RequestId: requestIDStr}, EstimatedDelay: msg.EstimatedDelay, } k.SetReqQueueEntry(ctx, entry) - k.SetRequestCount(ctx, reqCount) return &types.MsgRequestGeneralKeyshareResponse{ - ReqId: reqCountString, + ReqId: requestIDStr, }, nil } else { packetData := kstypes.RequestAggrKeysharePacketData{ Requester: msg.Creator, Id: &kstypes.RequestAggrKeysharePacketData_RequestId{ - RequestId: reqCountString, + RequestId: requestIDStr, }, EstimatedDelay: msg.EstimatedDelay, } @@ -62,18 +69,16 @@ func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgR uint64(timeoutTimestamp), ) - k.SetRequestCount(ctx, reqCount) - ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeRequestKeyshare, sdk.NewAttribute(types.AttributeKeyCreator, msg.Creator), - sdk.NewAttribute(types.AttributeKeyRequestID, reqCountString), + sdk.NewAttribute(types.AttributeKeyRequestID, requestIDStr), ), ) return &types.MsgRequestGeneralKeyshareResponse{ - ReqId: reqCountString, + ReqId: requestIDStr, }, nil } } diff --git a/x/pep/keeper/request_id.go b/x/pep/keeper/request_id.go new file mode 100644 index 00000000..19e8b93f --- /dev/null +++ b/x/pep/keeper/request_id.go @@ -0,0 +1,59 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + "github.com/Fairblock/fairyring/x/pep/types" + "github.com/cosmos/cosmos-sdk/runtime" +) + +// SetRequestId set a specific requestId in the store from its index +func (k Keeper) SetRequestId(ctx context.Context, requestId types.RequestId) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.RequestIdKeyPrefix)) + b := k.cdc.MustMarshal(&requestId) + store.Set(types.RequestIdKey( + requestId.Creator, + requestId.ReqId, + ), b) +} + +// GetRequestId returns a requestId from its index +func (k Keeper) GetRequestId( + ctx context.Context, + creator string, + reqID string, +) (val types.RequestId, found bool) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.RequestIdKeyPrefix)) + + b := store.Get(types.RequestIdKey( + creator, + reqID, + )) + if b == nil { + return val, false + } + + k.cdc.MustUnmarshal(b, &val) + return val, true +} + +// GetAllRequestId returns all requestId +func (k Keeper) GetAllRequestId(ctx context.Context) (list []types.RequestId) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.RequestIdKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.RequestId + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} diff --git a/x/pep/keeper/request_id_test.go b/x/pep/keeper/request_id_test.go new file mode 100644 index 00000000..a8eb23f9 --- /dev/null +++ b/x/pep/keeper/request_id_test.go @@ -0,0 +1,66 @@ +package keeper_test + +import ( + "context" + "strconv" + "testing" + + "github.com/Fairblock/fairyring/x/pep/keeper" + "github.com/Fairblock/fairyring/x/pep/types" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" + "github.com/Fairblock/fairyring/testutil/nullify" + "github.com/stretchr/testify/require" +) + +// Prevent strconv unused error +var _ = strconv.IntSize + +func createNRequestId(keeper keeper.Keeper, ctx context.Context, n int) []types.RequestId { + items := make([]types.RequestId, n) + for i := range items { + items[i].Creator = strconv.Itoa(i) + + keeper.SetRequestId(ctx, items[i]) + } + return items +} + +func TestRequestIdGet(t *testing.T) { + keeper, ctx := keepertest.PepKeeper(t) + items := createNRequestId(keeper, ctx, 10) + for _, item := range items { + rst, found := keeper.GetRequestId(ctx, + item.Creator, + + ) + require.True(t, found) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&rst), + ) + } +} +func TestRequestIdRemove(t *testing.T) { + keeper, ctx := keepertest.PepKeeper(t) + items := createNRequestId(keeper, ctx, 10) + for _, item := range items { + keeper.RemoveRequestId(ctx, + item.Creator, + + ) + _, found := keeper.GetRequestId(ctx, + item.Creator, + + ) + require.False(t, found) + } +} + +func TestRequestIdGetAll(t *testing.T) { + keeper, ctx := keepertest.PepKeeper(t) + items := createNRequestId(keeper, ctx, 10) + require.ElementsMatch(t, + nullify.Fill(items), + nullify.Fill(keeper.GetAllRequestId(ctx)), + ) +} diff --git a/x/pep/module/genesis.go b/x/pep/module/genesis.go index b80652c8..702c5bef 100644 --- a/x/pep/module/genesis.go +++ b/x/pep/module/genesis.go @@ -30,7 +30,11 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetActivePubKey(ctx, genState.ActivePubKey) // Set queued public key k.SetQueuedPubKey(ctx, genState.QueuedPubKey) - // this line is used by starport scaffolding # genesis/module/init + // Set all the requestId +for _, elem := range genState.RequestIdList { + k.SetRequestId(ctx, elem) +} +// this line is used by starport scaffolding # genesis/module/init // this line is used by starport scaffolding # genesis/module/init k.SetPort(ctx, genState.PortId) @@ -58,7 +62,8 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.Params = k.GetParams(ctx) genesis.PortId = k.GetPort(ctx) - // this line is used by starport scaffolding # genesis/module/export + genesis.RequestIdList = k.GetAllRequestId(ctx) +// this line is used by starport scaffolding # genesis/module/export genesis.EncryptedTxArray = k.GetAllEncryptedArray(ctx) genesis.PepNonceList = k.GetAllPepNonce(ctx) diff --git a/x/pep/module/genesis_test.go b/x/pep/module/genesis_test.go index bddc881e..7901454a 100644 --- a/x/pep/module/genesis_test.go +++ b/x/pep/module/genesis_test.go @@ -15,7 +15,15 @@ func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ Params: types.DefaultParams(), PortId: types.PortID, - // this line is used by starport scaffolding # genesis/test/state + RequestIdList: []types.RequestId{ + { + Creator: "0", +}, + { + Creator: "1", +}, + }, + // this line is used by starport scaffolding # genesis/test/state } k, ctx := keepertest.PepKeeper(t) @@ -28,5 +36,6 @@ func TestGenesis(t *testing.T) { require.Equal(t, genesisState.PortId, got.PortId) - // this line is used by starport scaffolding # genesis/test/assert + require.ElementsMatch(t, genesisState.RequestIdList, got.RequestIdList) +// this line is used by starport scaffolding # genesis/test/assert } diff --git a/x/pep/types/errors.go b/x/pep/types/errors.go index 7d314e04..1f1ca45a 100644 --- a/x/pep/types/errors.go +++ b/x/pep/types/errors.go @@ -14,4 +14,5 @@ var ( ErrInvalidIdentity = sdkerrors.Register(ModuleName, 1601, "Invalid identity") ErrInvalidMsgCreator = sdkerrors.Register(ModuleName, 1700, "Invalid msg creator address") ErrActivePubKeyNotFound = sdkerrors.Register(ModuleName, 1800, "Active public key not found") + ErrReqIDAlreadyExists = sdkerrors.Register(ModuleName, 1900, "Request ID already exists") ) diff --git a/x/pep/types/genesis.go b/x/pep/types/genesis.go index a7d43801..7904164e 100644 --- a/x/pep/types/genesis.go +++ b/x/pep/types/genesis.go @@ -27,6 +27,16 @@ func (gs GenesisState) Validate() error { if err := host.PortIdentifierValidator(gs.PortId); err != nil { return err } + // Check for duplicated index in requestId + requestIdIndexMap := make(map[string]struct{}) + + for _, elem := range gs.RequestIdList { + index := string(RequestIdKey(elem.Creator, elem.ReqId)) + if _, ok := requestIdIndexMap[index]; ok { + return fmt.Errorf("duplicated index for requestId") + } + requestIdIndexMap[index] = struct{}{} + } // this line is used by starport scaffolding # genesis/types/validate encryptedTxArrIndexMap := make(map[string]struct{}) for height, elem := range gs.EncryptedTxArray { diff --git a/x/pep/types/genesis.pb.go b/x/pep/types/genesis.pb.go index 9a7159ed..a48a4264 100644 --- a/x/pep/types/genesis.pb.go +++ b/x/pep/types/genesis.pb.go @@ -37,6 +37,7 @@ type GenesisState struct { ActivePubKey types.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey"` QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + RequestIdList []RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -128,6 +129,13 @@ func (m *GenesisState) GetRequestCount() uint64 { return 0 } +func (m *GenesisState) GetRequestIdList() []RequestId { + if m != nil { + return m.RequestIdList + } + return nil +} + func init() { proto.RegisterType((*GenesisState)(nil), "fairyring.pep.GenesisState") } @@ -135,37 +143,38 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/genesis.proto", fileDescriptor_c02ca82ac7a8fa8f) } var fileDescriptor_c02ca82ac7a8fa8f = []byte{ - // 466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0x63, 0x1a, 0xa5, 0x64, 0x9b, 0x4a, 0xb0, 0x02, 0x6a, 0x05, 0xe1, 0x1a, 0x7a, 0xb1, - 0x7a, 0xb0, 0xa5, 0x72, 0xe1, 0x9a, 0xf0, 0x4f, 0x28, 0x08, 0xb5, 0x29, 0x27, 0x2e, 0xd6, 0xc6, - 0x1e, 0xb6, 0xab, 0x36, 0xbb, 0xdb, 0xf5, 0x1a, 0xc5, 0x6f, 0xc1, 0x8d, 0x57, 0xe0, 0xc8, 0x63, - 0xf4, 0xd8, 0x23, 0x27, 0x84, 0x92, 0x03, 0xaf, 0x81, 0x76, 0xb3, 0x69, 0x6a, 0x57, 0xb9, 0x58, - 0xeb, 0xf9, 0xbe, 0xf9, 0xed, 0xcc, 0xec, 0xa0, 0xa7, 0x5f, 0x09, 0x53, 0x95, 0x62, 0x9c, 0x26, - 0x12, 0x64, 0x42, 0x81, 0x43, 0xc1, 0x8a, 0x58, 0x2a, 0xa1, 0x05, 0xde, 0xbd, 0x11, 0x63, 0x09, - 0xb2, 0xff, 0x90, 0x4c, 0x19, 0x17, 0x89, 0xfd, 0x2e, 0x1d, 0xfd, 0x47, 0x54, 0x50, 0x61, 0x8f, - 0x89, 0x39, 0xb9, 0x68, 0xbf, 0x0e, 0x95, 0x44, 0x91, 0xa9, 0x63, 0xf6, 0xc3, 0xba, 0x06, 0x3c, - 0x53, 0x95, 0xd4, 0x90, 0xa7, 0x7a, 0xe6, 0x1c, 0xcf, 0x1a, 0xd9, 0x20, 0x53, 0x2e, 0x78, 0x06, - 0x4e, 0x8e, 0xea, 0x32, 0xa1, 0x54, 0x01, 0x25, 0x86, 0x70, 0x0e, 0x55, 0x5a, 0x9c, 0x11, 0xb5, - 0x72, 0x1e, 0xac, 0x9d, 0x99, 0x98, 0x4e, 0x05, 0x4f, 0xac, 0x9a, 0xa7, 0xba, 0x92, 0xe0, 0xea, - 0x79, 0xf1, 0xa3, 0x8d, 0x7a, 0xef, 0x97, 0x5d, 0x9f, 0x6a, 0xa2, 0x01, 0xbf, 0x42, 0x9d, 0x65, - 0xc1, 0xbe, 0x17, 0x7a, 0xd1, 0xce, 0xd1, 0xe3, 0xb8, 0x36, 0x85, 0xf8, 0xd8, 0x8a, 0xc3, 0xee, - 0xd5, 0x9f, 0xfd, 0xd6, 0xcf, 0x7f, 0xbf, 0x0e, 0xbd, 0xb1, 0xf3, 0xe3, 0x3d, 0xb4, 0x2d, 0x85, - 0xd2, 0x29, 0xcb, 0xfd, 0x7b, 0xa1, 0x17, 0x75, 0xc7, 0x1d, 0xf3, 0xfb, 0x21, 0xc7, 0x27, 0xe8, - 0xc1, 0x4d, 0x9f, 0x9f, 0x67, 0x03, 0xa5, 0x48, 0xe5, 0x6f, 0x85, 0x5b, 0xd1, 0xce, 0xd1, 0x7e, - 0x03, 0xfe, 0xb6, 0x61, 0x1b, 0xb6, 0xcd, 0x35, 0xe3, 0x3b, 0xe9, 0x78, 0x80, 0x7a, 0x12, 0xe4, - 0x27, 0x33, 0x97, 0x8f, 0xac, 0xd0, 0x7e, 0xdb, 0xe2, 0xf6, 0x9a, 0xb5, 0x3a, 0x8b, 0xc3, 0xd4, - 0x52, 0x70, 0x8a, 0x9e, 0xac, 0x87, 0x37, 0x82, 0xea, 0xd4, 0x0c, 0xc7, 0xc2, 0x3a, 0x16, 0xf6, - 0xbc, 0x01, 0x1b, 0xdc, 0x31, 0x3b, 0xec, 0x06, 0x0c, 0x1e, 0xa1, 0x1e, 0xc9, 0x34, 0xfb, 0x06, - 0xc7, 0xe5, 0x64, 0x04, 0x95, 0xbf, 0x6d, 0xe7, 0x79, 0x1b, 0xbb, 0x7c, 0x96, 0x78, 0xb0, 0x72, - 0x5d, 0xb0, 0x6c, 0x04, 0xab, 0xa6, 0x6b, 0xc9, 0x06, 0x76, 0x59, 0x42, 0x09, 0xb9, 0x83, 0xdd, - 0xdf, 0x04, 0x3b, 0x59, 0xb9, 0xea, 0xb0, 0xdb, 0xc9, 0xf8, 0x00, 0xed, 0x2a, 0xb8, 0x2c, 0xa1, - 0xd0, 0x69, 0x26, 0x4a, 0xae, 0xfd, 0x6e, 0xe8, 0x45, 0xed, 0x71, 0xcf, 0x05, 0x5f, 0x9b, 0xd8, - 0xf0, 0xcd, 0xd5, 0x3c, 0xf0, 0xae, 0xe7, 0x81, 0xf7, 0x77, 0x1e, 0x78, 0xdf, 0x17, 0x41, 0xeb, - 0x7a, 0x11, 0xb4, 0x7e, 0x2f, 0x82, 0xd6, 0x97, 0x43, 0xca, 0xf4, 0x59, 0x39, 0x31, 0x37, 0x26, - 0xef, 0x08, 0x53, 0x93, 0x0b, 0x91, 0x9d, 0x27, 0xeb, 0x6d, 0x9b, 0xd9, 0xcd, 0xb4, 0x5b, 0x36, - 0xe9, 0xd8, 0x35, 0x7b, 0xf9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xae, 0xf1, 0x05, 0xa2, 0x69, 0x03, - 0x00, 0x00, + // 490 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x30, + 0x1c, 0xc6, 0x1b, 0x56, 0x75, 0xd4, 0xeb, 0x24, 0x88, 0x80, 0x45, 0x45, 0x64, 0x81, 0x5d, 0xa2, + 0x1d, 0x12, 0x69, 0x5c, 0xb8, 0xb6, 0x0c, 0xd0, 0x54, 0x84, 0xb6, 0x8c, 0x13, 0x97, 0xc8, 0x4d, + 0xfe, 0x64, 0xd6, 0xd6, 0xd8, 0x73, 0x1c, 0xd4, 0xbc, 0x05, 0x8f, 0xc1, 0x91, 0xc7, 0xd8, 0x71, + 0x47, 0x2e, 0x20, 0xd4, 0x1e, 0x78, 0x0d, 0x64, 0xc7, 0x69, 0xe7, 0x4c, 0xbd, 0x54, 0xae, 0xbf, + 0xef, 0xfb, 0xd9, 0xfe, 0xf2, 0x47, 0xcf, 0xbf, 0x62, 0xc2, 0x2b, 0x4e, 0xf2, 0x2c, 0x64, 0xc0, + 0xc2, 0x0c, 0x72, 0x28, 0x48, 0x11, 0x30, 0x4e, 0x05, 0xb5, 0x77, 0x57, 0x62, 0xc0, 0x80, 0x0d, + 0x1f, 0xe3, 0x19, 0xc9, 0x69, 0xa8, 0x7e, 0x6b, 0xc7, 0xf0, 0x49, 0x46, 0x33, 0xaa, 0x96, 0xa1, + 0x5c, 0xe9, 0xdd, 0xa1, 0x09, 0x65, 0x98, 0xe3, 0x99, 0x66, 0x0e, 0x3d, 0x53, 0x83, 0x3c, 0xe1, + 0x15, 0x13, 0x90, 0xc6, 0x62, 0xae, 0x1d, 0x2f, 0x5a, 0x69, 0x60, 0x71, 0x4e, 0xf3, 0x04, 0xb4, + 0xec, 0x9b, 0x32, 0xce, 0x32, 0x0e, 0x19, 0x96, 0x84, 0x4b, 0xa8, 0xe2, 0xe2, 0x02, 0xf3, 0xc6, + 0x79, 0xb0, 0x76, 0x26, 0x74, 0x36, 0xa3, 0x79, 0xa8, 0xd4, 0x34, 0x16, 0x15, 0x83, 0xe6, 0x3e, + 0xae, 0x89, 0xe3, 0x70, 0x5d, 0x42, 0x21, 0x62, 0x92, 0xd6, 0xfa, 0xab, 0xdf, 0x5d, 0x34, 0xf8, + 0x50, 0xb7, 0x72, 0x2e, 0xb0, 0x00, 0xfb, 0x0d, 0xea, 0xd5, 0x0f, 0x72, 0x2c, 0xcf, 0xf2, 0x77, + 0x8e, 0x9e, 0x06, 0x46, 0x4b, 0xc1, 0xa9, 0x12, 0xc7, 0xfd, 0x9b, 0x3f, 0xfb, 0x9d, 0x1f, 0xff, + 0x7e, 0x1e, 0x5a, 0x91, 0xf6, 0xdb, 0x7b, 0x68, 0x9b, 0x51, 0x2e, 0xd9, 0xce, 0x03, 0xcf, 0xf2, + 0xfb, 0x51, 0x4f, 0xfe, 0x3d, 0x49, 0xed, 0x33, 0xf4, 0x68, 0xd5, 0xc3, 0xe7, 0xf9, 0x88, 0x73, + 0x5c, 0x39, 0x5b, 0xde, 0x96, 0xbf, 0x73, 0xb4, 0xdf, 0x82, 0xbf, 0x6b, 0xd9, 0xc6, 0x5d, 0x79, + 0x4c, 0x74, 0x2f, 0x6e, 0x8f, 0xd0, 0x80, 0x01, 0xfb, 0x24, 0x7b, 0xfb, 0x48, 0x0a, 0xe1, 0x74, + 0x15, 0x6e, 0xaf, 0x7d, 0x57, 0x6d, 0xd1, 0x18, 0x23, 0x62, 0xc7, 0xe8, 0xd9, 0xba, 0xdc, 0x09, + 0x54, 0xe7, 0xb2, 0x3c, 0x05, 0xeb, 0x29, 0xd8, 0xcb, 0x16, 0x6c, 0x74, 0xcf, 0xac, 0xb1, 0x1b, + 0x30, 0xf6, 0x04, 0x0d, 0x70, 0x22, 0xc8, 0x37, 0x38, 0x2d, 0xa7, 0x13, 0xa8, 0x9c, 0x6d, 0xd5, + 0xe7, 0x5d, 0x6c, 0xfd, 0xd9, 0x82, 0x51, 0xe3, 0xba, 0x22, 0xc9, 0x04, 0x9a, 0x47, 0x1b, 0x61, + 0x09, 0xbb, 0x2e, 0xa1, 0x84, 0x54, 0xc3, 0x1e, 0x6e, 0x82, 0x9d, 0x35, 0x2e, 0x13, 0x76, 0x37, + 0x6c, 0x1f, 0xa0, 0xdd, 0x66, 0x10, 0x12, 0x5a, 0xe6, 0xc2, 0xe9, 0x7b, 0x96, 0xdf, 0x8d, 0x06, + 0x7a, 0xf3, 0xad, 0xdc, 0xb3, 0x8f, 0x57, 0xa6, 0x93, 0x54, 0xd5, 0x82, 0x54, 0x2d, 0x4e, 0xab, + 0x96, 0xa8, 0xf1, 0xe8, 0x93, 0xcc, 0xd0, 0xf8, 0xf8, 0x66, 0xe1, 0x5a, 0xb7, 0x0b, 0xd7, 0xfa, + 0xbb, 0x70, 0xad, 0xef, 0x4b, 0xb7, 0x73, 0xbb, 0x74, 0x3b, 0xbf, 0x96, 0x6e, 0xe7, 0xcb, 0x61, + 0x46, 0xc4, 0x45, 0x39, 0x95, 0xf7, 0x0e, 0xdf, 0x63, 0xc2, 0xa7, 0x57, 0x34, 0xb9, 0x0c, 0xd7, + 0xe3, 0x3a, 0x57, 0x03, 0xab, 0x66, 0x79, 0xda, 0x53, 0xc3, 0xfa, 0xfa, 0x7f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x96, 0x34, 0xeb, 0x60, 0xcf, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -188,6 +197,20 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.RequestIdList) > 0 { + for iNdEx := len(m.RequestIdList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RequestIdList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } if m.RequestCount != 0 { i = encodeVarintGenesis(dAtA, i, uint64(m.RequestCount)) i-- @@ -323,6 +346,12 @@ func (m *GenesisState) Size() (n int) { if m.RequestCount != 0 { n += 1 + sovGenesis(uint64(m.RequestCount)) } + if len(m.RequestIdList) > 0 { + for _, e := range m.RequestIdList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -613,6 +642,40 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { break } } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestIdList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestIdList = append(m.RequestIdList, RequestId{}) + if err := m.RequestIdList[len(m.RequestIdList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/pep/types/genesis_test.go b/x/pep/types/genesis_test.go index 9d5cd9b4..b22c988e 100644 --- a/x/pep/types/genesis_test.go +++ b/x/pep/types/genesis_test.go @@ -23,10 +23,32 @@ func TestGenesisState_Validate(t *testing.T) { desc: "valid genesis state", genState: &types.GenesisState{ PortId: types.PortID, + RequestIdList: []types.RequestId{ + { + Creator: "0", + }, + { + Creator: "1", + }, + }, // this line is used by starport scaffolding # types/genesis/validField }, valid: true, }, + { + desc: "duplicated requestId", + genState: &types.GenesisState{ + RequestIdList: []types.RequestId{ + { + Creator: "0", + }, + { + Creator: "0", + }, + }, + }, + valid: false, + }, // this line is used by starport scaffolding # types/genesis/testcase } for _, tc := range tests { diff --git a/x/pep/types/key_request_id.go b/x/pep/types/key_request_id.go new file mode 100644 index 00000000..28ef5454 --- /dev/null +++ b/x/pep/types/key_request_id.go @@ -0,0 +1,35 @@ +package types + +import ( + "encoding/binary" + "fmt" +) + +var _ binary.ByteOrder + +const ( + // RequestIdKeyPrefix is the prefix to retrieve all RequestId + RequestIdKeyPrefix = "RequestId/value/" +) + +// RequestIdKey returns the store key to retrieve a RequestId from the index fields +func RequestIdKey( + creator string, + requestID string, +) []byte { + var key []byte + + creatorBytes := []byte(creator) + key = append(key, creatorBytes...) + key = append(key, []byte("/")...) + + requestIDBytes := []byte(requestID) + key = append(key, requestIDBytes...) + key = append(key, []byte("/")...) + + return key +} + +func GetReqIDStr(creator string, requestID string) string { + return fmt.Sprintf("%s/%s", creator, requestID) +} diff --git a/x/pep/types/msg_request_general_key_share.go b/x/pep/types/msg_request_general_key_share.go index ccd1fd31..7fb5ef8a 100644 --- a/x/pep/types/msg_request_general_key_share.go +++ b/x/pep/types/msg_request_general_key_share.go @@ -12,10 +12,11 @@ const TypeMsgRequestGeneralKeyshare = "request_general_keyshare" var _ sdk.Msg = &MsgRequestGeneralKeyshare{} -func NewMsgRequestGeneralKeyshare(creator string, estimatedDelay time.Duration) *MsgRequestGeneralKeyshare { +func NewMsgRequestGeneralKeyshare(creator string, estimatedDelay time.Duration, reqID string) *MsgRequestGeneralKeyshare { return &MsgRequestGeneralKeyshare{ Creator: creator, EstimatedDelay: &estimatedDelay, + ReqId: reqID, } } diff --git a/x/pep/types/request_id.pb.go b/x/pep/types/request_id.pb.go new file mode 100644 index 00000000..09f3e637 --- /dev/null +++ b/x/pep/types/request_id.pb.go @@ -0,0 +1,366 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fairyring/pep/request_id.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type RequestId struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` +} + +func (m *RequestId) Reset() { *m = RequestId{} } +func (m *RequestId) String() string { return proto.CompactTextString(m) } +func (*RequestId) ProtoMessage() {} +func (*RequestId) Descriptor() ([]byte, []int) { + return fileDescriptor_3e457d2e8ff0411e, []int{0} +} +func (m *RequestId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestId.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RequestId) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestId.Merge(m, src) +} +func (m *RequestId) XXX_Size() int { + return m.Size() +} +func (m *RequestId) XXX_DiscardUnknown() { + xxx_messageInfo_RequestId.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestId proto.InternalMessageInfo + +func (m *RequestId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *RequestId) GetReqId() string { + if m != nil { + return m.ReqId + } + return "" +} + +func init() { + proto.RegisterType((*RequestId)(nil), "fairyring.pep.RequestId") +} + +func init() { proto.RegisterFile("fairyring/pep/request_id.proto", fileDescriptor_3e457d2e8ff0411e) } + +var fileDescriptor_3e457d2e8ff0411e = []byte{ + // 174 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0x4b, 0xcc, 0x2c, + 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x48, 0x2d, 0xd0, 0x2f, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, + 0x2e, 0x89, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xcb, 0xeb, 0x15, + 0xa4, 0x16, 0x28, 0x59, 0x73, 0x71, 0x06, 0x41, 0x94, 0x78, 0xa6, 0x08, 0x49, 0x70, 0xb1, 0x27, + 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, + 0x22, 0x5c, 0xac, 0x45, 0xa9, 0x85, 0x9e, 0x29, 0x12, 0x4c, 0x60, 0x71, 0x08, 0xc7, 0xc9, 0xe5, + 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, + 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xb4, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xdd, 0x12, 0x33, 0x8b, 0x92, 0x72, 0xf2, 0x93, 0xb3, 0xf5, + 0x11, 0x4e, 0xab, 0x00, 0x3b, 0xae, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x30, 0x63, + 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xf6, 0x1d, 0x32, 0xba, 0x00, 0x00, 0x00, +} + +func (m *RequestId) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RequestId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReqId) > 0 { + i -= len(m.ReqId) + copy(dAtA[i:], m.ReqId) + i = encodeVarintRequestId(dAtA, i, uint64(len(m.ReqId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintRequestId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintRequestId(dAtA []byte, offset int, v uint64) int { + offset -= sovRequestId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *RequestId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovRequestId(uint64(l)) + } + l = len(m.ReqId) + if l > 0 { + n += 1 + l + sovRequestId(uint64(l)) + } + return n +} + +func sovRequestId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRequestId(x uint64) (n int) { + return sovRequestId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *RequestId) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestId + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RequestId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestId + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestId + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReqId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRequestId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRequestId(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRequestId + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRequestId + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRequestId + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRequestId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRequestId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRequestId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRequestId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRequestId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRequestId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/pep/types/tx.pb.go b/x/pep/types/tx.pb.go index 38487189..b839522f 100644 --- a/x/pep/types/tx.pb.go +++ b/x/pep/types/tx.pb.go @@ -39,8 +39,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the module parameters to update. - // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } @@ -386,6 +384,7 @@ var xxx_messageInfo_MsgCreateAggregatedKeyShareResponse proto.InternalMessageInf type MsgRequestGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EstimatedDelay *time.Duration `protobuf:"bytes,2,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` + ReqId string `protobuf:"bytes,3,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (m *MsgRequestGeneralKeyshare) Reset() { *m = MsgRequestGeneralKeyshare{} } @@ -435,6 +434,13 @@ func (m *MsgRequestGeneralKeyshare) GetEstimatedDelay() *time.Duration { return nil } +func (m *MsgRequestGeneralKeyshare) GetReqId() string { + if m != nil { + return m.ReqId + } + return "" +} + type MsgRequestGeneralKeyshareResponse struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } @@ -584,53 +590,53 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/tx.proto", fileDescriptor_f6953e463911e1ec) } var fileDescriptor_f6953e463911e1ec = []byte{ - // 727 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x3d, 0x6f, 0xd3, 0x40, - 0x18, 0x8e, 0xfb, 0x11, 0x94, 0xa3, 0x50, 0xd5, 0xea, 0x47, 0x62, 0xc0, 0x2d, 0x29, 0xa0, 0x28, - 0x14, 0x1b, 0x0a, 0x42, 0xa8, 0x5b, 0x43, 0xa1, 0x45, 0x55, 0x24, 0xe4, 0x42, 0x07, 0x96, 0xe8, - 0x12, 0xbf, 0xbd, 0x58, 0x4d, 0x72, 0xce, 0xdd, 0x05, 0xd5, 0x4c, 0x15, 0x23, 0x12, 0x12, 0x23, - 0x03, 0x3f, 0x80, 0xb1, 0x03, 0x3f, 0xa2, 0x03, 0x43, 0xc5, 0xc4, 0x04, 0xa8, 0x1d, 0xfa, 0x37, - 0x90, 0x3f, 0xd3, 0xc4, 0x71, 0x49, 0x59, 0x12, 0x9f, 0xdf, 0xe7, 0x9e, 0xf7, 0x79, 0xee, 0xde, - 0xc7, 0x68, 0x76, 0x07, 0x5b, 0xcc, 0x61, 0x56, 0x8b, 0xe8, 0x36, 0xd8, 0xba, 0xd8, 0xd3, 0x6c, - 0x46, 0x05, 0x95, 0xaf, 0x44, 0xef, 0x35, 0x1b, 0x6c, 0x65, 0x0a, 0x37, 0xad, 0x16, 0xd5, 0xbd, - 0x5f, 0x1f, 0xa1, 0xcc, 0xd5, 0x28, 0x6f, 0x52, 0xae, 0x37, 0x39, 0xd1, 0xdf, 0x3e, 0x70, 0xff, - 0x82, 0x42, 0xce, 0x2f, 0x54, 0xbc, 0x95, 0xee, 0x2f, 0x82, 0x92, 0x4a, 0x28, 0x25, 0x0d, 0xd0, - 0xbd, 0x55, 0xb5, 0xb3, 0xa3, 0x9b, 0x1d, 0x86, 0x85, 0x45, 0x5b, 0x41, 0x7d, 0x9a, 0x50, 0x42, - 0xfd, 0x7d, 0xee, 0x53, 0xf0, 0x56, 0xe9, 0xd5, 0x68, 0x63, 0x86, 0x9b, 0x21, 0x63, 0xa1, 0xb7, - 0x86, 0x09, 0x61, 0x40, 0xb0, 0x00, 0xb3, 0xb2, 0x0b, 0x4e, 0x85, 0xd7, 0x31, 0x03, 0x1f, 0x99, - 0xff, 0x2e, 0xa1, 0xc9, 0x32, 0x27, 0xaf, 0x6d, 0x13, 0x0b, 0x78, 0xe9, 0x71, 0xc8, 0x8f, 0x51, - 0x06, 0x77, 0x44, 0x9d, 0x32, 0x4b, 0x38, 0x59, 0x69, 0x41, 0x2a, 0x64, 0x4a, 0xd9, 0x1f, 0xdf, - 0xee, 0x4d, 0x07, 0xa2, 0x57, 0x4d, 0x93, 0x01, 0xe7, 0x5b, 0xc2, 0xe5, 0x37, 0xba, 0x50, 0xf9, - 0x09, 0x4a, 0xfb, 0x2a, 0xb2, 0x23, 0x0b, 0x52, 0xe1, 0xf2, 0xf2, 0x8c, 0xd6, 0x73, 0x5c, 0x9a, - 0x4f, 0x5f, 0xca, 0x1c, 0xfe, 0x9a, 0x4f, 0x7d, 0x3d, 0x3d, 0x28, 0x4a, 0x46, 0x80, 0x5f, 0x59, - 0x7f, 0x7f, 0x7a, 0x50, 0xec, 0x32, 0x7d, 0x38, 0x3d, 0x28, 0x3e, 0x22, 0x96, 0xa8, 0x77, 0xaa, - 0x5a, 0x8d, 0x36, 0xf5, 0xe7, 0xd8, 0x62, 0xd5, 0x06, 0xad, 0xed, 0xea, 0x5d, 0x5f, 0x7b, 0x9e, - 0xb3, 0x3e, 0xe9, 0xf9, 0x1c, 0x9a, 0xeb, 0x7b, 0x65, 0x00, 0xb7, 0x69, 0x8b, 0x43, 0x7e, 0x5f, - 0x42, 0xd3, 0x65, 0x4e, 0xb6, 0x3a, 0xd5, 0xa6, 0x25, 0x9e, 0xb5, 0x6a, 0xcc, 0xb1, 0x05, 0x98, - 0xaf, 0xf6, 0xe4, 0x2c, 0xba, 0x54, 0x63, 0x80, 0x05, 0x65, 0xbe, 0x59, 0x23, 0x5c, 0xca, 0x32, - 0x1a, 0x33, 0xb1, 0xc0, 0x9e, 0x9d, 0x8c, 0xe1, 0x3d, 0xcb, 0x4b, 0x68, 0x4a, 0x60, 0x46, 0x40, - 0x94, 0x5c, 0x41, 0x1b, 0x60, 0x91, 0xba, 0xc8, 0x8e, 0x2e, 0x48, 0x85, 0x31, 0x23, 0x5e, 0x58, - 0x99, 0x70, 0x8d, 0x85, 0x7c, 0x79, 0x1b, 0x5d, 0x8b, 0x14, 0xac, 0x43, 0x0b, 0x18, 0x6e, 0xfc, - 0xbf, 0x90, 0x19, 0x94, 0x66, 0xd0, 0xae, 0x58, 0xa6, 0xd7, 0x3d, 0x63, 0x8c, 0x33, 0x68, 0xbf, - 0x30, 0xfb, 0x3a, 0xaa, 0xe8, 0xfa, 0x20, 0xcf, 0xd1, 0xa1, 0xb4, 0x3d, 0x45, 0x4f, 0x5d, 0x34, - 0xac, 0x46, 0x53, 0xb2, 0x09, 0xce, 0x96, 0x3b, 0x23, 0xe7, 0x28, 0x9a, 0x45, 0xe9, 0xba, 0xef, - 0x7d, 0xc4, 0xf3, 0x1e, 0xac, 0x22, 0xa5, 0xa3, 0x5d, 0xa5, 0x7d, 0x92, 0x6e, 0xa3, 0xc5, 0x73, - 0x5a, 0x46, 0xca, 0x3e, 0x4a, 0x28, 0x57, 0xe6, 0xc4, 0x80, 0x76, 0x07, 0x78, 0x78, 0x5a, 0x9b, - 0xe0, 0xf0, 0x7f, 0x08, 0xdb, 0x40, 0x93, 0xc0, 0x85, 0xd5, 0xf4, 0xa6, 0xdd, 0x84, 0x06, 0x76, - 0x82, 0x69, 0xcc, 0x69, 0x7e, 0xcc, 0xb4, 0x30, 0x66, 0xda, 0x5a, 0x10, 0xb3, 0xd2, 0xd8, 0xe7, - 0xdf, 0xf3, 0x92, 0x71, 0x35, 0xda, 0xb7, 0xe6, 0x6e, 0xeb, 0x93, 0xbd, 0x82, 0x6e, 0x26, 0xca, - 0x09, 0x45, 0x9f, 0xb9, 0x13, 0xe9, 0xcc, 0x9d, 0xe4, 0xb7, 0xd1, 0x4c, 0x99, 0x93, 0x75, 0xb8, - 0x80, 0x8d, 0x2e, 0xd3, 0x48, 0xf2, 0xed, 0xce, 0xa3, 0x1b, 0x03, 0x79, 0x43, 0x3d, 0xcb, 0x5f, - 0xc6, 0xd1, 0x68, 0x99, 0x13, 0x79, 0x1b, 0x4d, 0xf4, 0x24, 0x5c, 0xed, 0x4b, 0x66, 0x5f, 0x66, - 0x94, 0x3b, 0xe7, 0xd7, 0x23, 0xbf, 0x80, 0xa6, 0xe2, 0x79, 0x5a, 0x8c, 0x6f, 0x8e, 0x81, 0x94, - 0xbb, 0x43, 0x80, 0xa2, 0x36, 0x1c, 0x65, 0x13, 0x43, 0x53, 0x4c, 0x22, 0x8a, 0x63, 0x2f, 0xd6, - 0xf4, 0x1d, 0xca, 0x26, 0xe6, 0x62, 0x40, 0xd3, 0x24, 0xac, 0xb2, 0x3c, 0x3c, 0x36, 0xea, 0x2d, - 0xd0, 0x6c, 0xc2, 0xe0, 0x17, 0xe2, 0x6c, 0x83, 0x91, 0xca, 0xfd, 0x61, 0x91, 0x51, 0xd7, 0x3a, - 0x92, 0x07, 0xcc, 0xe8, 0xad, 0x38, 0x4f, 0x1c, 0xa5, 0x2c, 0x0d, 0x83, 0x0a, 0x3b, 0x29, 0xe3, - 0xfb, 0xee, 0xe7, 0xbf, 0xb4, 0x76, 0x78, 0xac, 0x4a, 0x47, 0xc7, 0xaa, 0xf4, 0xe7, 0x58, 0x95, - 0x3e, 0x9d, 0xa8, 0xa9, 0xa3, 0x13, 0x35, 0xf5, 0xf3, 0x44, 0x4d, 0xbd, 0x29, 0x0e, 0xf5, 0xf5, - 0x17, 0x8e, 0x0d, 0xbc, 0x9a, 0xf6, 0x02, 0xfd, 0xf0, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, - 0x92, 0xbc, 0xa0, 0xb5, 0x07, 0x00, 0x00, + // 725 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x3d, 0x6f, 0xd3, 0x50, + 0x14, 0x8d, 0xfb, 0x11, 0x94, 0x47, 0xa1, 0xaa, 0xd5, 0x8f, 0xc4, 0x80, 0x5b, 0x52, 0x40, 0x51, + 0x28, 0x36, 0x14, 0x84, 0x50, 0xb7, 0x86, 0x42, 0x8b, 0xaa, 0x48, 0xc8, 0x85, 0x0e, 0x2c, 0xd1, + 0x4b, 0x7c, 0xfb, 0x62, 0x35, 0xc9, 0x73, 0xde, 0x7b, 0x41, 0x35, 0x53, 0xc5, 0xc8, 0xc4, 0xc8, + 0xc0, 0xc8, 0xc0, 0xd8, 0x81, 0x1f, 0xd1, 0x81, 0xa1, 0x62, 0x62, 0x02, 0xd4, 0x0e, 0xfd, 0x1b, + 0xc8, 0x9f, 0x69, 0xe2, 0xb8, 0xa4, 0x2c, 0x89, 0xaf, 0xef, 0x79, 0xe7, 0x9e, 0xf3, 0x74, 0x8f, + 0x8c, 0x66, 0x77, 0xb0, 0xc5, 0x1c, 0x66, 0xb5, 0x88, 0x6e, 0x83, 0xad, 0x8b, 0x3d, 0xcd, 0x66, + 0x54, 0x50, 0xf9, 0x4a, 0xf4, 0x5e, 0xb3, 0xc1, 0x56, 0xa6, 0x70, 0xd3, 0x6a, 0x51, 0xdd, 0xfb, + 0xf5, 0x11, 0xca, 0x5c, 0x8d, 0xf2, 0x26, 0xe5, 0x7a, 0x93, 0x13, 0xfd, 0xed, 0x03, 0xf7, 0x2f, + 0x68, 0xe4, 0xfc, 0x46, 0xc5, 0xab, 0x74, 0xbf, 0x08, 0x5a, 0x2a, 0xa1, 0x94, 0x34, 0x40, 0xf7, + 0xaa, 0x6a, 0x67, 0x47, 0x37, 0x3b, 0x0c, 0x0b, 0x8b, 0xb6, 0x82, 0xfe, 0x34, 0xa1, 0x84, 0xfa, + 0xe7, 0xdc, 0xa7, 0xe0, 0xad, 0xd2, 0xab, 0xd1, 0xc6, 0x0c, 0x37, 0x43, 0xc6, 0x42, 0x6f, 0x0f, + 0x13, 0xc2, 0x80, 0x60, 0x01, 0x66, 0x65, 0x17, 0x9c, 0x0a, 0xaf, 0x63, 0x06, 0x3e, 0x32, 0xff, + 0x5d, 0x42, 0x93, 0x65, 0x4e, 0x5e, 0xdb, 0x26, 0x16, 0xf0, 0xd2, 0xe3, 0x90, 0x1f, 0xa3, 0x0c, + 0xee, 0x88, 0x3a, 0x65, 0x96, 0x70, 0xb2, 0xd2, 0x82, 0x54, 0xc8, 0x94, 0xb2, 0x3f, 0xbe, 0xdd, + 0x9b, 0x0e, 0x44, 0xaf, 0x9a, 0x26, 0x03, 0xce, 0xb7, 0x84, 0xcb, 0x6f, 0x74, 0xa1, 0xf2, 0x13, + 0x94, 0xf6, 0x55, 0x64, 0x47, 0x16, 0xa4, 0xc2, 0xe5, 0xe5, 0x19, 0xad, 0xe7, 0xba, 0x34, 0x9f, + 0xbe, 0x94, 0x39, 0xfc, 0x35, 0x9f, 0xfa, 0x7a, 0x7a, 0x50, 0x94, 0x8c, 0x00, 0xbf, 0xb2, 0xfe, + 0xfe, 0xf4, 0xa0, 0xd8, 0x65, 0xfa, 0x70, 0x7a, 0x50, 0x7c, 0x44, 0x2c, 0x51, 0xef, 0x54, 0xb5, + 0x1a, 0x6d, 0xea, 0xcf, 0xb1, 0xc5, 0xaa, 0x0d, 0x5a, 0xdb, 0xd5, 0xbb, 0xbe, 0xf6, 0x3c, 0x67, + 0x7d, 0xd2, 0xf3, 0x39, 0x34, 0xd7, 0xf7, 0xca, 0x00, 0x6e, 0xd3, 0x16, 0x87, 0xfc, 0xbe, 0x84, + 0xa6, 0xcb, 0x9c, 0x6c, 0x75, 0xaa, 0x4d, 0x4b, 0x3c, 0x6b, 0xd5, 0x98, 0x63, 0x0b, 0x30, 0x5f, + 0xed, 0xc9, 0x59, 0x74, 0xa9, 0xc6, 0x00, 0x0b, 0xca, 0x7c, 0xb3, 0x46, 0x58, 0xca, 0x32, 0x1a, + 0x33, 0xb1, 0xc0, 0x9e, 0x9d, 0x8c, 0xe1, 0x3d, 0xcb, 0x4b, 0x68, 0x4a, 0x60, 0x46, 0x40, 0x94, + 0x5c, 0x41, 0x1b, 0x60, 0x91, 0xba, 0xc8, 0x8e, 0x2e, 0x48, 0x85, 0x31, 0x23, 0xde, 0x58, 0x99, + 0x70, 0x8d, 0x85, 0x7c, 0x79, 0x1b, 0x5d, 0x8b, 0x14, 0xac, 0x43, 0x0b, 0x18, 0x6e, 0xfc, 0xbf, + 0x90, 0x19, 0x94, 0x66, 0xd0, 0xae, 0x58, 0xa6, 0x37, 0x3d, 0x63, 0x8c, 0x33, 0x68, 0xbf, 0x30, + 0xfb, 0x26, 0xaa, 0xe8, 0xfa, 0x20, 0xcf, 0xd1, 0xa5, 0xb4, 0x3d, 0x45, 0x4f, 0x5d, 0x34, 0xac, + 0x46, 0x5b, 0xb2, 0x09, 0xce, 0x96, 0xbb, 0x23, 0xe7, 0x28, 0x9a, 0x45, 0xe9, 0xba, 0xef, 0x7d, + 0xc4, 0xf3, 0x1e, 0x54, 0x91, 0xd2, 0xd1, 0xae, 0xd2, 0x3e, 0x49, 0xb7, 0xd1, 0xe2, 0x39, 0x23, + 0x23, 0x65, 0x5f, 0x24, 0x94, 0x2b, 0x73, 0x62, 0x40, 0xbb, 0x03, 0x3c, 0xbc, 0xad, 0x4d, 0x70, + 0xf8, 0x3f, 0x84, 0x6d, 0xa0, 0x49, 0xe0, 0xc2, 0x6a, 0x7a, 0xdb, 0x6e, 0x42, 0x03, 0x3b, 0xc1, + 0x36, 0xe6, 0x34, 0x3f, 0x66, 0x5a, 0x18, 0x33, 0x6d, 0x2d, 0x88, 0x59, 0x69, 0xec, 0xd3, 0xef, + 0x79, 0xc9, 0xb8, 0x1a, 0x9d, 0x5b, 0x73, 0x8f, 0x0d, 0x77, 0xc1, 0x2b, 0xe8, 0x66, 0xa2, 0xca, + 0xd0, 0xcb, 0x19, 0x26, 0xe9, 0x0c, 0x53, 0x7e, 0x1b, 0xcd, 0x94, 0x39, 0x59, 0x87, 0x0b, 0xb8, + 0xeb, 0x32, 0x8d, 0x24, 0x6b, 0x9a, 0x47, 0x37, 0x06, 0xf2, 0x86, 0x7a, 0x96, 0x3f, 0x8f, 0xa3, + 0xd1, 0x32, 0x27, 0xf2, 0x36, 0x9a, 0xe8, 0x09, 0xbe, 0xda, 0x17, 0xd8, 0xbe, 0x28, 0x29, 0x77, + 0xce, 0xef, 0x47, 0x7e, 0x01, 0x4d, 0xc5, 0x63, 0xb6, 0x18, 0x3f, 0x1c, 0x03, 0x29, 0x77, 0x87, + 0x00, 0x45, 0x63, 0x38, 0xca, 0x26, 0x66, 0xa9, 0x98, 0x44, 0x14, 0xc7, 0x5e, 0x6c, 0xe8, 0x3b, + 0x94, 0x4d, 0x8c, 0xcb, 0x80, 0xa1, 0x49, 0x58, 0x65, 0x79, 0x78, 0x6c, 0x34, 0x5b, 0xa0, 0xd9, + 0x84, 0x3c, 0x14, 0xe2, 0x6c, 0x83, 0x91, 0xca, 0xfd, 0x61, 0x91, 0xd1, 0xd4, 0x3a, 0x92, 0x07, + 0xec, 0xe8, 0xad, 0x38, 0x4f, 0x1c, 0xa5, 0x2c, 0x0d, 0x83, 0x0a, 0x27, 0x29, 0xe3, 0xfb, 0xee, + 0x57, 0xa1, 0xb4, 0x76, 0x78, 0xac, 0x4a, 0x47, 0xc7, 0xaa, 0xf4, 0xe7, 0x58, 0x95, 0x3e, 0x9e, + 0xa8, 0xa9, 0xa3, 0x13, 0x35, 0xf5, 0xf3, 0x44, 0x4d, 0xbd, 0x29, 0x0e, 0xf5, 0x51, 0x10, 0x8e, + 0x0d, 0xbc, 0x9a, 0xf6, 0x72, 0xfe, 0xf0, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xd6, 0xda, + 0xef, 0xcc, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1156,6 +1162,13 @@ func (m *MsgRequestGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l + if len(m.ReqId) > 0 { + i -= len(m.ReqId) + copy(dAtA[i:], m.ReqId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReqId))) + i-- + dAtA[i] = 0x1a + } if m.EstimatedDelay != nil { n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.EstimatedDelay, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.EstimatedDelay):]) if err2 != nil { @@ -1394,6 +1407,10 @@ func (m *MsgRequestGeneralKeyshare) Size() (n int) { l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.EstimatedDelay) n += 1 + l + sovTx(uint64(l)) } + l = len(m.ReqId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2216,6 +2233,38 @@ func (m *MsgRequestGeneralKeyshare) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReqId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])